Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
222 views
I have a page with 2 Radschedulers, 2 Radgrids, and various labels and links, all contained within a RadAjaxPanel. I'm using the RadTooltipManager for items in each of the grids, and some links outside the grids and schedulers. Everything works fine except when the grid is sorted or refreshed (via a dropdownlist), the tooltips keep the old values. I've cleared the RadTooltipManager TargetControls all over the place, but it still doesn't work. I've tried using multiple RadTooltipManagers or just one. Stepping through the code, it looks fine, like the correct values get added, but when it fires, it's the old data.

I wasn't using a RadAjaxManager at all, so I added that in. It worked, but now I get various errors when firing the other tooltips outside the grid(s). Sometimes it's the "invalid JSON primitive" error, and other times in my testing different things, it's the "already associated with another control" error, depending on how many RadTooltipManagers  I use.

Below is a skeleton of the setup...

<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="BottomRight"
    Animation="None" ShowEvent="OnMouseOver" ShowCallout="true" RelativeTo="Element"
    MouseTrailing="False" Width="370px" HideEvent="LeaveToolTip" Skin="Outlook" OnAjaxUpdate="OnAjaxUpdate"
    BackColor="Red">
</telerik:RadToolTipManager>
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Position="BottomRight"
    Animation="None" ShowEvent="OnMouseOver" ShowCallout="true" RelativeTo="Element"
    MouseTrailing="False" Width="370px" HideEvent="LeaveToolTip" Skin="Outlook" OnAjaxUpdate="OnAjaxUpdate"
    BackColor="Red">
</telerik:RadToolTipManager>
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager3" Position="BottomRight"
    Animation="None" ShowEvent="OnMouseOver" ShowCallout="true" RelativeTo="Element"
    MouseTrailing="False" Width="370px" HideEvent="LeaveToolTip" Skin="Outlook" OnAjaxUpdate="OnAjaxUpdate"
    BackColor="Red">
</telerik:RadToolTipManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
    <table width="100%">
    ...
        <asp:HyperLink ID="lblNameWithTooltip" runat="server" />
    ...
        <asp:HyperLink ID="lblName2WithTooltip" runat="server" />
    ...
        <asp:DropDownList ID="DropDownList1"...>
    ...
        <telerik:RadGrid ID="RadGrid1"...>
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkWithTooltip" runat="server" />
                    </ItemTemplate>                   
                </telerik:GridTemplateColumn>                       
            </Columns>                   
        </telerik:RadGrid>
    ...
        <telerik:RadGrid ID="RadGrid2"...>
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkWithTooltip" runat="server" />
                    </ItemTemplate>                   
                </telerik:GridTemplateColumn>                       
            </Columns>                   
        </telerik:RadGrid>           
    ...
        <telerik:RadScheduler ID="RadScheduler1"...>
    ...
        <telerik:RadScheduler ID="RadScheduler2"...>           
    ...
    </table>
</telerik:RadAjaxPanel>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>               
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="RadToolTipManager3" />  
            </UpdatedControls>
        </telerik:AjaxSetting>           
        <telerik:AjaxSetting AjaxControlID="DropDownList1">
            <UpdatedControls>               
                <telerik:AjaxUpdatedControl ControlID="DropDownList1" />  
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="RadToolTipManager3" />
            </UpdatedControls>
        </telerik:AjaxSetting>                       
    </AjaxSettings>
</telerik:RadAjaxManager>


Again, I'm clearing the TargetControls in the code behind and assigning the tooltips as well. All that seems to be working fine.

In summary, everything was fine without using the RadAjaxManager except the grid tooltips wouldn't reset on refresh or sort.
Once I added the RadAjaxManager, that worked, but now I get errors firing the other tooltips on the page, regardless of using the same RadTooltipManager or different one.

Hopefully that's enough info. Thanks for any info.



Robert Helm
Top achievements
Rank 1
 answered on 24 Jul 2012
5 answers
650 views
Hi,

I have tried disabling CDN in my web.config file as below:

<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />

This is in the appSettings section of the file. However, I am still seeing content being downloaded from http://aspnet-skins.telerikstatic.com etc. even after stopping and restarting the website.

There are no hard-coded settings in the application against ScripManager instances on any pages.

I am using Telerik 2011.3.1114.40

David Penny

Dimitar Terziev
Telerik team
 answered on 24 Jul 2012
2 answers
170 views
Hello,

I'm using RadGrid inside a Radcombo using the following sample:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridincombobox/defaultcs.aspx?product=grid 

Now, I want to provide Insert/Update in the gird. I have enabled inline edit/insert by setting EditMode="InPlace". However, this causes postback and dropdown gets closed. 

I have seen client side Insert/Update/Delete demo here but it does not do inline insert/edit.

Is there a way to do it inline on client side using webservice and ajax calls? 

Please help.

Regards,
Piyush



Piyush
Top achievements
Rank 1
 answered on 24 Jul 2012
11 answers
333 views
If I enable/disable my datepicker in javascript like so:

function ToggleEnabled( isEnabled )
{
   var myDateEdit = $find("<%=this.MyDatePicker.ClientID %>");
   myDateEdit.set_enabled( isEnabled );
}

That works fine if only fired client side. However, if I disable it server-side, this code works but does not enable the calendar button when it enables the control. The DateInput is enabled but not the calendar button. I have tried something like:

myDateEdit.get_Calendar().set_enabled( isEnabled );
Which does nothing. I have also tried:

myDateEdit.get_PopupButton().set_enabled ( isEnabled );
Which throws an error.

How can I ensure that enable/disable works against the entire control?
Vasil
Telerik team
 answered on 24 Jul 2012
2 answers
156 views
I need to set a RadNotification.Width to a percent - e.g. 95% from the code.behind.  It appears to only allow an integer here - yet on the client-side I can set the width quite easily to 95%.  Unfortunately in my scenario I need to set this in the server-side code...

Any ideas?  
Dan
Top achievements
Rank 1
 answered on 24 Jul 2012
3 answers
168 views
Hi team,

I got a problem when using the "ClientSettings.ClientEvents.OnCommand".
I want to catch the event when I click the pager number and change the pagesize by the dropdownlist. I looked up the document and found the using "ClientSettings.ClientEvents.OnCommand", so I wrote my code like this:

c#:

listGrid.ClientSettings.ClientEvents.OnCommand =

"RaiseCommand";

HTML:

 

 

function RaiseCommand(sender, eventArgs) {

 

 

var result = eventArgs.get_commandName();

 

 

switch (result) {

 

 

case "Page":

 

{

ShowCancelBtn();

 

break;

 

}

 

case "PageSize":

 

{

ShowCancelBtn();

 

break;

 

}

}

 

But I found that when I change the pagesize with the dropdownlist , the pager numbers  changes immediately before the grid data loading start!
For Example: when I use the pagesize "10" , the page number is "1,2,3" and total record count is 30 .when I change to pagesize"20", the page number changes immediately to "1,2" before the grid data began load.
In other word , the page numer is been calculate first and been shown, and then the grid data began load. I don't want it works like that. I thnk there must be something wrong with the "ClientSettings.ClientEvents.OnCommand", It causes the wrong order bettween page number shown and dataload. I need your help, team.




Marin
Telerik team
 answered on 24 Jul 2012
8 answers
420 views
Dear Telerik Team,

When I tried the following code,the whole page disappears.

 protected void RadGrid1PreRender(object sender, EventArgs e)
    {
        
                if (Condition) 
                    RadGrid1.ClientSettings.ClientEvents.OnRowDblClick = "true";
                else
                    RadGrid1.ClientSettings.ClientEvents.OnRowDblClick = "false";*/
    
    }


Thanks in advance.
Emmanuel
Top achievements
Rank 1
 answered on 24 Jul 2012
2 answers
65 views
I have an application that works in ie9 compatitability mode.  But in ie9 mode only the arrows show up on the radtooltips.


<

 

 

script type="text/javascript" language="javascript">

 

 

 

function showToolTip(element, displayText, radClientID) {

 

 

 

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

 

 

 

//if hoverover before page is loaded, return nothing

 

 

 

if (!tooltipManager) return;

 

 

 

//Find the tooltip for this element if it has been created

 

 

 

var tooltip = tooltipManager.getToolTipByElement(element);

 

 

 

//Create a tooltip if it doesn't exist

 

 

 

if (!tooltip) {

 

tooltip = tooltipManager.createToolTip(element);

tooltip.set_text(displayText);

}

 

 

//Let the tooltip's own show mechanism take over from here - execute the onmouseover just once

 

element.onmouseover =

 

null;

 

 

 

//show the tooltip

 

tooltip.show();

}

 

</

 

 

script>

 

 

<

 

 

telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Element"

 

 

 

Position="BottomCenter" HideEvent="LeaveToolTip" AutoTooltipify="true" ContentScrolling="Default" BorderWidth="2" EnableShadow="true">

 

 

 

 

</telerik:RadToolTipManager>

 

Peter
Top achievements
Rank 1
 answered on 24 Jul 2012
2 answers
106 views

Hi,

I derived from RadTreeList and in my dev environment everything works fine. In production however, the buttons that expand/collapse a node have the wrong css class assigned. In dev the RadTreeList base control correctly assigns the "rtlExpand" or "rtlCollapse" class, so the button renders with class="rtlExpand" / "rtlCollapse". In prod, it always only renders class="button".

To make sure that nothing intercepts the rendering, I debugged the OnPreRender method of the control and checked the attributes of the controls. The css classes are already assigned right there. I am not messing with the node css class in the derived control, so I have absolutely no idea where class="button" is coming from.

The Telerik dll versions are equal in both environments. The main difference between the dev and prod environments is that the page that hosts the tree is not derived from System.Web.UI.Page, but from a custom page class which does all kinds of stuff that I don't know about. However, in both environments the control tree above the RadTreeList is the same. So that page class must somehow interfere with the Telerik control. When I just make System.Web.UI.Page the base class in the prod environment, then the control renders fine.

I just don't know what the page class could do to alter the rendering of the RadTreeList and I am thankful for any hint.

Thanks,
Tim

Vasil
Telerik team
 answered on 24 Jul 2012
4 answers
346 views
ok - I am using Visual Studio 2010 Ultimate in Win7 Ultimate with the latest Telerik ASP.Net Ajax trial

I'm trying to follow the tutorial on input controls

I created a C# ASP.Net Web Application, and tried to add the controls mentioned. No, first I had to 'Convert the project to a Telerik web site...and added the 'using' namespace item for Telerik

Ok, then I tried to add the controls mentioned in the tutorial:
When looking at the controls before running the app - all looked ok.  Then I ran the app and got the message below. Also, any time I then looked at the designer of the page, I also got the error below. Any other control works fine, it seems. 

...update - no, Now I get the same error on the RadTextBox

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Cannot create an object of type 'Telerik.Web.UI.NumericType' from its string representation 'text' for the 'Type' property.

Source Error: 

Line 28:         <br />
Line 29:        
Line 30:         <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" 
Line 31:             Culture="en-CA" DisplayText="" EmptyMessage="Enter cost" Label="Cost:" 
Line 32:             LabelWidth="64px" MaxValue="1000" MinValue="0" SelectionOnFocus="CaretToEnd" 
John
Top achievements
Rank 1
 answered on 24 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?