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

radinputmanager for raddateinput, raddatepicker?

2 Answers 88 Views
Input
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 15 Oct 2009, 06:54 PM
I have looked into this old post:

http://www.telerik.com/community/forums/aspnet-ajax/input/radinputmanager-and-radtextbox.aspx

I would also like to extend functionality to show tooltips for validation errors. However, if I use RadInputManager, I could only show this behaviour using regular MS Textbox controls. From the example on the code on the Telerik blog, I replaced a textbox with a raddateinput and changed the javascript on the onClientDateTxtError event from

                var eleId = args.get_targetInput().get_id();
                var ele = $get(eleId);

to

                var ele = $get('<%=RadDateInput1.ClientID%>' + '_text');

Noticed that tooltip doesn't show or validation is not firing..

Also, being this is an old post, is there something on the current build to allow RadInputManager to work for the RadInput controls (radtextbox, raddateinput, raddatepicker, radmaskedtextbox, radnumerictextbox, etc.)?

            <telerik:DateInputSetting BehaviorID="DateInputSetting1" ErrorMessage="Invalid Date" EmptyMessage="Enter Date in   MM/DD/YYYY" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" Validation-IsRequired="true" Validation-ValidateOnEvent="All">
                <ClientEvents OnError="onClientDateTxtError" OnKeyPress="onClientTextChanged" />
                <TargetControls>
                    <telerik:TargetInput ControlID="RadDateInput1" />
                </TargetControls>
            </telerik:DateInputSetting>


Or is it one thing or the other? Meaning, RadInputManager + ASP.NET textbox   OR   RadInputControls + ASP.NET validation controls

Sample codes would be appreciated. Thanks!



2 Answers, 1 is accepted

Sort by
0
Philip
Top achievements
Rank 1
answered on 09 Nov 2009, 06:46 PM
Thanks for the reply. I have another related issue, I moved the javascript code for security reasons to an external .js file:

 

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

<script type="text/javascript" src="JScript1.js">

 

 

</script>

 

 

</telerik:RadScriptBlock>

 


I noticed that the radtooltips are not popping out anymore. When I add the code back inline on the script tag then it works. Is this a known issue? Is there a workaround for this? Thanks.


0
Martin
Telerik team
answered on 11 Nov 2009, 12:00 PM
Hello Philip,

You should ensure that you reference the controls correctly in the external Javascript file. For example if in the markup you have declaration like this:

var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>");

Then in the .js file you can try the following modification:

var tooltipManager = $find("RadToolTipManager1");

I hope this helps,
Martin
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.
Tags
Input
Asked by
Philip
Top achievements
Rank 1
Answers by
Philip
Top achievements
Rank 1
Martin
Telerik team
Share this question
or