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

GridTextColumnEditor

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
glenn
Top achievements
Rank 1
glenn asked on 28 Jul 2008, 01:05 PM
Hi,

GridTextBoxColumnEditor and GridDateTimeColumnEditor do have the same member TextBoxStyle. They both directly implement GridTextColumnEditor. Why is the member TextBoxStyle not placed in  GridTextColumnEditor???

Greets,
Glenn



3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 29 Jul 2008, 07:04 AM
Hello Glenn,

Yes, GridTextBoxColumnEditor and GridDateTimeColumnEditor both have the TextBoxStyle property. So what seems to be the problem?

Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
glenn
Top achievements
Rank 1
answered on 29 Jul 2008, 07:19 AM
if they both have the same member, it would be nice if the member is placed in the base class GridTextColumnEditor so i can access the member through the base class.

now i must do:
private void CreateColumnEditorEventHandler(object sender, GridCreateColumnEditorEventArgs e) 
        { 
             
            if (e.ColumnEditor is GridTextBoxColumnEditor) 
            { 
                ((GridTextBoxColumnEditor)e.ColumnEditor).TextBoxStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.None; 
            } 
            else if (e.ColumnEditor is GridDateTimeColumnEditor) 
            { 
                ((GridDateTimeColumnEditor)e.ColumnEditor).TextBoxStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.None; 
            } 
        } 

otherwise i could do:
 private void CreateColumnEditorEventHandler(object sender, GridCreateColumnEditorEventArgs e) 
        { 
             
           ((GridTextColumnEditor)e.ColumnEditor).TextBoxStyle.BorderStyle = system.Web.UI.WebControls.BorderStyle.None; 
            
        } 

greets
0
Missing User
answered on 04 Aug 2008, 07:06 AM
Hi glenn,

Thank you for your suggestion - I will forward it to our developers for further consideration.

Regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
glenn
Top achievements
Rank 1
Answers by
Dimo
Telerik team
glenn
Top achievements
Rank 1
Missing User
Share this question
or