Seleted row in grid

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

3 Replies

GM Gowri Manohari D Syncfusion Team 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


AD Administrator Syncfusion Team July 23, 2010 04:15 AM UTC

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


BM Bharath M Syncfusion Team 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

Loader.
Up arrow icon