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

Item Template

1 Answer 72 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin Kutlesa
Top achievements
Rank 1
Kevin Kutlesa asked on 27 Apr 2011, 05:06 PM
Hello, i've got a couple of the comboboxes (combo1 and combo2) on a page, each of them has checkboxes...now, while I have seen and used the javascript method to update combo2 based on what someone checks on combo1, for certain requirements, I need to do this on the server side, using the checkbox's oncheckedchanged event, with autopostback true (otherwise, it doesn't do squat)

I also have everything withing an ajax update panel, but the checkboxes still cause a full postback...if I try to set the checkbox as the trigger for an async postback, I get the error saying the update panel can't find a control names chk1 (the name of the checkbox in the item template)

I even tried placing everything inside a RadAjaxPanel, and even then, the checkbox event causes a full postback...can anyone help me with this?

-----------------------------------

With that said, I'm trying to work from the server because when I work with the javascript, once I hit a button to do some server side process, combo2 acts, from the server side like it hadn't been changed at all...if I could resolve this, I wouldn't need to fire events from the checkboxes server-side...so if anyone has the solution for this, i'd be very grateful

I'm using both the combobox item template demo as sources as well as the Related Combobox demos, here are the links

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

Thank you all in advance

----------------

Update:

Tried using RadAjaxManager instead of updatepanel:
<telerik:RadAjaxManager ID="rManager" runat="server">       
    <
AjaxSettings>           
       <
telerik:AjaxSetting AjaxControlID="chk1" EventName="CheckedChanged">
           <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="chk2" />
                <telerik:AjaxUpdatedControl ControlID="silverlightControlHost" />           
           </
UpdatedControls>
       </
telerik:AjaxSetting>
    </
AjaxSettings><br>       
</
telerik:RadAjaxManager>  


chk1 is the checkbox item with the event. chk2 will be updated depending on what you check/uncheck, and silverlightControlHost is a div that contains a silverlight app that will also be updated...

While it doesn't give me the error the updload panel did, it still does a full postback...

Hope you can help me

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 02 May 2011, 11:35 AM
Hello Kevin,

Have you tried setting the RadComboBoxes as ajax initiator control and updated control?
You can also share the full page content or send us a sample code which illustrates your scenario and the issue so we can debug the problem locally.

Kind regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
Kevin Kutlesa
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or