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

Value of Radcombo with template and grid

3 Answers 93 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Legalia
Top achievements
Rank 1
Legalia asked on 19 Feb 2009, 08:12 AM
Hi...
i am using Radcombo with template. and using grid in template.
i created this referring http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

i am setting text and value on grid row select. but on server side. i am not getting changed value.

on postback i am not getting the value which i set using javascript.
only able to get text in dropdownObj.Text. but i want value and text both.

in telerik demo also it happen same, not getting value on server side.

please help..

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 20 Feb 2009, 07:54 AM
Hi Legalia,

Please place the code for setting the text and value of the combobox betweeen:

combo.trackChanges(); 
//set the text and the value here... 
 
combo.commitChanges(); 

I hope this helps.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Legalia
Top achievements
Rank 1
answered on 21 Feb 2009, 05:33 AM
Hi...
thanks for reply..

it should work but i am still not getting changed value and text on server side using

combo.trackChanges(); 
//set the text and the value here... 

combo.commitChanges();

my function code :
   function onPersonRowSelected(idRecord,fullName,ddlClientId) 
    {                        
            var ddlObj = $find(ddlClientId); 
 
            ddlObj.trackChanges();  
        ddlObj.set_text(fullName); 
        ddlObj.set_value(idRecord); 
        ddlObj.commitChanges();  
                 
        ddlObj.hideDropDown();       
 
        return false
    } 
it is calling on linkbutton. last statement return false; so it will not postback.

--------
now i am somehow getting value deserializing Request.Form[ddlObj.ClientStateFieldID].
but it should not be accepted solution.
0
Veselin Vasilev
Telerik team
answered on 23 Feb 2009, 02:58 PM
Hello Legalia,

Maybe I am missing something here so I think that the best way to proceed is to open a new support ticket and send us a sample running project which demonstrates the issue.

Thanks

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Legalia
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Legalia
Top achievements
Rank 1
Share this question
or