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

CheckBox display problem

4 Answers 94 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 24 Mar 2008, 06:15 PM
I have this list box that updates several check boxes (asp:CheckBox) whenever the user selects a new value in the list. I've noticed that the check boxes don't display correctly now that I've wired them up using a RadAjaxManagerProxy.

The problem I am having is that the check boxes are each followed by an asp:Label which gets broken to a new line only when wired up using ajax manager. I want the check box and text to remain on the same line.

I can see that the combo box is getting rendered with a surrounding div. I'm assuming the problem has something to do with the div since it's display mode is block? For some reason this gets rendered in the browser differently depending on whether or not ajax manager is involved.

Thanks,
Joe

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Mar 2008, 02:42 PM
Hello Joe,

You are correct in your observations that the updated control is surrounded by div - this is how the asp:UpdatePanels render by default (rendermode="block"). To change that you can hook up to the OnAjaxSettingCreating and change the RenderMode to Inline which would render the updatePanel as span element:

e.UpdatePanel.RenderMode = UpdatePanelRenderMode.Inline;

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joe
Top achievements
Rank 2
answered on 31 Mar 2008, 02:54 PM
I didn't see the event in my RadAjaxManagerProxy. I had to expose the RadAjaxManager from my master page. That fixed my issue.

Just curious why that isn't exposed from the proxy?

By the way, you guys rock.

Thanks,
Joe
0
Sebastian
Telerik team
answered on 31 Mar 2008, 03:04 PM
Hi Joe,

The event is not exposed for the RadAjaxManagerProxy because it is only a container for ajax settings which are appended to those set for the RadAjaxManager residing in the master page.
However, using the GetCurrent(Page) method gives you straight-forward means to get access to the ajax manager residing in the master page and thus you can invoke its ajaxRequest method and handler the AjaxRequest event:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/MasterPage/DefaultCS.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joe
Top achievements
Rank 2
answered on 31 Mar 2008, 03:17 PM
That's useful to know. I've just changed my page to use GetCurrent.

Thanks,
Joe
Tags
Ajax
Asked by
Joe
Top achievements
Rank 2
Answers by
Steve
Telerik team
Joe
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or