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

[Solved] Tab Event In the User Control

2 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chethan Rajashekaraih
Top achievements
Rank 1
Chethan Rajashekaraih asked on 15 Sep 2009, 07:27 AM
HI All

I have an User Control which as Rad Text Box ,a Button,Rad Text Box...I have arraged respectively.First Text Box is the Code field and button is used to show all the Code in the Database ..Third button is used to show the description of the Code .

Scenario ...When the User Enters the Code and tabs out then the Server side method should be called and it should validate is that the Code is correct if the code is correct then the Description should be populated ..If the Code is Wrong then Message should be populate dto the User

Problem Area : Without the UserControl i am able to call the Server side Event ...But when we write the same code in the Control it is not able to recognise the Current page and it not calling the server Side function


...I need to write the server side function in the Control......I have used Rad Proxy Manager but i am not able to Do ...


Can you please help me out on this

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 15 Sep 2009, 08:03 AM
Hello Chethan,

Can you check and share with us whether the same implementation works as expected when you replace the RadTextBox instance from the user control with regular MS TextBox control? Basically, if the server-side event is raised with standard textbox and the validation logic is passed, the scenario should work with RadTextBox as well.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chethan Rajashekaraih
Top achievements
Rank 1
answered on 15 Sep 2009, 09:34 AM
HI

Both Telerick and ASP.Net works similar way there is no Doubt in that ..I have find the solution for this .When the User Control is placed in the Form the Control Name changes ...So I was using Document.GetElementID("HiddenButton").Click();...This code i was using in the JavaScript ..but the Name of the button changes when the Control is placed in the Form.....It should be changed as

Document.GetElementID("Pagename_HiddenButton").Click()...This works fine ........You can get the Id of the Button throw the Source file ...............This works in all browser ..............

.Thats the Solution for my problem....


I have one more problem now .............

I have kept a hidden button in the Control and the Click event of the button is called from onBlur JavaScript event........As of now the Button Client is fired in the Control .So in the Control i am getting the Description...............But in few scenarion i need to button client event should fire in the Form where the control is used ...........How can i expose the Button click event of Control to Form Level
Tags
General Discussions
Asked by
Chethan Rajashekaraih
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Chethan Rajashekaraih
Top achievements
Rank 1
Share this question
or