Issue: Highlight a record in Listbox

3 posts, 1 answers
  1. Akbar
    Akbar avatar
    19 posts
    Member since:
    Mar 2011

    Posted 23 May 2011 Link to this post

    Hi

    I am creating a custome code which looks for a Data driven value in the list box. The code is as follows:

    pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByText(Data(

     

    "Process Order").ToString())
    The above codes works fine.

     


    Now i try to highlight the record, using following code:

    pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByText(Data(

     

    "Process Order").ToString()).User.Click()

     

    I get following exception:

    Exception thrown executing coded step: '[Main_Step_CodedStep] : New Coded Step'.InnerException:System.NullReferenceException: Object reference not set to an instance of an object. at Main_Step.Main_Step_CodedStep() in C:\....\Test Studio Projects\Original Code\Main Step.tstest.vb:line 70


    Note: The above code used to work perfectly Fine in previous release. Please advice how should i rectify the above issue.

    Regards

    Akbar
     
  2. Answer
    Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 25 May 2011 Link to this post

    Hi Akbar,

    We've deprecated the VisualFind.ByText method. Please replace that with the VisualFind.ByTextContent method instead.

    Regards,
    Konstantin Petkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Akbar
    Akbar avatar
    19 posts
    Member since:
    Mar 2011

    Posted 25 May 2011 Link to this post

    Hi,

    Thanks for your help, everything looks good now. We can now close this thread.

    Cheers

    Akbar
Back to Top