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

Width decreases and styling is lost after postback

6 Answers 65 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Aneesh Pulukkul
Top achievements
Rank 1
Aneesh Pulukkul asked on 11 Feb 2010, 08:51 AM
Hello Team,

I have a RadComboBox that works fine as long as any postback events do not occur. But when a postback occurs, the width of combobox decreases and the styling is all messed up - additional "select" text is displayed on the right end and list items are displayed with a transparent background. I have tried the solutions found here, but were ineffectual:

http://www.telerik.com/support/kb/aspnet-ajax/combobox/radcombobox-changes-width-height.aspx
http://www.telerik.com/community/forums/aspnet/combobox/radcombo-width-changes-after-an-ajax-postback.aspx

The point here is that it doesn't happen for an AJAX postback - it happens only when entire page is reloaded.

Could you please provide a solution as we have to use RadComboBox across many pages in our application?

Thanks,
Aneesh Pulukkul

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Feb 2010, 12:50 PM
Hello Aneesh,

It looks as the skin is not loaded after the postback, but we're not able to help unless you provide us with a simple project demonstrating the problem.

Best wishes,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rob
Top achievements
Rank 2
answered on 08 Apr 2010, 10:39 PM
I'm having the same exact problem and cannot find a resolution to it. It is as explained, when I first load the page the combobox loads perfect with skin and all. Once I have to do a postback to the page, it looks as though the width is half of what it should be or possibly the default width, the top and bottom images are still the correct length, no arrow for the image and the word "select" on the end.

This problem has only shown up on the latest version of 2009.3.1314.35

I am also putting this in as a support ticket.

Thanks
Rob


0
Simon
Telerik team
answered on 09 Apr 2010, 12:21 PM
Hi Rob,

Let us continue our communication in the support ticket you have submitted.

Once we pinpoint the cause of the issue I will write here as well to let others know about the resolution.

All the best,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jen
Top achievements
Rank 1
answered on 30 Jun 2010, 03:09 PM
I am having the same problem...was there any resolution to this issue?
0
Rob
Top achievements
Rank 2
answered on 30 Jun 2010, 03:14 PM
Yes there was. I had to add code to the Page Load event to make sure that skin rendering was back on for the ajax controls. I'm currently working on the controls themselves to fix the issue because I have over 45 lines of worthless code to work around this.

 

// This is hack to make the skin work on these controls until telerik fixes it.

 

 

if (!rsmInvesting.IsInAsyncPostBack)

 

{

lbEdocs.EnableAjaxSkinRendering =

true;

 

ddEdocStMonths.EnableAjaxSkinRendering =

true;

 

ddEdocsStYear.EnableAjaxSkinRendering =

true;

 

ddConfirmsAction.EnableAjaxSkinRendering =

true;

 

ddEdocsTaxYear.EnableAjaxSkinRendering =

true;

 

ddEdocsTaxType.EnableAjaxSkinRendering =

true;

 

ddPositionSelect.EnableAjaxSkinRendering =

true;

 

ddActivityCrit.EnableAjaxSkinRendering =

true;

 

ddAccounts.EnableAjaxSkinRendering =

true;
}

This is just a few of the lines but you get the idea.

Thanks
Rob

 

0
Jen
Top achievements
Rank 1
answered on 30 Jun 2010, 04:09 PM
Thanks!  I will give it a try.

Tags
ComboBox
Asked by
Aneesh Pulukkul
Top achievements
Rank 1
Answers by
Yana
Telerik team
Rob
Top achievements
Rank 2
Simon
Telerik team
Jen
Top achievements
Rank 1
Share this question
or