We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Double click

Thread ID:

Created:

Updated:

Platform:

Replies:

78916 Jan 11,2009 06:32 PM UTC Jan 13,2009 02:33 AM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
prasanna
Asked On January 11, 2009 06:32 PM UTC

What is the event get trigger when i double clik on the row in grid. I would like to trigger a event and get the selected value on the server.

As always thx a lot for your help ...


Rekha P [Syncfusion]
Replied On January 12, 2009 08:38 AM UTC

Hi Prasanna,

Thank you for your interest in Syncfusion Products.

The event which will trigger for a record click on server side is SelectedRecordsChanged event. The properties PostBackOnFocusedChanged and PostBackOnRowDblClick has to be set to true, to handle this event.

Please refer the below code snippet which is used to get the selected record through the "SelectedRecordsChanged" event.

[C#]

protected void GridGroupingControl1_SelectedRecordsChanged(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e)
{
Record r = this.GridGroupingControl1.Table.CurrentRecord;

if (ViewState["currentrecord"] == null)
{
ViewState["currentrecord"] = r.GetValue("ID").ToString();
}
else if (r != null && r.IsCurrent)
{

if (ViewState["currentrecord"].ToString() != r.GetValue("ID").ToString())
{
Record currentrec = r;
this.TextBox1.Text = currentrec.GetValue("Name").ToString();
}
}
}


Also please refer the sample from the below link, which ilustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.4.0.15/F78916_GetSelectedValue/main.htm

Please let me know if this sample helps you.

Thanks,
Rekha


prasanna
Replied On January 13, 2009 02:33 AM UTC

Hi,

Thx for quick response.

What you have sent is single click. But i need is Double Click.

Please let me know if double click is supported in Sync fusion grid.

Regards,
Prasanna


>Hi Prasanna,

Thank you for your interest in Syncfusion Products.

The event which will trigger for a record click on server side is SelectedRecordsChanged event. The properties PostBackOnFocusedChanged and PostBackOnRowDblClick has to be set to true, to handle this event.

Please refer the below code snippet which is used to get the selected record through the "SelectedRecordsChanged" event.

[C#]

protected void GridGroupingControl1_SelectedRecordsChanged(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e)
{
Record r = this.GridGroupingControl1.Table.CurrentRecord;

if (ViewState["currentrecord"] == null)
{
ViewState["currentrecord"] = r.GetValue("ID").ToString();
}
else if (r != null && r.IsCurrent)
{

if (ViewState["currentrecord"].ToString() != r.GetValue("ID").ToString())
{
Record currentrec = r;
this.TextBox1.Text = currentrec.GetValue("Name").ToString();
}
}
}


Also please refer the sample from the below link, which ilustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.4.0.15/F78916_GetSelectedValue/main.htm

Please let me know if this sample helps you.

Thanks,
Rekha




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;