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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid

Thread ID:

Created:

Updated:

Platform:

Replies:

106555 Jan 15,2013 04:15 AM Jan 22,2013 07:31 AM ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Ochieng
Asked On January 15, 2013 04:15 AM

Hallo,
i am working on a grid and need to have customized buttons within the grid. In Windows form there is the function

public virtual void DrawButton(Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)

and i was wondering if there is a version for the web grid grouping control.

Thank you

Ochieng
Replied On January 15, 2013 10:32 AM

im end effect how to create push buttons in web grid grouping control.

Bala Murugan A.S [Syncfusion]
Replied On January 18, 2013 05:24 AM

Hi Ochieng,

 

We have an option to change cell type in grid grouping control using CellType property. We suggest you to set CellType as 'PustButton' to achieve your requirement. Please refer the below code snippets.

 

In Design Time:

 

<syncfusion:GridColumnDescriptor HeaderText="TempColumn" MappingName="TempColumn">

                    <Appearance>

                        <AnyRecordFieldCell CellType="PushButton" />

                    </Appearance>

</syncfusion:GridColumnDescriptor>

 

 

Using QueryCellStyleInfo ( Changing CellType dynamically):

this.ggc1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(ggc1_QueryCellStyleInfo);

 

void ggc1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

        {

            if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)

            {

                if (e.TableCellIdentity.Column.MappingName == "TempColumn")

                {

                    e.Style.CellType = "PushButton";

                }

 

            }

        }

 

Here is the documentation link: http://help.syncfusion.com/ug/asp.net/grid/Documents/excellikeedit.htm

 

We have prepared a simple sample to demonstrate this and the same can be downloaded from the below link.

 

Demo sample: CellType.zip

 

Please let us know if you have any concerns.

 

Regards,

Bala Murugan A.S


Ochieng
Replied On January 21, 2013 03:10 AM

Hallo Murugan,
thanks. That will work fine


Bala Murugan A.S [Syncfusion]
Replied On January 22, 2013 07:31 AM

Hi Ochieng,

Thanks for your update.

Please contact us if you have any other concerns or queries.

Regards,
Bala Murugan A.S

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

;