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

Combox On UserControl gets rendered incorrectly when I cancel rad grid update

3 Answers 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nyron
Top achievements
Rank 1
Nyron asked on 06 Mar 2009, 10:02 PM
Hello Guys,
  I am using the RadControls for ASPNET AJAX Q3 2008; I have a web form that contains a single radgrid and I use a usercontrol as the edit form for the grid. I have a particular condition that if it should occur, say a particular control is empty then I prompt the user to enter a value into that control. I use e.Canceled = true to cancel the updateCommand on the grid. however when I do this all the radcomboboxes on the usercontrol gets rendered incorrectly( the drop down arrow disappears). Any help will be greatly appreciated.


Rgards,
Nyron 

3 Answers, 1 is accepted

Sort by
0
Kyri
Top achievements
Rank 2
answered on 10 Mar 2009, 03:25 AM
I have the exact same issue. The word select also appears to the far right of the control. It appears as it the stylesheet doesnt apply correctly. Any help would be greatly appreciated
0
Veselin Vasilev
Telerik team
answered on 10 Mar 2009, 10:10 AM
Hello guys,

I tried to reproduce the problem, but to no avail.

Please find attached my test project. Feel free to modify it so I can see the issue.

Greetings,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kyri
Top achievements
Rank 2
answered on 10 Mar 2009, 10:12 PM
ok reading some other threads i think this issue occurs because of the following conditions

the control is in an ascx file which gets rendered on a radgrid  edit command. Because the radgrid is ajaxified, the edit command sometimes doesnt load the embeddedstylesheet. I downloaded the  D10XXX stylesheets from the skin exchange section of this website and tried using them. I think the trick is to register the stylesheet in both the ascx and the aspx files. So far the control has rendered correctly  but i am still testing.

 <link href="../../skins/D10Ruby2/ComboBox.D10Ruby2.css" rel="stylesheet" type="text/css" />  where the href = link to css file and then change the controls skin to 
 <telerik:RadComboBox ID="RadComboBox2" Runat="server"
                                    ondatabound="RadComboBox2_DataBound" Width="240pt"
                                    TabIndex="12" EnableItemCaching="True"
                                    EnableTextSelection="False" EnableTheming="True" Skin="D10Ruby2"
                                    EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="false">
This in theory should load the stylesheet every time
Tags
ComboBox
Asked by
Nyron
Top achievements
Rank 1
Answers by
Kyri
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Share this question
or