How to caculate the Radmasked textbox length

Priyanka

We have used the RadMasked textbox control for home phone number field of Standard mask type.(___-___-____) which allow 10 digits home phone number and I want to calculate the Radmasked textbox length in coded step.

Priyanka

Hi Boyan Boev,
I want to calculate length in coded step.
I am extracting the radmasked textbox value using object in coded step
object objhomephone= GetExtractedValue("RmtbHomePhoneNumberText"); where RmtbHomePhoneNumber is DataBindVariableName, i didn't get the RmtbHomePhoneNumber.TextBoxValue property.
SO please help me to find out the solutions for these.

Priyanka

Hi Boyan Boev,
I can't able to see the video which you have been recorded, actually it displays the blank page.
As you said, i have use the same code in my test project but it gives the "Object reference not set to an instance of an object." error..
Previously, i have use the some code and it gives me the same error on first line itself thats the reason i used the object because i think i am passing the wrong control/field Id in following code line.

For you information , i am passing the control id using page view source.
Can you please tell, from where i get the exact page control id???
And if possible, can i see the previously recorded video.???

Priyanka

I have use the same code for radinput control to check whether it is working properly or not for radinput instead of Radmasked textbox but same exception is thrown "Object reference not set to an instance of an object."
I have written the following code.
RadInput input= ActiveBrowser.Find.ById<RadInput>("rtbPatientFirstName");
input.TypeText("Priya");
string inputvalue= input.TextBoxValue;
Log.WriteLine(inputvalue);
As you advised, i have passed the control id using F12 developer tools.
Please find the attached images which gives you the brief idea.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.