Here i am using below code for grid view and java script function for check all..
those are working fine.
if i select check all it will select all check boxes in the grid view.
now my query is if uncheck one child check box then i need to uncheck the select all check box and again if check that unchecked check box then again i need to show select all check box will be checked.
and if i select all child check boxes individually this time also need to to show the select all check box will be checked.
below is my gridview and select all javascript function
GridView1_SelectedIndexChanged"
Style="z-index: 109; left: 133px; position: absolute; top: 278px" Width="639px">
type="checkbox" />
and below java script function for check all.
how can i achieve the functionality....
please help me....
if you see the yahoo mail inbox then it will come with check boxes. i want same functionality.....
thank you....
abhishek trivediPosted Dec 5, 2008, 12:30 AM
Hi !!
All u have to do is fire a server side event on check box click then u have to check wether all are checked or not. and on that behalf u have to set that Check All button .
Thats it, Its verry simple. you can try it and pls let me know if any query. I have also implemented this in my project.
Pankaj GuptaPosted Dec 3, 2008, 2:14 AM
Here as have to call a javascript method on the check box placed in the item template of the grid view. when any checkbox from the gridview is checked or unchecked it should call and one of the already written javascript method having loop is used to check is all checkboxed are checked or not, on this basis you can set the value of main checkbox.
Nipun TomarPosted Dec 3, 2008, 12:41 AM
have a look at this article, may this be helpful for you.
Selecting multiple Checkboxes inside multiple GridViews