We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add checkbox to GGC headers

Thread ID:

Created:

Updated:

Platform:

Replies:

101309 Oct 13,2011 01:31 PM UTC Nov 3,2011 07:03 AM UTC ASP.NET Web Forms (Classic) 8
loading
Tags: Grouping
Tufan KUPELI
Asked On October 13, 2011 01:31 PM UTC


my GGC'headers created dynamicly from datatable,

i want to add Checkbox some headers and i can traverse this checkbox for checked or not checked ,while form submiting ?

i m using c#

Thanks for help.


Tufan KUPELI
Replied On October 17, 2011 07:42 AM UTC

Update on Pls


Sridhar N [Syncfusion]
Replied On October 31, 2011 11:28 AM UTC

Hi Tufan,

Thanks for your interest in Syncfusion products.

We deeply regret for the inconvenience caused. Could you please check the online sample in the below link for check box in Row Header.

http://asp.syncfusion.com/sfaspnetsamplebrowser/9.4.0.62/Web/Grid.Grouping.Web/Samples/4.0/Template/CheckedTemplate/cs/checkboxtemplate.aspx

If i have misundestand your requirement please provide us more information.The information provided would be of great help in resolving the issue.

Please let us know if any concerns.

Regards,
Sridhar N


Tufan KUPELI
Replied On October 31, 2011 12:24 PM UTC

this samples show us that column type is checkbox or not

our needing is all columns type is string but header row's cell include checkbox AND string

our app use this checkbox for decision to use this column's value or not.


Yogeshwaran [Syncfusion]
Replied On November 1, 2011 10:44 AM UTC


Hi Tufan,

Thank you for using Syncfusion products.

Your requirement to set checkbox in the header of the grid with string can be achieved by using “HeaderTemplate” which is used to hold check box and text in header of the grid. Please refer the following code snippet:

[ASPX]







For your convenience, we have created the following sample and the same it can be download from below link:

http://www.syncfusion.com/downloads/Support/DirectTrac/86429/grid combo sample744895052.zip

Please let us know any concerns.

Regards,
Yogesh R



Tufan KUPELI
Replied On November 1, 2011 02:06 PM UTC

Thank you for your replies, i can use header template in static headers but i can not create dynamic header like this i cant create GridColumnDescriptor and header template could you write a sample in here only creating sample for GridColumnDescriptor and header template ?


Yogeshwaran [Syncfusion]
Replied On November 2, 2011 09:02 AM UTC

Hi Tufan,

Thank you for using Syncfusion products.

Your requirement to add checkbox with string in header of the grid without “GridColumnDescriptor” and “HeaderTemplate” can be achieved through “QueryCellStyleInfo” which is used to add
Checkbox with string at header. Please refer the following code snippet:

[code behind C#]

void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{

if (e.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell)
{

CheckBox Check = new CheckBox();
Check.ID = "Check";
Check.Text = e.Style.Text;
HTemplate Temp = new HTemplate(Check);
e.TableCellIdentity.Column.HeaderTemplate = Temp;

}

}



For your convenience, we have created the sample and it can be download from below link:

http://www.syncfusion.com/downloads/Support/DirectTra/8543/gridcombo sample744895052208402570.zip

Please let us know if any concerns.

Regards,
Yogesh R


Tufan KUPELI
Replied On November 2, 2011 02:02 PM UTC

thank you for your help

last sample url down to 404 could you refresh that


Sridhar N [Syncfusion]
Replied On November 3, 2011 07:03 AM UTC

Hi Tufan,

Thanks for your update.

We have uploaded the sample again and the same can be downloaded from the below link.

gridcombosample744895052-641180274.zip

Please let us know your concerns.

Regards,
Sridhar N



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;