This is a migrated thread and some comments may be shown as answers.

[Solved] GridTemplateColumn ImageButton Select does not mark row as selected

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 24 Dec 2007, 03:39 AM
Hello,
I've just started implementing the new release of the Prometheus RadGrid control. I have an existing RadGrid control that I am replacing which contains an Imagebutton the user can select to show records in a Details Grid. I am using the AJAX manager as well to minimize the entire page posting back for the user. My problem is that if I select the ImageButton it updates the details grid as expected however the row that contains the ImageButton I have selected is never highlighted. I have been playing around and implemented the following Javascript so I know when a row is selected:

function

RowSelected(sender, eventArgs) {

alert(

"Row: " + eventArgs.get_itemIndexHierarchical() + " selected.");

var e = eventArgs.get_domEvent();

}

When I select the ImageButton this code never executes. If I select any other column in the Grid then the above code executes, the row becomes highlighted and the Details grid is updated as expected. My question is: How do I get the row to be highlighted when I select the ImageButton? This used to work find when I had the RadGrid Q3 release implemented.

1 Answer, 1 is accepted

Sort by
0
Jeremy
Top achievements
Rank 1
answered on 24 Dec 2007, 03:51 AM
I've since figured out the issue. It turns out that I forgot to set the AJAX manager to allow the main grid to update itself which caused the row to not be selected after the postback.
Tags
Grid
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Jeremy
Top achievements
Rank 1
Share this question
or