Dynamic Values from textbox and Dropdownlist

3 posts, 0 answers
  1. Md
    Md avatar
    2 posts
    Member since:
    Oct 2016

    Posted 14 Mar 2017 Link to this post

    Hi, I have a radgrid, which has some columns created dynamically from code-behind, and rest of the columns are auto generated coming from the DataSource. The dynamic columns are : 1) CheckBox Column created through GridClientSelectColumn from backend(VB) 2)the remaining are a DropDown an TextBox created inside a GridTemplateColumn from backend(VB). I have also created hidden input field, to hold the values  fromt he dropdown and the textbox respectively. 

    I followed some of the solution provided in the forum, Unfortunately, no success. Can anybody please help me to export this data. As of now, if i try to export in excel or pdf, I am getting a blank column in place of the textbox and "select" in the column representing the DropdownList and "False" in the column representing the CheckBox Column. Please advice or point to me in the right direction

    I tried iterating the entire grid, and copy the selected value from the dropdownlist, but it is throwing a NullException, the values from TextBox is Empty

    Thanks, in advance

  2. Austin
    Austin avatar
    17 posts
    Member since:
    Sep 2015

    Posted 03 Oct 2018 in reply to Md Link to this post

    I have a drop down which is quite dynamic and huge set of data(50-60+) data.

    My manual scenario is I reach out to that page,click on drop-down icon,type expected value, and dropdown will bring that typed keys in selection, hitting enter will bring it in selection mode  in drop-down.

    I tried to acheive it with following code

    //Identifying drop down icon.

    Element change_system =Find.ByXPath("//select[@id='ddlSystemClientId']");

    //clicking on drop down icon, which expand drop down


    //Typing or sending keys to select specific value which is 50th position in drop down

    ActiveBrowser.Actions.SetText(change_system,"core speaker");  

    I got an error 

    Target '[Element: 'select:0' (id=ddlSystemClientId)]' is not a supported element to set text to.

    (PFA Screenshot)

    What can be possible code for this in coded staep


  3. Elena
    Elena avatar
    1271 posts

    Posted 04 Oct 2018 Link to this post

    Hi Austin,

    Thank you for contacting us. 

    The forum post you have found is related to a Telerik product different from Test Studio. Therefore I have submitted a support ticket with the shared information, on your behalf. Its id is 1097815 and you could expect further information in it shortly. Thank you for your understanding! 

    Elena Tsvetkova
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top