Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
368 views
I have a page that has links to pop up help documents in a radwindow.  The issue I want to resolve is if a user clicks a link more then one time I don't want multiple radwindows with the same help information.  Is there a way to prevent the same link from opening multiple times?

Here is the code i'm using to load the radwindow

  <script type="text/javascript">
    function GetRadWindow() {
      var oWindow = null; if (window.radWindow)
        oWindow = window.radWindow; else if (window.frameElement.radWindow)
          oWindow = window.frameElement.radWindow; return oWindow;
    }

    function radWin(myurl)
    {
      var oManager = GetRadWindow().get_windowManager();
      setTimeout(function () {
        oManager.open(myurl);
      }, 0);
    }
  </script>

Part of datagrid
<ItemTemplate>
    <%# DataBinder.Eval(Container.DataItem,"Path")%><a href="javascript:radWin('../temp.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID")%>')"><img src='../Images/Info.gif' border=0 alt="" /></a>
</ItemTemplate>

Thank you
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2014
3 answers
187 views
I am trying to utilize the RadImageEditor in my software. I dragged the control from the toolbox into my webpage. Here is my code.

<telerik:RadImageEditor ID="RadImageEditor1" runat="server" ToolBarMode="Default" Skin="Default"
     Width="820px" Height="490px">
</telerik:RadImageEditor>

I ran the website but I am not seeing any of the icons in the toolbar. See image below:
David
Top achievements
Rank 1
 answered on 12 Aug 2014
4 answers
161 views
Hello

Im trying to fire a simple onclientnodeclicking event on my treeview via keyboard (hitting enter).

But I find that upon pressing Enter on the node, besides firing the onclientnodeclicking event, also  fires a postback on a Button1 situated on the same page.
How do I prevent this?

Using the mouseClick on the treenode works as expected, without Button1 postback.

Simple example to illustrate:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">

        function NodeClick(sender, eventArgs) {           
           var node = eventArgs.get_node();
           alert(node.get_text());
          // eventArgs.set_cancel(true);                    
        }    
        
    </script>


</head>

<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>       
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"  TabIndex="1" />
   <br /><br />
    <telerik:RadTreeView ID="RadTreeView1" Runat="server" Width="200px" Height="200px"  TabIndex="2"
        onclientnodeclicking="NodeClick" ResolvedRenderMode="Classic">
        <Nodes>
            <telerik:RadTreeNode runat="server" PostBack="False" Text="Root RadTreeNode1">
            </telerik:RadTreeNode>
            <telerik:RadTreeNode runat="server" PostBack="False" Text="Root RadTreeNode2">
            </telerik:RadTreeNode>
            <telerik:RadTreeNode runat="server" PostBack="False" Text="Root RadTreeNode3">
            </telerik:RadTreeNode>
        </Nodes>
    </telerik:RadTreeView> 
    
    </div>
    </form>
</body>
</html>

Mark
Top achievements
Rank 1
 answered on 11 Aug 2014
2 answers
119 views
Hello,

My customers would like to combine the column titles with checklist filtering. They would like to eliminate the textbox and display only the checklist button next to the column title as shown in the attached image. I realize that Radgrid does not have any built in ability to do this, but is there a way to customize it using code behind and/or client side scripting? If so, can you provide, or point me to an existing example?

Thanks,
~Sonny
Sonny
Top achievements
Rank 1
 answered on 11 Aug 2014
1 answer
88 views
Hello,

I'm developing for DotNetNuke and would like design support, however the needed dll's for this feature are not present in a DNN install.  My account will not allow me to download the version of the Telerik design dll I need which is 2013.2.717.40.

Upgrading the telerik controls in dnn to the version I do have results in some incompatibilities.

Any way of obtaining the necessary dll's for design support?
Joseph
Telerik team
 answered on 11 Aug 2014
1 answer
197 views
It may sound like a ridiculous question, but here is my thought. I need to convert a very complicated completely dynamic site to responsive design. It might be a hard sell to ask the team leader if i can start the shell from scratch with RadPageLayout, BUT if i could cut my teeth by using RadPageLayout in some of the larger sections, I'll bet i could sell the concept of the whole thing. For specifics, if i had three large divs, going vertically down the page, could i make the 2nd and 3rd ones each contain there own unique RadPageLayout control?
Nencho
Telerik team
 answered on 11 Aug 2014
10 answers
296 views
I am trying to figure out how to enable like the print button when I am in preview mode? How would this be accomplished? Thanks
Ianko
Telerik team
 answered on 11 Aug 2014
1 answer
102 views
I have a Combobox and grid in a widget.  The grid needs to be filtered as the selection in the combobox changes.  Currently when the selection changes, the grid reloads, but always displays the same data.  Any ideas how to fix this?  Or even debug it?

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
 
<label for="NamesDDL">Select plant name to view its reports:</label>
<div style="margin-top: 15px;">
    <telerik:RadComboBox ID="NamesDDL" runat="server" AutoPostBack="True" DataSourceID="dllDataSource"
        DataTextField="PlantNameAndID" DataValueField="PlantID" Width="250px" Height="150px"
        AppendDataBoundItems="true" >
        <Items>
            <telerik:RadComboBoxItem Text="All" Value="0" Selected="true"></telerik:RadComboBoxItem>
        </Items>
    </telerik:RadComboBox>
</div>
 
<div style="margin: 15px 0 20px;">
    <telerik:RadGrid ID="OrdersGrid" AllowPaging="true" DataSourceID="gridSource" runat="server"
        GridLines="None" AllowSorting="true" HeaderStyle-ForeColor="Black" HeaderStyle-HorizontalAlign="Center">
    </telerik:RadGrid>
</div>
 
<asp:SqlDataSource ID="dllDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Dev-TestOilConnectionString %>"
    SelectCommand="select customer.plant.PlantID, customer.plant.PlantNo, customer.plant.PlantName, customer.plant.PlantID, cast(customer.plant.PlantID as varchar) + ' - ' + customer.plant.PlantName as PlantNameAndID from customer.plant where plant.CustID = 10 order by plant.PlantNo"></asp:SqlDataSource>
 
<asp:SqlDataSource ID="gridSource" runat="server" ConnectionString="<%$ ConnectionStrings:Dev-TestOilConnectionString %>"
    SelectCommand="select LabID, SampleDate, MachCond, LubCond, CustReview, CustReviewDte, machine.PlantID from customer.plant inner join customer.machine on machine.PlantID = plant.PlantID inner join sample.sample on sample.PointID = machine.PointID where ((machine.PlantID = @PlantID and @PlantID <> 0) or (machine.PlantID = machine.PlantID and @PlantID = 0)) and plant.custid = 10">
    <SelectParameters>
        <asp:ControlParameter Name="PlantID" PropertyName="SelectedValue" ControlID="NamesDDL"></asp:ControlParameter>
    </SelectParameters>
</asp:SqlDataSource>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="NamesDDL">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="OrdersGrid" LoadingPanelID="AjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                <telerik:AjaxUpdatedControl ControlID="NamesDDL"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
Pavlina
Telerik team
 answered on 11 Aug 2014
2 answers
137 views
Please view the attached screen shot.

We have a web form (in sharepoint) that has a parent question of radiobuttonlist type. Based on the option selected we make a div visible below the question that displays a question with a radcombobox control. Please note we are simply toggling the div that shows the combobox via javascript so it exists in the mark up at all times.

The combobox is loaded on demand. However when we click on the combobox to load the items on demand we get the error in the screen shot. I can see that the target does exist in the html markup.

If we replace the radio button control with a dropdownlist and keep everything else the same then it works perfectly. The problem only seems to occur when we use it with a radio button list.

The other odd thing I have noticed is that if the radio button is loaded with an option selected then everything works perfectly. It only seems to happen if the radio button has no option selected when the page loads.

I have tried to create a web project to demonstrate this however I have not been able to recreate the problem. The problem is that our solution is very complex and to replicate the exact scenario in a web project in its simplest form might be very difficult and time consuming.                                                                                                        
The only thing I can suggest is that I can give you access to our system. I have implemented the combobox with load on demand as per your recommended approach.             











Nencho
Telerik team
 answered on 11 Aug 2014
1 answer
112 views
I am using the Rad Editor tool in a web application. The editor is used to automatically load basic HTML templated forms to be filled out. The problem I am having is when I click inside the editor, on a read-only element (i.e. a table data like <td contenteditable="false" unselectable="ON">Example</td>) anywhere within the form, the cursor focuses to the start of the first read-only element. Also, I am able to edit the read-only. However, if I click in the editor box elsewhere (not on a read-only element), the cursor is placed in the cell that I click. Is there a way to set the cursor focus to the first editable cell if a read-only element is clicked on?

Thanks in advance 
Ianko
Telerik team
 answered on 11 Aug 2014
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?