Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
Hi *,

I have a Webpage that contains a RadOrgChart and RadToolTip-Manager. The Content of the ToolTip is based on the ID given from the RadOrgChart. It works fine until... the session times out.

The Response as soon as the Session times out is:
RadToolTipManager response error: Exception=Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: source

I've already added an check that the control should not load then the Value is null.

public void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs e)
{
    if (e.Value != null)
    {
        Control ctrl = Page.LoadControl("OrgChartUserDetail.ascx");
        ctrl.ID = Guid.NewGuid().ToString();
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
        OrgChartUserDetail details = (OrgChartUserDetail)ctrl;
        details.ID = e.Value;
    }
}
 
void orgUserOrgChart_GroupItemDataBound(object sender, Telerik.Web.UI.OrgChartGroupItemDataBoundEventArguments e)
{
    var panel = (Panel)e.Item.FindControl("Panel1");
    RadToolTipManager2.TargetControls.Add(panel.ClientID, e.Item.ID, true);
}

<telerik:RadOrgChart ID="orgUserOrgChart" runat="server" ClientIDMode="Static" OnNodeDataBound="orgUserOrgChart_NodeDataBound" GroupColumnCount="2" Skin="Silk">
<ItemTemplate>
      <asp:Panel runat="server" ID="Panel1">
           <span class="pseudoImage" style="background-image: url('<%# DataBinder.Eval(Container.DataItem, "PictureString") %>')"></span>
               <a href="<%# String.Format("mailto:{0}", DataBinder.Eval(Container.DataItem, "eMail"), "", "")%>" class="tooltipLinks">
            <img src="images/mail.png" width="25px" alt="Send Email"></a>
        </asp:Panel>
      </ItemTemplate>
      <RenderedFields>
            <NodeFields>
                   <telerik:OrgChartRenderedField DataField="Description" Label="" />
               </NodeFields>
       </RenderedFields>
</telerik:RadOrgChart>
 
 
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Skin="Default" OnAjaxUpdate="OnAjaxUpdate"
          Position="BottomRight" OffsetX="16" OffsetY="16" EnableShadow="false" Width="195" Height="135" HideEvent="LeaveTargetAndToolTip" />

There are no MS AJAX update panels on the side - I use the RadAjaxManager instead. The GroupItemDataBound-Event is added in the Page_Load and the UserControl loads the Content based on the ID (it loads nothing if no ID is available).
It is no big deal if the Session times out and the ToolTip-Content is not correctly loaded but I need to get rid of the error message and somehow I can't manage that.

Any help would be appreciated. I don't want to hack a 'Session-Keep-alive' or something.

Regards,
Gaby
Gabriele
Top achievements
Rank 1
 answered on 23 Oct 2013
1 answer
52 views
Hi,

   I am looking for a control like asp:Repeater but with right to left support.

   Currently, in all such controls (Repeater, DataList etc)  the first item comes on the top left, and then on the right side (or first in second row), but i want it to have first item appear on the rop right side and then on the left of it. and so on.

    So basically, it should render items in reverse orders. Is that possible? Does any telerik control support such thing?

     thanks,
     Sameers
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2013
5 answers
168 views
Hi,
I tried to use the RadAjaxManager with the wizard control but there are some things I do not really understand.
1. Does the configuration dialog for the AjaxManager only work in the currently selected WizardStep?
2. If you declare some new AjaxSettings for controls in other wizard steps is it possible that those controls are not rendered correctly because the AjaxManager creates Panels around them which do not have the same settings as the controls?

Would help me a lot to know that.

Best regards
Ferdinand
Maria Ilieva
Telerik team
 answered on 23 Oct 2013
3 answers
63 views
Hi ,
We used radTooltip in Rad Grid ItemTemplate , the issue here if we load more data on grid we are getting below error in IE8 only.
"Stop running the script"
 <telerik:GridTemplateColumn DataField="Mon6" UniqueName="Mon6" Visible="false" ItemStyle-CssClass="account_Headcol">
   <ItemTemplate>
<asp:HyperLink ID="Mon6HLnk" runat="server" Visible="false"></asp:HyperLink>
<asp:Label runat="server" Text="" ID="Mon6Lbl"></asp:Label>
 <telerik:RadToolTip runat="server" ID="radTooltip6"  ShowEvent="OnMouseOver"  HideEvent="LeaveToolTip"  IsClientID="true" >
 <asp:Label runat="server" ID="lblTooltipText6"></asp:Label>
  </telerik:RadToolTip>
  </ItemTemplate>
</telerik:GridTemplateColumn>

And Binding Tooltip data in ItemDataBound event of RadGrid like below

Dim lab As Label = CType(gridDataItem("Mon" & i).FindControl("lblTooltipText" & i), Label)
lab.text="<htm><table><tr><td>data 1</td></tr><tr><td>data 2</td></tr></table></html>"

but if won't use RadTooltip i am not getting the issue,Please help me how to fix the issue with RadTooltips


Marin Bratanov
Telerik team
 answered on 23 Oct 2013
1 answer
91 views

Hi


I use the DataNavigateUrlField property to transfer users to Another page when they click a node in the tree, is there Another way to do that using JavaScript instead, for example I use this exsisting JavaScript..



<script type="text/javascript">
 
 
    function onNodeClicked(sender, args) {
        var node = args.get_node();
        node.set_expanded(!node.get_expanded());
    }
 
    function nodeClicking(sender, args) {
 
        var nodeAtt = args.get_node().get_attributes().getAttribute("toClick");
        if (nodeAtt == "NotClickable") {
            args.set_cancel(true);
            var node = args.get_node();
            node.set_expanded(!node.get_expanded());
        }
    }
</script>




Can this be modified to transfer the user to the page that is defined using the DataNavigateUrlField property?









Kate
Telerik team
 answered on 23 Oct 2013
2 answers
124 views
Hi telerik team,

I am using telerik
Version=2011.1.426.35

and got the error in IE9 or 10 can you provide any fix for this ASAP 


The code which i am using is--

</a><span><a href="javascript:;" onclick="return OpenWindow(0);">Request Demo</a>
</a><span><a href="javascript:;" onclick="return OpenWindow(1);">Watch vedio</a>

<telerik:RadWindowManager Behaviors="Close" ID="RadWindowManager" runat="server"
        VisibleStatusbar="false" VisibleOnPageLoad="false">
        <Windows>
            <telerik:RadWindow ID="winRequestDemo" VisibleOnPageLoad="false" Title="Request a Demo or more Information"
                NavigateUrl="~/PopupRequestDemo.aspx" runat="server" Width="850px" Height="640px"
                Modal="true" ReloadOnShow="true">
            </telerik:RadWindow>
            <telerik:RadWindow ID="winPopupVideoPlayer" VisibleOnPageLoad="false" Title="Product Video"
                NavigateUrl="~/PopupVideoPlayer.aspx" runat="server" Width="600px" Height="575px"
                Modal="true" ReloadOnShow="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>


<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script language="javascript" type="text/javascript">
            function OpenWindow(windowIndex) {
                //get the current windows collection
                var manager = $find("<%=RadWindowManager.ClientID %>");
                var windows = manager.get_windows();
                var win = windows[windowIndex];

                if (!win.isVisible()) {
                    win.show();
                    win.center();
                }
                return false;
            }
        </script>
    </telerik:RadCodeBlock>

Thanks
Pankaj
Pankaj
Top achievements
Rank 1
 answered on 23 Oct 2013
0 answers
30 views
This issue is fixed in Q1 2013 SP1.

In Q3 2013 Firefox and Chrome freeze when a container with a select element is made visible with JavaScript and RadFormDecorator is present on the page. You can follow the issue's progress here.

The issue will be fixed for the upcoming Q3 2013 SP1. For the time being possible workarounds are:
  • Setting the ControlsToSkip property of the RadFormDecorator to "Select".
  • OR placing the provided JavaScript code from the attached archive below the declaration of the RadFormDecorator.

Sample scenarios that reproduce the issue are:
  • Expanding an inner item from a RadPanelBar. The RadPanelBar has multiple Items that contain select elements and a RadFormDecorator is present on the page.
  • JavaScript is used to set the display property of a container with a select element to "block" for example, multiple containers with select elements are present on the page and RadFormDecorator is used. For example:

JavaScript:

<script type="text/javascript">
    function pageLoad() {
        $get("div1").style.display = "block";
    }
</script>
ASPX:
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
<div id="div1" style="display: none;">
    <select>
        <option>text1</option>
        <option>text2</option>
        <option>text3</option>
    </select>
</div>
<div id="div2" style="display: none;">
    <select>
        <option>text1</option>
        <option>text2</option>
        <option>text3</option>
    </select>
</div>


Telerik Admin
Top achievements
Rank 1
Iron
 asked on 23 Oct 2013
7 answers
129 views

I am using a RadGrid that uses an EditForm for editing and adding items to the grid. The EditForm is a pop-up, template, and has the modal property set to true. I’m using Internet Explorer 9 and the pop-up works fine with the background grayed out, but when I switch to compatibility mode the background and the pop-up are both grayed out. The user can’t click or input anything at that point. I'm using .Net 3.5.

Any ideas of what could be going wrong?

Maria Ilieva
Telerik team
 answered on 23 Oct 2013
1 answer
85 views
It seems to me the user story below would have been done before many times by others so I am just trying to see if anyone knows of an example or such before I start down this road.. so I can save time...


User Story
1. A user will be uploading an excel workbook to our server.
2. We will then bind this workbooks data to a radgrid (number of columns will vary)
3.The user will then need to map each column in the radgrid to a set of corresponding data columns in our database.
4. Once the user has selected a mapping for each column (it is possible to ignore some) they will submit to our system for validation and import.

Now in step 3 I will need to provide a means to provide a combo dropdown in the header row that contains all of the database mappings for this import process... 
For example they could be (Ignore, First Name, Middle Name, Last Name, Cell Phone, Address 1, Address 2, City, State, Zip, Custom 1, Custom 2 and etc...) then the user would map each column in the radgrid to a column

Has anyone done something similar that they can point me to so I can read about it.. I just don't want to reinvent the wheel.....

NOTE:  It would be nice to include the header row in the excel workbook (if provided - user will select top row is a header row) in the radgrid with the dropdown also...
Daniel
Telerik team
 answered on 23 Oct 2013
4 answers
117 views
Today IE11 was released for Windows 8 and the radrotators I have in place on a few websites are not visible when being viewed in IE11.  I explored further and even looked at the Telerik rotator demo page (http://demos.telerik.com/aspnet-ajax/rotator/examples/overview/defaultcs.aspx) and your rotator example does not appear to be visible in IE11 as well.  Is there a workaround for this available?  Thanks!
Marin Bratanov
Telerik team
 answered on 23 Oct 2013
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?