Hi Telerik,
So, I encountered the issue where I would change a RadComboBox's selection programmatically client-side and it would trigger a postback when unwanted.
I came up with this solution, but I do not know if this is best practice. If not, what other options do I have? If so, cheers to anyone else who can use it.
1) Turn RadComboBox autopostback to false.
So, I encountered the issue where I would change a RadComboBox's selection programmatically client-side and it would trigger a postback when unwanted.
I came up with this solution, but I do not know if this is best practice. If not, what other options do I have? If so, cheers to anyone else who can use it.
1) Turn RadComboBox autopostback to false.
<script type="text/javascript"> var doPostback = true; function pageLoad() { doPostback = false; $find("<%= RadComboBox1.ClientID %>").findItemByValue("YourItemHere").select(); doPostback = true; } function OnClientSelectedIndexChanged(sender, eventArgs) { if (doPostback) { __doPostBack('RadComboBox1', ''); } } </script>