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

Issue: Highlight a record in Listbox

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akbar
Top achievements
Rank 1
Akbar asked on 23 May 2011, 06:56 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 25 May 2011, 08:00 AM
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 >>

0
Akbar
Top achievements
Rank 1
answered on 26 May 2011, 12:34 AM
Hi,

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

Cheers

Akbar
Tags
General Discussions
Asked by
Akbar
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Akbar
Top achievements
Rank 1
Share this question
or