Essential Grouping ASP.NET
grid grouping control cell cursor
November 29, 2011 11:35 PM by Yogeshwaran[Syncfusion]
Michal
grid grouping control cell cursor
November 8, 2011 03:14 AM
Hellow,

How can I add a hand cursor
to a specific cell in GGC child table.


Arulraj A
[Syncfusion]
grid grouping control cell cursor
November 11, 2011 05:23 AM
Hi Michal,

Thanks for using Syncfusion Products.

To set cursor for a particular cell in a child table, we suggest you to hook the ChildTableControl’s CellCursor event and set the cursor. Using the following code, this can be achieved.

GridTableControl childTableControl = this.groupingGrid1.GetTableControl("Products");
childTableControl.CellCursor += new GridCellCursorEventHandler(childTableControl_CellCursor);

void childTableControl_CellCursor(object sender, GridCellCursorEventArgs e)
{
if (e.RowIndex == 3 && e.ColIndex == 3)
{
e.Cursor = Cursors.Hand;
}
else
{
e.Cursor= Cursors.Default;
}
e.Cancel = true;
}


Here is a sample for your reference.
http://www.syncfusion.com/downloads/Support/DirectTrac/87095/CS-385546723.zip

Please let us know if you have any further concerns.

Regards,
Arulraj.A


Michal
grid grouping control cell cursor
November 14, 2011 01:49 AM
thank you for the answer,
but this is not what I need.
I have a web grid and I had not found any event
for cursor.


Yogeshwaran
[Syncfusion]
grid grouping control cell cursor
November 16, 2011 04:35 AM
Hi Michal,

Sorry for the inconvenience caused.

Your requirement to set hand cursor at particular child cell can be achieved by using CSS property in "QueryCellStyleInfo". please refer the following code snippet:

[CSS]

.CursorChange
{
//border color depends 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;
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.MappingName == "Role" && e.TableCellIdentity.Table.TableDescriptor.Name == "ChildEmployee")
{
if (e.Style.Text == "software level2")
e.Style.CssClass = "CursorChange";
}

}

}



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

HAND CURSOR-682038469.zip

please let us know any other concerns.

Regards,

Yogesh R

Michal
grid grouping control cell cursor
November 28, 2011 06:10 AM
Thank you very much,
it solved my problem.

Yogeshwaran
[Syncfusion]
grid grouping control cell cursor
November 29, 2011 11:35 PM
Hi Michal,

Thank you for using Syncfusion products.

we are happy to know that your issue is resolved.

Please let us know if any other concerns.

Regards,
Yogesh R

::adCenter::