Dropdown box and radUpload

Thread is closed for posting
6 posts, 0 answers
  1. Ronak
    Ronak avatar
    108 posts
    Member since:
    Sep 2010

    Posted 30 Jul 2012 Link to this post

    Hi Telerik team i was wondering if i can use Dropdown box instead of text box as per your example in RadUpload as i want to build form where user can add/remove item and i want ot have dropdown where user can select options.

    Please advise 

    Thanks 
    Ronak
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 02 Aug 2012 Link to this post

    Hello Ronak,

    I am not quite sure which example of the RadUpload you meant. In case that the sample is the Additional Fields demo, please review the following code library - it shows how to use drop down in similar context.

    Regards,
    Peter Filipov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ronak
    Ronak avatar
    108 posts
    Member since:
    Sep 2010

    Posted 03 Aug 2012 Link to this post

    Thanks for code will give it try

    ROnak
  5. Ronak
    Ronak avatar
    108 posts
    Member since:
    Sep 2010

    Posted 20 Aug 2012 Link to this post

    Thanks for working sample but in my case i have dropdown with Text and Value lets say Text = XYZ and Value=2 so using getFieldValue gives me 2 but how can i get XYZ from FileUpload.

    Please advise 

    Thanks 
    ROnak
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 23 Aug 2012 Link to this post

    Hello Ronak,

    Straight to the question. It is not possible to get the text of an option. When the select element is submitted only its value is available on the server. If you want to have both you could set the value property as follow e.g. <option value="XYZ,2">XYZ</option>.

    Kind regards,
    Peter Filipov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Ronak
    Ronak avatar
    108 posts
    Member since:
    Sep 2010

    Posted 23 Aug 2012 Link to this post

    Thanks Peter i did figure out how to do it.i am sharing my knowledge if anyone want to achieve samething.what we end of doing is we create hidden input control along with dropdown and onchange event of dropdown we set value in hidden field and read hidden field in code behind.its working like charm.

    Thanks 
    Ronak
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017