hello,
i have a grid with detail table, default detail tables are disable, the master table has a GridClientSelectColumn, when GridClientSelectColumn checked, the row details table is enable, when unchecked, the row detail table is disable again. i try to use client events to change it, but can't make it. Anyone can give some helps? Thanks.
i have a grid with detail table, default detail tables are disable, the master table has a GridClientSelectColumn, when GridClientSelectColumn checked, the row details table is enable, when unchecked, the row detail table is disable again. i try to use client events to change it, but can't make it. Anyone can give some helps? Thanks.
7 Answers, 1 is accepted
0
Hi Leesam,
I would suggest you to review the following online resources which could help in implementing the required functionality.
http://www.telerik.com/community/forums/aspnet-ajax/grid/using-the-gridclientselectcolumn.aspx
http://www.telerik.com/community/code-library/aspnet-ajax/grid/gridclientselectcolumn-select-all-rows-with-enabled-check-boxes-only.aspx
If this doesn;t help please elaborate a bit more on the exact functionality you need to acheive so we could provide more to-the-point answer.
All the best,
Maria Ilieva
the Telerik team
I would suggest you to review the following online resources which could help in implementing the required functionality.
http://www.telerik.com/community/forums/aspnet-ajax/grid/using-the-gridclientselectcolumn.aspx
http://www.telerik.com/community/code-library/aspnet-ajax/grid/gridclientselectcolumn-select-all-rows-with-enabled-check-boxes-only.aspx
If this doesn;t help please elaborate a bit more on the exact functionality you need to acheive so we could provide more to-the-point answer.
All the best,
Maria Ilieva
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0

leesam
Top achievements
Rank 1
answered on 13 Jul 2011, 04:40 AM
Hi,
I have attached an image for easy explanation and understanding.
Green color area is DetailTables
Red color checkbox is GridClientSelectColumn
Default all the DetailTables are disable. When user checked the red color check box, the green color detail table will enable. When user uncheck the red color check box, the green color detail table will disable again. Client event able to do it? Need to do it at server side?
Thanks.
I have attached an image for easy explanation and understanding.
Green color area is DetailTables
Red color checkbox is GridClientSelectColumn
Default all the DetailTables are disable. When user checked the red color check box, the green color detail table will enable. When user uncheck the red color check box, the green color detail table will disable again. Client event able to do it? Need to do it at server side?
Thanks.
0
Hello Leesam,
You could try attaching client side script on MasterTableView checkbox's click event which calls set_expanded() function with true/false parameter for expanding/collapsing the details table. On the following link you could find example of how to use the set_expanded() function:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodeclient/defaultcs.aspx
Please give it try and let me know if you experience any problems.
Best wishes,
Radoslav
the Telerik team
You could try attaching client side script on MasterTableView checkbox's click event which calls set_expanded() function with true/false parameter for expanding/collapsing the details table. On the following link you could find example of how to use the set_expanded() function:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodeclient/defaultcs.aspx
Please give it try and let me know if you experience any problems.
Best wishes,
Radoslav
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0

leesam
Top achievements
Rank 1
answered on 15 Jul 2011, 05:12 PM
Hi,
Actually I want all expanded and disable/enable the details table, no collapse. Thanks.
Actually I want all expanded and disable/enable the details table, no collapse. Thanks.
0
Hello Leesam,
Could you please elaborate a bit more on your scenario. What do you mean by enable/disable details table. Do you want to enable/disable controls into the Detail tables or you want to enable/disable the checkbox controls only?
Looking forward for your reply.
Greetings,
Radoslav
the Telerik team
Could you please elaborate a bit more on your scenario. What do you mean by enable/disable details table. Do you want to enable/disable controls into the Detail tables or you want to enable/disable the checkbox controls only?
Looking forward for your reply.
Greetings,
Radoslav
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0

leesam
Top achievements
Rank 1
answered on 21 Jul 2011, 10:45 AM
Hi,
I want to enable/disable controls in the detail tables. Thanks.
I want to enable/disable controls in the detail tables. Thanks.
0

Shinu
Top achievements
Rank 2
answered on 21 Jul 2011, 11:22 AM
Hello Leesam,
I am not qiute sure about your requirement. You cannot directly disable from server side. If you have any controls in DetailTable and want to disable that you can try the following approach.
C#:
You can try the same approach in the following help documentation to achieve the same from client side.
Enabled/Disabled conventions.
Thanks,
Shinu.
I am not qiute sure about your requirement. You cannot directly disable from server side. If you have any controls in DetailTable and want to disable that you can try the following approach.
C#:
protected
void
CheckBox1_CheckedChanged(
object
sender, EventArgs e)
{
CheckBox chk = sender
as
CheckBox;
GridDataItem dataItem = (GridDataItem)chk.NamingContainer;
CheckBox chkbox = (CheckBox)(dataItem).FindControl(
"check"
);
GridTableView table = (GridTableView)(dataItem).ChildItem.NestedTableViews[0];
if
(chk.Checked)
{
tabl.Enabled =
true
;
}
}
You can try the same approach in the following help documentation to achieve the same from client side.
Enabled/Disabled conventions.
Thanks,
Shinu.