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

RadGrid expand not postback

7 Answers 428 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 06 Sep 2012, 10:34 PM
Hi, I am new to telerik and let me know how I can disable the postback RadGrid to expand.
by pressing + and expand launches a postback that is uncomfortable.
I hope your help greetings.
can with updatepanel?
a example pliss


7 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 07 Sep 2012, 05:58 AM
Hello,

Please try with below code snippet.

<MasterTableView HierarchyLoadMode="Client">


Thanks,
Jayesh Goyani
0
Alexis
Top achievements
Rank 1
answered on 07 Sep 2012, 12:11 PM
thanks for the help,
Now the postback but does not run any event, not expanded, as could capture that sign + is pressed?
thanks
0
Princy
Top achievements
Rank 2
answered on 07 Sep 2012, 12:19 PM
Hi,

You can capture the event in ItemCommand event as shown below.
C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
 {
     if (e.CommandName == RadGrid.ExpandCollapseCommandName)
     {//your code
     }
}

Thanks,
Princy.
0
Alexis
Top achievements
Rank 1
answered on 07 Sep 2012, 05:33 PM
thank you very much,
and solved it by adding
<MasterTableViewHierarchyLoadMode="Client">
and
  AllowGroupExpandCollapse="True" <ClientSettings AllowExpandCollapse = "true"/>
  in radgrid and master table.
ItemCommand event capture


regards

0
Rachana
Top achievements
Rank 1
answered on 10 Apr 2014, 10:09 AM
Hi
I am using RadGrid for grouping, in the same page using asp dropdownlist when i changed event in dropdown list ,Radgrid groups are collapsed but expanded symbol is not changing...before auto post back some are expanded dynamically...after postback also how can i expand previously expanded groups?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Apr 2014, 10:38 AM
Hello,

Whenever you will expand/collapse any group at that time store/remove group key into HiddenFiled.
So, at the time of postback get the value from the hiddenField and based on its value expand/Collapse Radgrid's Group(s).

Let me know if I am not understand your requirement/question.

Thanks,
Jayesh Goyani
0
Rachana
Top achievements
Rank 1
answered on 10 Apr 2014, 01:06 PM
Hello Jayesh,

Thanks for help...

I done same thing but expand/collapse symbol is changing. but not expanding...for more detail please chk the attached file
Tags
Grid
Asked by
Alexis
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Alexis
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Rachana
Top achievements
Rank 1
Share this question
or