Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
I followed the example in your demo, but for some reason whenever my mouse moves off the detail label it causes an entire page refresh. Has anyone had this happen or now of a quick setting to prevent this? 

The application has multiple tabs and when the issue happens, the user has clicked into the second tab so the page itself is already in postback state.

Tooltip Manager source:
<telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200"
EnableShadow="true" HideDelay="0" ID="RadToolTipManager1" Width="463px" Height="220px"
RelativeTo="Element" Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate"
Skin="Telerik" />

Code behind:
   
Protected Sub rpExercise_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rpExercise.ItemDataBound
    Dim lnkBtn As Label = e.Item.FindControl("lblDetails")
    Dim currentRow As System.Data.DataRowView = DirectCast(e.Item.DataItem, System.Data.DataRowView)
    Me.RadToolTipManager1.TargetControls.Add(lnkBtn.ClientID, currentRow.Row("id").ToString(), True)
End Sub
Protected Sub OnAjaxUpdate(sender As Object, args As ToolTipUpdateEventArgs)
    Me.UpdateToolTip(args.Value, args.UpdatePanel)
End Sub
Private Sub UpdateToolTip(elementID As String, panel As UpdatePanel)
    Dim lbl As New Label
    lbl.Text = "Hi there"
    panel.ContentTemplateContainer.Controls.Add(lbl)
End Sub
Marin Bratanov
Telerik team
 answered on 10 Feb 2012
8 answers
76 views

Hi,

I am upgrading 2008 Q3 version of telerik control to 2011 Q3 version in my project in .NET 4.0. To localize/customize the HyperLinkManager of the editor, The LinkManager.ascx file (without .cs file) of the Telerik was customized.

We do have that file under RadControls\Editor\Dialogs folder. It used to work fine until we upgraded. Now, when we click the hyperlink manager icon on the editor it throws the below exception. Is there any workaround for this?

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Dialogs.UserControlResources.GetLocalizationScript() +995
   Telerik.Web.UI.Dialogs.UserControlResources.OnPreRender(EventArgs e) +46
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint
Rumen
Telerik team
 answered on 10 Feb 2012
1 answer
86 views
Hi,
I am using the RadEditor from 2011 Q3 version of telerik as below. It is very straight forward at this point. But the controls are all vertically aligned instead of top in IE 7. In IE 8 it works fine. I checked the demos in the below link:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

I behaves the same as I experienced. Please take a look at the above link, open the hyperlink manager and open the Anchor or Email tab. You will see that the controls are centrally aligned in IE 7 and aligned top in IE 8. Is there any workaround in IE7 to behave like IE 8? 

 

<telerik:RadEditor ID="RadEditorSettings" runat="server" Skin="Web20" Height="300px" Width="700px"> </telerik:RadEditor>

I tried to override the height in the below css, but RadEditor does not take the overridden style.

 

.reControlsLayout 

width: 100%;  

height: 100%;

}

Rumen
Telerik team
 answered on 10 Feb 2012
1 answer
105 views
HI 
I am using the editor in a new website, reusing pages that already work on another of my sites.
However, despite no changes to the page code, the editor will not let me save valid html.
It converts the self closing image tag to separate tags and the line break element into multiple
separate tags.
How can I overcome this, which is different to the behaviour on a site I have just released.
Q3 2010 controls, asp.net 4.0
Thanks
Clive


I want to save this:

<
h4>Heading here</h4>
<img alt="" src="~/images/widgets/scotland1-200x130.jpg" />
Learn more about<br />
<a href="~/rally-programme/default.aspx">forthcoming rallies...</a>

but I get this:

<h4>Heading here</h4
<img alt="" src="~/images/widgets/scotland1-200x130.jpg"></img>
Learn more about<br></br><br></br><a href="~/rally-programme/default.aspx">forthcoming rallies...</a>


Rumen
Telerik team
 answered on 10 Feb 2012
3 answers
118 views
hello this is manesh,

frnds my problem is that, we see many examples like clicking a button and a pop-up will be opened similarly here i'm opening a radwindow containing a grid inside it with 2 columns so for the first time i'm getting it clearly with lines and all so when i click it the data is appeared in the text box but when ever i clicked the button for the second time the grid is disappearing but the data is presented so please any once could solve this problem
Marin Bratanov
Telerik team
 answered on 10 Feb 2012
11 answers
135 views
Hai,

     I have 5 images in my page and i want to display the tooltip for each image. The tooltip should contains an image, 4 labels,4 textboxes, 2 buttons. How can i create this type of tooltips.

Thanks,
Velkumar.
Marin Bratanov
Telerik team
 answered on 10 Feb 2012
4 answers
123 views
I am trying to implement a RadImageEditor with custom dialogs. I would like to load the dialogs from external location like the example here:
http://www.telerik.com/help/aspnet-ajax/radimageeditor-externaldialogspath-property.html
However, I do not have the property 'ExternalDialogsPath' available in the control.

I also tried to implement the example outlined here:
http://www.telerik.com/community/code-library/aspnet-ajax/image-editor/registering-external-dialogs-of-radimageeditor.aspx
But I get a ' 'LoadDialog' is not a member of 'Telerik.Web.UI.Editor.DialogControls.ImageEditorDialog' ' error message.

I am using the latest release (2011.3.1305.40).

What am I doing wrong?
Marin Bratanov
Telerik team
 answered on 10 Feb 2012
8 answers
315 views
Hi,

In rad grid I have button in Footer. When I click this "AddorUpdateButton" need to update all the edited records. Its working fine.
But When I am using Add New Record button from above the header and then when I click "AddorUpdateButton" its won't take new record its taking only Edited row only.

Please help me on this..!


Thanks & Regards,
Raja M
Andrey
Telerik team
 answered on 10 Feb 2012
8 answers
635 views
What is the syntax to find a value between two dates or two numbers for instance?  AND doesn't work and neither does the comma.

Thanks
Kevin Smith
Top achievements
Rank 1
 answered on 10 Feb 2012
6 answers
188 views
Hi all,

I would like to manage 4 checkbox in my radtreeview.
Here's the code :


<telerik:RadTreeView ID="rtv" Height="250px" Width="350px" BorderStyle="Solid" BorderWidth="2px" BorderColor="Black" runat="server" 
Font-Names="Calibri" Font-Size="10px" CheckBoxes="true" CheckChildNodes="true" TriStateCheckBoxes="True">   
<NodeTemplate>
<asp:Label ID="lbl_equipe" Width="100px" Font-Size="10px" runat="server"><%# DataBinder.Eval(Container.DataItem, "EQUIPE")%></asp:Label>
<asp:CheckBox onclick="return false;" Text="I" Font-Size="8px" TextAlign="Left" Checked="false" ID="primo_operatore" runat="server"/>
<asp:CheckBox onclick="return false;" Text="II" Font-Size="8px" TextAlign="Left" ID="secondo_operatore" runat="server"/>
<asp:CheckBox onclick="return false;" Text="III" Font-Size="8px" TextAlign="Left" ID="terzo_operatore" runat="server"/>
</NodeTemplate>
</telerik:RadTreeView>

One checkbox is the built-in checkbox (CheckBoxes="true")
The other three cbx are inside nodetemplate.
I want to achieve two goals :
1. When user check (uncheck) the native checkbox the remaining three are checked (unchecked) goal achieved

2. When user check/uncheck one of the three template checkboxes nothing should happen..problem

I use the nodecheck event handler to get first goal (in code behind)
This event fires not just for the native checkbox but even for the remaining three!
How can I distinguish the element in order to prevent the nodecheck event  for the template checkboxes and let it fire for the single 
one ?
I've tried in code behind inside the event routine but the e.node is referred to the whole nodetemplate and I can't get the single elements in.
Here's my code:

 Private Sub rtv_NodeCheck(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles rtv.NodeCheck


        Dim chk1 As CheckBox = DirectCast(e.Node.FindControl("primo_operatore"), CheckBox)
        Dim chk2 As CheckBox = DirectCast(e.Node.FindControl("secondo_operatore"), CheckBox)
        Dim chk3 As CheckBox = DirectCast(e.Node.FindControl("terzo_operatore"), CheckBox)

'Code to prevent the event if sender is one of three checkbox NodeCheck 
' (??????????????????????????????????)

        If e.Node.Level <> 1 Then Exit Sub 'event just for level 1 nodes


        'parent nodes loop
        For Each nd As RadTreeNode In rtv.Nodes


            'When parent node is checked then start looping through all parent nodes looking for same nodetext
'If same node text is found then its checkbox is checked
           
            If e.Node.Checked = True Then


                'Enable node-template checkboxes
                DirectCast(e.Node.FindControl("primo_operatore"), CheckBox).Checked = True
                DirectCast(e.Node.FindControl("secondo_operatore"), CheckBox).Checked = True
                DirectCast(e.Node.FindControl("terzo_operatore"), CheckBox).Checked = True

'Child nodes loop
                For Each sub_nd As RadTreeNode In nd.Nodes
                    If sub_nd.Checked = False Then
                        Dim txt As String = sub_nd.Text 
                        If txt = e.Node.Text Then 'Node text comparison
                            sub_nd.Checked = True
                            sub_nd.ParentNode.Expanded = True

'For each parent node checked the checkboxes inside template-childnode are checked
                            DirectCast(sub_nd.FindControl("primo_operatore"), CheckBox).Checked = True
                            DirectCast(sub_nd.FindControl("secondo_operatore"), CheckBox).Checked = True
                            DirectCast(sub_nd.FindControl("terzo_operatore"), CheckBox).Checked = True


                        End If
                    End If
                Next


            Else
                'When parent node is unchecked then start looping through all parent nodes looking for same nodetext
'If same node text is found then its checkbox is unchecked


                'Disable node-template checkboxes
                DirectCast(e.Node.FindControl("primo_operatore"), CheckBox).Checked = False
                DirectCast(e.Node.FindControl("secondo_operatore"), CheckBox).Checked = False
                DirectCast(e.Node.FindControl("terzo_operatore"), CheckBox).Checked = False

'Child nodes loop
                For Each sub_nd As RadTreeNode In nd.Nodes
                    If sub_nd.Checked = True Then
                        Dim txt As String = sub_nd.Text
                        If txt = e.Node.Text Then
                            sub_nd.Checked = False
                            sub_nd.ParentNode.Expanded = False

'For each parent node unchecked the checkboxes inside template-childnode are unchecked
                            DirectCast(sub_nd.FindControl("primo_operatore"), CheckBox).Checked = False
                            DirectCast(sub_nd.FindControl("secondo_operatore"), CheckBox).Checked = False
                            DirectCast(sub_nd.FindControl("terzo_operatore"), CheckBox).Checked = False
                        End If
                    End If
                Next
            End If
        Next

    End Sub

English is not my language, hope I was understandable.
Thanks in advance

GZ
Gabriele
Top achievements
Rank 1
 answered on 10 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?