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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Seleted row in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

90350 Sep 26,2009 12:22 AM UTC Aug 16,2010 01:32 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Remco van Sambeek
Asked On September 26, 2009 12:22 AM UTC

Hello,

I am using the web grouping grid control 7.3

I want to perform some actions based on the selected row.

How can I determine which row is selected and how can I read those values.

OR

Is their event simular to the The RowCommand event which is raised whenever any button associated with a row in the Plain asp GridView is clicked? Do you have an example?

Thanks in advance,

Remco

Gowri Manohari D [Syncfusion]
Replied On September 29, 2009 05:33 AM UTC

Hi Ramco,

Thank you for choosing Syncfusion Products.

GridControl does not support server side Record Click event, instead there is client side event in order to find which record has clicked. ClientSideOnSelectionChanged event it will fire when the selection has changed.

Please find the sample it will illustrates the event
http://files.syncfusion.com/support/GGC.Web/7.3.0.20/Grid_Web_RowClick.zip

Please let me know if you have any other concerns

Regards,
Gowri

Administrator [Syncfusion]
Replied On July 23, 2010 04:15 AM UTC

Hi,
In the example that you provided how do I know which record has been clicked?
Thanks,

Bharath M [Syncfusion]
Replied On August 16, 2010 01:32 PM UTC

Hi Ron,

We regret for the inconvenience caused.

We suggest you to add the client javascript function to "ClientSideOnSelectionChanged" as follows:

[ASPX]




[JavaScript]

function Test(oData)
{
// we can get the clicked row from the below code
alert(oData.Row.GetValue("oData.ColumnName"));
// actual DOM element could be get by
oData.Row.tableRow
}

Let me know if you have any concerns.

Regards,
Bharath M

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

;