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

Multiple radCombobox

4 Answers 149 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 23 Apr 2008, 02:09 PM
Hello,

Is it possible to maintain radcombobox selectedvalue on postback if items are being added by calling requestitems on clientside? because i've seen the adding, removing items client side functionality and i was wondering if it is possible to track changes made on callback..

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Apr 2008, 12:09 PM
Hi David,

Go through the following forum link which discusses a similar scenario.

Selected Value not available in postback when loaded from client side RequestItems

Thanks
Princy.
0
Rosi
Telerik team
answered on 24 Apr 2008, 01:05 PM
Hi David ,

You can access SelectedValue of RadComboBox after postback like this:

RadComboBox1.SelectedValue

This will work even if the items are added on client side.


Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 27 Apr 2008, 05:59 PM
Alright thank you :)

Still, i am not being able to get the radcombobox ( it returns null on $find ) on clientside.. weird behavior.. since i am able to get it debugging with microsoft script debugger.. i am doing it this way:

<

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">


<

script language="javascript" type="text/javascript">


var

municipalityCombo = $find("<%= fIDWebMunicipality.ClientID %>");

</

script>

</

telerik:RadCodeBlock>

0
Rosi
Telerik team
answered on 28 Apr 2008, 12:22 PM
Hello David,

RadCodeBlock and RadScriptBlock are used to allow server and client script to work well together with AJAX updates. I suggest you put the following code afer RadComboBox definition.

<script type=text/javascript>
function pageLoad()
{

      var combo = $find("<%= fIDWebMunicipality.ClientID %>");

}

</script>

If this does not help you, please open a support ticket and send us a simple running project.


Regards,
Rosi
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rosi
Telerik team
David
Top achievements
Rank 1
Share this question
or