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

Client event: OnGroupExpanded issue

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 30 Mar 2009, 08:37 PM

Hi, I followed the instruction / tutorial on this page http://www.telerik.com/help/aspnet/grid/ongroupexpanded.html but I am not able to get it work. rowObj.ItemIndex is returning "undefined". Any idea?

This event is fired after a group is expanded and when MasterTableView.GroupLoadMode="client".

Fired by

RadGrid

Arguments

N/A

Can be canceled

No

Examples

ascx/aspx

<ClientEvents OnGroupExpanded="GroupExpanded"

JavaScript

  <script>

function GroupExpanded(rowObj)

 { 

    alert("Expanded row with index: " + rowObj.ItemIndex);

 }

</script>



2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 31 Mar 2009, 06:13 AM
Hello Richard,

Are you using the RadGrid for Asp.Net version or RadGrid for Asp.Net Ajax version?The rowobject(rowObj) is defined only for the Asp.Net version of RadGrid. If you are using RadGrid for Asp.Net Ajax then refer to the following documentation instead on the same method:
OnGroupExpanded

Thanks
Princy.
0
Richard
Top achievements
Rank 1
answered on 31 Mar 2009, 02:40 PM
Thanks! It's not getting error but at the time - I am not familiar with accessing the client methods and hoping to get either index or key value. For instance, I am trying to get ClientDataKeyNames from this event but not able to do so. Can you point me to the right direction?

I need to retrieve a keycolumnvalue on onGroupExpanded so I can load the content based on this value.


Thanks!
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Richard
Top achievements
Rank 1
Share this question
or