This is a migrated thread and some comments may be shown as answers.

Theme Builder problem with Gridview

3 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
HAri
Top achievements
Rank 1
HAri asked on 20 Oct 2008, 12:38 PM
Hello,

I am using the trial version for evaluation purpose. I clicked on the smart tag in a rad grid view and used the theme builder to change gridGroupExpandercellelement's SignStyle property to PlusMinus. And i saved the theme in a new xml and i gave the theme a name. Then dragged a radthememanager and loaded my newly created theme and in the smart tag of the gridview i loaded my theme. But some the expander still shows the arrow sign rather than the plus sign that i wanted. Any help would be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 20 Oct 2008, 04:19 PM
Hello HAri,

Thank you for reporting the issue. I have updated your Telerik points.

Here is a workaround from the time being using the CellFormating event:

 private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)  
{  
            if (e.CellElement is GridGroupExpanderCellElement) {  
                ((GridGroupExpanderCellElement)e.CellElement).SignStyle = GridGroupExpanderCellElement.SignStyles.PlusMinus;  
            }  

Sorry for the inconvenience. Do not hesitate to contact us back if you need further assistance.
 

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
HAri
Top achievements
Rank 1
answered on 21 Oct 2008, 05:37 AM
Hi,

When checking with that code e.CellElement was never GridGroupExpanderCellElement. Itseither GridCheckboxCellElement or GridDataCellElement.

 

 

private void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)

 

{

 

if (e.CellElement is GridGroupExpanderCellElement)

 

{

((

GridGroupExpanderCellElement)e.CellElement).SignStyle = GridGroupExpanderCellElement.SignStyles.PlusMinus;

 

}

}

0
HAri
Top achievements
Rank 1
answered on 21 Oct 2008, 06:16 AM
Hi,

I used ViewCellFormatting event and it worked.











private
void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)

{

if (e.CellElement is GridGroupExpanderCellElement)

{
((
GridGroupExpanderCellElement)e.CellElement).SignStyle = GridGroupExpanderCellElement.SignStyles.PlusMinus;

}
}
Tags
GridView
Asked by
HAri
Top achievements
Rank 1
Answers by
Nick
Telerik team
HAri
Top achievements
Rank 1
Share this question
or