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

ClientSide Script in GGC is called twice

Thread ID:





76902 Sep 29,2008 03:01 PM UTC Oct 7,2008 05:55 PM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Mr. Sascha Wald
Asked On September 29, 2008 03:01 PM UTC

Hi there,

We are using AJAX-enabled websites and have some strange problems with the GGC and Clientside-Script.

What we want:
After selecting a row in the grid, details of the selection should be shown in other controls. For that, we use ClientSideOnSelectionChanged, call a javascript to start a partial postback.

The problem:
After selecting another row with a higher ID, the old selection stays in the selectedrecordscollection, so you have no chance to see serverside which row a customer selected.

I added an example with a detailed description about that. The example show also that it work with an asp-button!

Second problem: if you have the property ClientSideOnSelectionChanged set, you are no more able to sort the grid! Simply try it with the sample attached.

What am I doing wrong?


Rajarajeswari S [Syncfusion]
Replied On October 7, 2008 05:55 PM UTC

Hi Sascha,

Sorry for the delay in getting back to you.

If your intention is to access the details of the selected rows, it can be done through client side itself using the “ClientSideOnRecordClick” event.
Please refer the below code snippet which illustrates this:

Width="200" ClientSideOnRecordClick="GetID(this)" PostBackOnFocusedChanged="false">

function GetID(gridObj)
document.getElementById('TextBox1').innerText = gridObj.Row.GetValue('ID');

Please refer the sample from the below link, which illustrates the above:


Please let us know if this helps you out.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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