Tuesday, October 27, 2009

Google Wave


Google Wave is "a personal communication and collaboration tool" announced by Google at the Google I/O conference on May 27, 2009.



What is a wave?
A wave is equal parts conversation and document. People can communicate and work together with richly formatted text, photos, videos, maps, and more.

A wave is shared. Any participant can reply anywhere in the message, edit the content and add participants at any point in the process. Then playback lets anyone rewind the wave to see who said what and when.

A wave is live. With live transmission as you type, participants on a wave can have faster conversations, see edits and interact with extensions in real-time.

Here's how it works: In Google Wave you create a wave and add people to it. Everyone on your wave can use richly formatted text, photos, gadgets, and even feeds from other sources on the web. They can insert a reply or edit the wave directly. It's concurrent rich-text editing, where you see on your screen nearly instantly what your fellow collaborators are typing in your wave. That means Google Wave is just as well suited for quick messages as for persistent content — it allows for both collaboration and communication. You can also use "playback" to rewind the wave and see how it evolved.

For more details check this link.
Google Wave

Be the first one to create Wave :)

Thursday, October 22, 2009

Edit Forms New Button and Delete Button Events in ASPXGridView

How to Pass the values of the columns for saving in Edit button New Button click event.
This event is triggerd w.r.t GvAddrow() of the Grid.

Create the event InitNewRow of Gridview.
gridview.InitNewRow+=new DevExpress.Web.Data.ASPxDataInitNewRowEventHandler(gridview_InitNewRow);

protected void gridview_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
{
e.NewValues["Name"] = "";
e.NewValues["DOB"] = new DateTime(2009, 1, 10);
e.NewValues["Active"] = "";

}

Similar to Insert, items in Grid view in Edit form for Delete Button.

gridview.RowDeleting += new DevExpress.Web.Data.ASPxDataDeletingEventHandler(gridview_RowDeleting);


void gridview_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
{
e.Cancel = true;
//Code for deleting will be added here.
}
The above event is triggerd w.r.t GVDeleterow.

Any questions on these shoot

Adding Items to combo box& Check box Column using DevExpress in Edit Form

We had requirement to Create ComboBox column and add items onl fly, and creating CheckBox using Devexpress ASPXGridview

GridViewDataComboBoxColumn colddl = new GridViewDataComboBoxColumn();
colddl.Caption = "ComboBoxColumn";
colddl.FieldName = " ComboBoxColumn ";
colddl.Settings.AllowSort = DevExpress.Web.ASPxClasses.DefaultBoolean.False;
colddl.PropertiesComboBox.Items.Add("JACK");
colddl.PropertiesComboBox.Items.Add("BEN");
gridview.Columns.Add(colddl);
Similary you can also create Checkbox column using GridViewDataCheckColumn.

These controls will be added in ASPXGrid viewEdit form(Edit Button).
GridViewDataCheckColumn colddlActive = new GridViewDataCheckColumn();
colddlActive.Caption = "Active";
colddlActive.FieldName = "Active";
colddlActive.Settings.AllowSort = DevExpress.Web.ASPxClasses.DefaultBoolean.False;
gvSubstitutions.Columns.Add(colddlActive);

Explore ....

Wednesday, October 14, 2009

Hide Columns of GridView in Edit Mode

Hi,
We had a requirement to Hide the columns of Grid in Edit form.And for that i have used EditFormSettings of the GridViewDataColumn.Pls find below code snippet.

Note: Below Solution/code is for DevExpress Controls FYI.

Gridviewcommand column creation.
Gridviewcommand column creation.
GridViewCommandColumn colItemTemplate = new GridViewCommandColumn();
colItemTemplate.NewButton.Visible = true;
colItemTemplate.EditButton.Visible = true;
gridview.Columns.Add(colItemTemplate);

Creating Event
gridview.StartRowEditing+=new DevExpress.Web.Data.ASPxStartRowEditingEventHandler(gridview_StartRowEditing);


private void gridview_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e)
{
if (!gridview.IsNewRowEditing)
{
gridview.DoRowValidation();

((GridViewDataColumn)gridview.Columns[2]).EditFormSettings.Visible = DevExpress.Web.ASPxClasses.DefaultBoolean.False;
}



If you need more info leave a comment.


Njoy :)