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 grouping control cursor

Thread ID:

Created:

Updated:

Platform:

Replies:

101577 Nov 3,2011 12:32 PM UTC Nov 10,2011 01:21 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
Michal
Asked On November 3, 2011 12:32 PM UTC

Hi,

I need to add a hand cursor
to a specifice column in a grid grouping control.
how can I do that?

another question,
how do I add scrollbars to the grid?(Asp.net)


Yogeshwaran [Syncfusion]
Replied On November 10, 2011 01:21 PM UTC

Hi Michal,

Thank you for using Syncfusion products.

Query#1:

Your requirement to add hand cursor for specific column can be achieved by adding CSS class which has cursor property value is pointer and add this class to column through “QueryCellStyleInfo”. please refer the following code snippet:

[CSS]


.CusorChange
{
//border color is based on grid color
border-color: #96C5F3 !important;
border-style: none none solid solid !important;
border-width: 0.5px 0 1px 1px !important;
padding-left: 4px!important;
padding-right: 4px!important;
//to set hand pointer
cursor:pointer!important;
}

[Code behind C#]


void GridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{

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

if (e.TableCellIdentity.Column != null)
{


if (e.TableCellIdentity.Column.MappingName == "Name")
{
e.Style.CssClass = "CursorChange";

}

}
}

}



Query #2:

In Query 2, your requirement to add scroll bar to grid can be achieved by setting height to grid which have large data than their height then automatically scroll bar will appear. Please refer the following code snippet.

[ASPX]



Height="300"

PageSize="20" DataSourceCachingMode="ViewState" AutoFormat="Office 2007 Blue" runat="server" ShowSearchBox="True">



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

gridcombosample384491029.zip

Please let us know if another concerns.

Regards,
Yogesh R



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

;