7 Answers, 1 is accepted


actually i want to know how to use tooltip with in radgrid .
when we click on edit button of grid Form template will open.
it have some controls like textbox. and button.
on button click i want to apply some validations
on these templates.
So i need soln. for Applying validation on controls which is in radgrid
i m using like that
<EditFormSettings EditFormType ="Template" >
<FormTemplate >
<telerik:RadTextBox ID="Textbox1" runat ="server">
</telerik:RadTextBox>
</FormTemplate>
Any Help will be appreciated.
</EditFormSettings>
We are not sure what exactly validation you need and how it will should in your scenario. However, clearly there are two possible approaches - and both mandate that you implement your scenario without using RadToolTip first.
Option #1- You should use one/some of the ASP.NET Validator controls supplied in the .NET framework
Option #2- You should implement your own validation using client-side code.
In both cases, once you are able to do that, and your validation works as expected, then we can help you use a RadToolTip to display the validation summary in order to provide a smoother user experience. This is certainly possible to do - for example the following online demo shows something very similar:
http://www.telerik.com/demos/aspnet/prometheus/tooltip/Examples/ClientSideAPI/DefaultCS.aspx
The example uses validators and validation summary to be displayed in the tooltip - to see how things work, load the demo and press the Submit button without filling-in the form fields.
As your case is more complex, as it involves a grid and an item template, further modifications to the code will be needed, of course. However, the most important thing is to first implement your scenario successfully without RadToolTip.
When done, in case you need further assistance from us, please open a support ticket and send us a fully runnable, working project that uses your validation mechanism, as well as exact details what you need to accomplish, and we will help you out.
Sincerely yours,
Tervel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

if click on edit button then
edit form template is open.
which have tow textboxes
like first name, last name
on first name i have used required field validator
till this application is working fine.
now my problem is this that i want to use radtooltip to show this validator message in front of user
i only want to know how to use red tooltip for showing the message of validator or how to show validation summry messages on tooltip
control

You can also have a look at the following demo links.
Flexible server-side validation
Insert in grid with tooltip
Shinu.

I have a rdgrid in page1.aspx
<
telerik:RadGrid ID="WorkDetailsGrid" runat="server" AllowPaging="True" AllowSorting="True" EnableAjax="true" >
<MasterTableView Width="100%" GroupLoadMode="Client" TableLayout="Fixed" DataKeyNames="documentid">
<telerik:GridTemplateColumn HeaderText="Sent By" UniqueName="TempColSentBy" SortExpression="SentBy">
<ItemTemplate>
<asp:Label ID="lblSentBy" runat="server" Text='<%# Container.DataItem("SentBy")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</MasterTableView> </telerik:RadGrid>
When i mouseover on label lblsentBy of WorkDetailsGrid ,a tooltip should appear.That tooltip contains a grid and many other controls.So i cant give that tooltip statically by setting controlid as lblsentby as
<asp:Label ID="lblSentBy" runat="server" Text='<%# Container.DataItem("SentBy")%>'></asp:Label>
<telerik:RadToolTip ID="RadToolTip1" TargetControlID="lblSentBy" runat="server">
In short I need grid inside tooltip and that tooltip is inside another grid viz,WorkDetailsGrid
Hope u undrstand my requiremnt
Thanks..
Hi Priya,
In order to tooltipify the main grid, you should add the desired target control to the TargetControls collection of the RadToolTipManager in the grid's ItemdataBound event. In order to show another grid in the tooltip, you should add the second grid to the RadToolTipManager's updatepanel in the OnAjaxUpdate handler. You can find a very similar example here - the only difference from your scenario is that it adds a user control in the OnAjaxUpdate handler and you should add either directly a grid or a user control with grid in it. I also recommend to examine the demo's full source code.
When you install RadControls, our online examples projects are automatically installed on your computer and you can not only examine their full source code, but also extend them further in order to meet your requirements.
You can open the demos from here:
Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio
The actual location on your hard disk is the following one:
C:\Program Files\Telerik\RadControls for ASPNET AJAX \Live Demos
I hope that this information is helpful.
Best wishes,
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.