Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
354 views
I am playing with jQuery Draggable and Droppable in combine with Telerik Editor. There are some DIV containers which i want to drag and drop into the editor at the mouse position. All DIV's are configured with jQuery Draggable and i can drop the content with pasteHtml() function but fail to drop it to the mouse position instead of cursor position in the editor.

When you select a normal text outside the editor and drag/drop it into the editor (works fine with Chrome), you will see the cursor into the editor will move with the mouse position. This behaviour is correct. But with a draggable DIV, there is no cursor in the editor and the drop will be at very beginning of at end of the document. I want the editor to be focussed and moving with the mouse cursor. 

I have read other threads but didn't found a solution.

You an idea?
Erick
Top achievements
Rank 2
 answered on 19 Jan 2015
1 answer
202 views
I have a RadButton like following:

    <telerik:RadButton ID="NewActionBtn" runat="server" NavigateUrl="New.aspx">
            <ContentTemplate>
                <span class="myClass" style="color: black"></span>
                <span class="myAnotherClass"> Add</span>
            </ContentTemplate>
     </telerik:RadButton>

I want inherit this button so I only need to pass button text for the ContentTemplate. How will I do this. I don't want a WebUserControl with ascx extension.
Danail Vasilev
Telerik team
 answered on 19 Jan 2015
1 answer
45 views
Hi,

I am using Telerik PivotGrid control to create a dashboard for a US based client. Though i am experiencing few issues regarding columns.

We need to create report run time that means user can add/delete columns, aggregate columns, rows etc. In the basic scenario we  are showing year at the columns and two aggregate columns in the data.

So it showing like this

2013                                                2014                                         2015
---------------------------------------------------------------------------------------
 agg_col1  agg_col2                 agg_col1  agg_col2                      agg_col1  agg_col2 
---------------------------------------------------------------------------------------
value 1        value 3                     value 1        value 3                       value 1        value 3           
value 2         value 3                    value 1        value 3                       value 1        value 3        

This is working fine. Now client needs to add difference columns that will display difference between aggregate columns between year as show below.

2013                                                                                                                          2014                                         
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 agg_col1  agg_col2    diff_agg_col1   diff_agg_col2                                        agg_col1  agg_col2         diff_agg_col1                                                  diff_agg_col2            
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
value 1        value 3                                                                                                 value 1        value 3        agg_col1(2014) - agg_col1(2013)        col2(2014)-col2(2013) 
value 2        value 3                                                                                                value 1        value 3                     



It will go same as above shown, i have tried to use calculated column but we can give expression only for the same group name and other thing is how we can add at runtime.

Please help me out for this.

Thanks & Regards
Pankaj





  



Vasil
Telerik team
 answered on 19 Jan 2015
3 answers
303 views
Hello,
I want to create TreeNodes with images(NodeText + Image)
Here is something like...
Private void LoadNodes()
{
  RadTreeView.Nodes.Clear();
  RadTreeNode node1 = new RadTreeNode();
  node1 = new RadTreeNode("Node Text" + Image with client Click event, "Node Value")                       node1 .Attributes.Add("IsFirstLevel", "Yes");                                                                                         RadTreeView.Nodes.Add(node1 );
}

How can i do?
Ivan Danchev
Telerik team
 answered on 19 Jan 2015
2 answers
1.0K+ views
I've been troubleshooting an Asp.Net web app and I'm fairly certain my problem is that I'm losing a session variable whenever I run the app in Internet explorer 10 or 11. (Chrome and Firefox work perfectly.) I'm seeing vague hints around the web that Ajax calls could be a problem but nothing definitive. 

The app itself makes use of Telerik Ajax controls.  The session variable is set in one page (which has little more than a RadButton and a couple of RadTextBoxes)  and then a Response.Redirect call is made to a second page (which is mostly one big RadGrid), at which time the variable is null again.  The two pages have a master page in common.

Has anyone else had this problem?
Maria Ilieva
Telerik team
 answered on 19 Jan 2015
7 answers
519 views
Currently, if i enter an invalid date in raddatepicker like '019901' then it changes it to 01/01/99'
Can i give an invalid date message instead and have the user enter the date in the correct format only?
Maria Ilieva
Telerik team
 answered on 19 Jan 2015
3 answers
438 views
I am getting the error:

Script control '' is not a registered script control.
Script controls must be registered using RegisterScriptControl() before
calling RegisterScriptDescriptors().
Parameter name: scriptControl

with the following code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Test_Default2" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"></telerik:RadScriptManager>
        <telerik:RadAjaxManager runat="server" ID="ramRoot" Visible="false">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Timer1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pMessage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="pMessage">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pMessage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnClose">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pMessage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:HiddenField runat="server" ID="hfMessageHidden" Value="0" />
            <asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick" Enabled="true"></asp:Timer>
        <asp:Panel runat="server" ID="pMessage" CssClass="pageMessagePanel">
            <asp:LinkButton runat="server" ID="btnClose" class="close" data-dismiss="alert" aria-hidden="true" Text="x" />
            <asp:Label runat="server" ID="lMessage">
            </asp:Label>
        </asp:Panel>
    <div>
    <p>Hello</p>
    </div>
    </form>

The codebehind methods have their contents commented out, so really what you see here is what you get.  When I remove the <asp:Panel tag, the error goes away.  But I want the <asp:Panel tag.  Anyone have any idea what might be going on?

Thanks!

Laurie
Maria Ilieva
Telerik team
 answered on 19 Jan 2015
5 answers
66 views
Hi,

Running into something very odd.  I have a radgrid using a custom EditForm template.  The bound recordset has a field called Status, containing zero through five.  inside the template i have the following code.  Basically I need to show this section if the Status is zero, anything else and it's not rendered.

<% If CheckStatus() Then%>
<fieldset>
  <legend class="Legend">Options</legend>
  <table style="width: 100%;">
    <tr>
      <td class="tableData">
        <asp:RadioButtonList ID="chkboxSaveOptions" runat="server" SelectedValue='<%# Bind("status") %>'>
          <asp:ListItem Value="1">SUBMIT</asp:ListItem>
          <asp:ListItem Selected="True" Value="0">Save as draft</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
  </table>
</fieldset>
<%End If%>


The issue, sometime when I click to edit the row the If Then is never evaluated.  I set a breakpoint in CheckStatus.  Sometimes the breakpoint is hit and it work fine, sometimes it just renders the template without ever triggering the breakpoint and errors out because the status value isn't in the Buttonlist values.

I have no idea as i cant find a pattern.

Thanks.
Frank
Top achievements
Rank 1
 answered on 19 Jan 2015
14 answers
1.9K+ views
Hi Guys,

We'd been using RadGrid for awhile version Q3 2008. We've recently updated it to Q1 2009_1_527 .

We've noticed some changes and one of it is the "page size" control(dropdownlist) appears in the footer of the RadGrid if the pagerstyle mode is set to "NextPrevAndNumeric". Is there any way to remove this "page size" control as we don't actually need it as most of our RadGrid already has its own "page size" control.

I try to read the documentation but there don't seem to be an explanation how this could be done.
WEBSRFR
Top achievements
Rank 1
 answered on 19 Jan 2015
15 answers
819 views
I am using the export to excel function for my grid, it works fine.
But there is always an extra row of empty cells between my row header and the data in the excel spreadsheet.

Does anybody know how to get rid of it ?

 

 


Cheers
Alan
Warrick
Top achievements
Rank 1
 answered on 18 Jan 2015
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?