Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
620 views
Hello guys

There is a radbutton inside the content template of the radwindow control. On clicking that button, I displayed a confirmation asking the user whether he need to leave the page and all data will be lost. If the user click yes means, I want to open a new page in the same radwindow. I dont want the window to be closed and again open the desired page which I have already tried. Any alternative?

Thanks & Regards
Henry.
Shinu
Top achievements
Rank 2
 answered on 25 Jul 2013
2 answers
141 views
Hello,

I had an inquiry into whether it is possible to drag and drop an item from a standard ASP.net List Control to a Telerik TreeView Control? If so, could you provide me some sample code or references in which I could follow to do this.

Thanks
Laurence
Top achievements
Rank 1
 answered on 25 Jul 2013
3 answers
147 views
I have a RadChart in a jquery dialog modal that I would like to resize when the user resizes the modal.  I have followed the approach here and have found it works great in Firefox but not in Chrome.  Using the developer tools, I was able to see the error is Uncaught TypeError: Cannot read property 'caller' of undefined
I need to resize the actual chart, and not the image so the client-side approach won't work for me.  How can I get this to work in Chrome?

Thanks!
Ves
Telerik team
 answered on 25 Jul 2013
1 answer
128 views
Why is the skin/styling used for the button on the "Upload"-component different than for the normal buttons?
I would've hoped that the hover-style on the telerik-buttons were the same as used on the Upload-button. Very noticable when using Glow or the new Silk-skin.
Bozhidar
Telerik team
 answered on 25 Jul 2013
16 answers
789 views
Hi,

as described in this http://www.telerik.com/community/forums/aspnet-ajax/grid/client-api-onpopupshowing-eventargs-get-domevent-is-not-a-function.aspx#807122 post get_masterTableView() always returns null in some client functions.

Even the trick OnCommand="function XX(){}" as posted in a different thread (and used in your samples) does not help.

Are there some special client functions where get_masterTableView does / doesn't work?
In the documentation http://www.telerik.com/help/aspnet-ajax/grid_get_mastertableview.html I can't find anything that this function only works in special cases.
At least in OnPopUpShowing get_masterTableView always returns null.

Regards

Manfred
Rajkumar
Top achievements
Rank 1
 answered on 25 Jul 2013
8 answers
320 views

Hi Telerik Guys !

Im using RAD MENU in one of my project.

I want RAD MENU to have ROUNDED CORNERS.

Presently, Im using the following mentioned RAD MENU (without ROUNDED CORNERS) as shown in pic-1.jpg.


I want to have a ROUNDED CORNERS for the RAD MENU but without using any image (.gif,.png,.jpeg) & only using CSS.


What I want in my RAD MENU is something like I  will show in attached file with name as RoundedCornerMenu.png


Please help how to proceed !


Ajay

Princy
Top achievements
Rank 2
 answered on 25 Jul 2013
3 answers
120 views
Hi telerik,

I am trying to access the file input in javascript onfileselected event but it is always returning a null value. args.getFileinputfield() What is the correct way to access the input field?

Thanks,
Sameer
Shinu
Top achievements
Rank 2
 answered on 25 Jul 2013
5 answers
180 views
Hi, 

I have this issue and Please help me to solve it. I have the radscheduler on the page. The problems is that  when employees see the
radscheduler to track the appointments they changed the time for few appointments which caused a serious trouble :). I realize that it can be readonly set to 'true' but this is not what i looking for. 


Now, what i want to implement is the following: when a new appointment is entered a person should not be able to edit other already entered appointments and ONLY edit/delete his/her entered appointment. Thank you. 
Boyan Dimitrov
Telerik team
 answered on 25 Jul 2013
2 answers
201 views
I have an issue with setting text to the combobox. If I set any text with "<,>" characters while submitting I am getting validation errors. I am adding the code so that you can reproduce. I cannot turn off validaterequest from the page.

HTML Code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="true" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
    <script>
        var RadFausTree = "";
        function SFAUS() {
            val = "<ALL>/<ALL>/<ALL>";
            combo = $find(RadFausTree);
            combo.trackChanges();
            var escapedText = htmlEscape(val);
            //esc = val;
            //alert(escapedText);
            combo.set_text(escapedText);
            combo.set_value("");
            cancelDropDownClosing = false;
            combo.commitChanges();
            combo.hideDropDown();
 
        }
        function htmlEscape(str) {
            return String(str)
                    .replace(/&/g, '&')
                    .replace(/"/g, '"')
                    .replace(/'/g, ''')
                    .replace(/</g, '<')
                    .replace(/>/g, '>');
        }
 
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
    <div>
     <telerik:RadComboBox ID="RadFausTree" Width="100%" Height="300px"
                                               AllowCustomText="true" EmptyMessage="Select The Faus"
                                               runat="server"/>
                        <input type="button" value="Set Text" onclick="SFAUS()" />
        <asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click"/>
    </div>
    </form>
</body>
</html>

C# Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      RegisterStartupScript ("strKey", "<script>RadFausTree='"+RadFausTree.ClientID+"';</script>");
    }
    protected void btnSubmit_Click (object sender, EventArgs e)
    {
       
    }
}

Attaching the result that I am getting.
Boyan Dimitrov
Telerik team
 answered on 25 Jul 2013
1 answer
98 views
I have used Radgrid in one of my ASP.net application. After deployment Radgrid filter are visible all the times. I have used Custom Skin.

<telerik:RadGrid ID="rgAgencyMaster" runat="server" AutoGenerateColumns="false"

PageSize="20" Width="90%" AllowFilteringByColumn="true" AllowPaging="true" Height="500px"

AllowSorting="True" skin="Sunset" EnableEmbeddedSkins="False">

<PagerStyle Mode="NextPrevAndNumeric" ></PagerStyle>

<GroupingSettings CaseSensitive="false" />

<MasterTableView TableLayout="Fixed" AllowMultiColumnSorting="true" AllowNaturalSort="true"

DataKeyNames="AgentKey,AgencyDownloadKey">

<CommandItemSettings ExportToPdfText="Export to PDF"

ExportToCsvImageUrl="mvwres://Telerik.Web.UI, Version=2013.1.403.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Grid.ExportToCsv.gif"

ExportToExcelImageUrl="mvwres://Telerik.Web.UI, Version=2013.1.403.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Grid.ExportToExcel.gif"

ExportToPdfImageUrl="mvwres://Telerik.Web.UI, Version=2013.1.403.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Grid.ExportToPdf.gif"

ExportToWordImageUrl="mvwres://Telerik.Web.UI, Version=2013.1.403.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Grid.ExportToWord.gif" />

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Created="True" FilterControlAltText="Filter ExpandColumn column"

Visible="True">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn UniqueName="AgencyDownloadKey" DataField="AgencyDownloadKey"

HeaderText="AgencyDownloadKey" HeaderStyle-Width="30%" Visible="false" DataType="System.String" >

<HeaderStyle Width="30%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="AgentKey" DataType="System.Int64" HeaderText="AgentKey"

SortExpression="AgentKey" UniqueName="AgentKey" Visible="false">

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn UniqueName="TemplateEditColumn" ItemStyle-Width="8%"

HeaderStyle-Width="8%" AllowFiltering="false">

<ItemTemplate>

<asp:LinkButton ID="EditLink" runat="server" Text="Edit Agent" CommandName="EditAgent"></asp:LinkButton>

</ItemTemplate>

<HeaderStyle Width="8%" />

<ItemStyle Width="8%" />

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplatePolicyListingColumn" ItemStyle-Width="8%"

HeaderStyle-Width="8%" AllowFiltering="false">

<ItemTemplate>

<asp:LinkButton ID="PolicyListing" runat="server" Text="Policy Listing" CommandName="PolicyListing"></asp:LinkButton>

</ItemTemplate>

<HeaderStyle Width="8%" />

<ItemStyle Width="8%" />

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplateAgencyUsers" ItemStyle-Width="8%"

HeaderStyle-Width="8%" AllowFiltering="false">

<ItemTemplate>

<%-- <asp:LinkButton ID="AgencyUsers" runat="server" Text="Agency Users"></asp:LinkButton>--%>

<a href='<%#generateReturnLink("users")%>&stAgentNumb=<%#Uri.EscapeDataString(Eval("AgentNumb").ToString)%>&stAgentSubCode=<%#Uri.EscapeDataString(Eval("AgentSubCode").ToString)%>'>

<%="Agency Users"%></a>

</ItemTemplate>

<HeaderStyle Width="8%" />

<ItemStyle Width="8%" />

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplateMessages" ItemStyle-Width="8%" HeaderStyle-Width="8%"

AllowFiltering="false">

<ItemTemplate>

<%--<asp:LinkButton ID="Messages" runat="server" Text="Messages"></asp:LinkButton>--%>

<a href='<%#generateReturnLink("message")%>&AgentNo=<%#Uri.EscapeDataString(Eval("AgentNumb").ToString)%>&AgentKey=<%#Uri.EscapeDataString(Eval("AgentKey").ToString)%>'>

<%="Message"%></a>

</ItemTemplate>

<HeaderStyle Width="8%" />

<ItemStyle Width="8%" />

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name"

SortExpression="Name" UniqueName="Name" Visible="true" ItemStyle-Width="40%"

HeaderStyle-Width="30%" FilterControlWidth="70%" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

<HeaderStyle Width="30%" />

<ItemStyle Width="40%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="AgentNumb" DataType="System.String" HeaderText="Agent Number"

SortExpression="AgentNumb" UniqueName="AgentNumb" Visible="true" ItemStyle-Width="15%"

HeaderStyle-Width="15%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"

ShowFilterIcon="false">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="AgentSubCode" DataType="System.String" HeaderText="Sub-Code"

SortExpression="AgentSubCode" UniqueName="AgentSubCode" Visible="true" ItemStyle-Width="15%"

HeaderStyle-Width="15%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"

ShowFilterIcon="false">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" />

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn UniqueName="TemplateElectronicDelivery" ItemStyle-Width="8%"

HeaderStyle-Width="8%" AllowFiltering="false" HeaderText="Electronic Delivery">

<ItemTemplate>

<asp:LinkButton ID="Delivery" runat="server" Text='<%# Bind("Download") %>' CommandName="Download"></asp:LinkButton>

</ItemTemplate>

<HeaderStyle Width="8%" />

<ItemStyle Width="8%" />

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn UniqueName="ElectronicEmail" DataField="ElectronicEmail"

HeaderText="ElectronicEmail" HeaderStyle-Width="1%" Visible="false">

<HeaderStyle Width="1%" />

</telerik:GridBoundColumn>

</Columns>

<EditFormSettings>

<EditColumn FilterControlAltText="Filter EditCommandColumn column"

CancelImageUrl="Cancel.gif" InsertImageUrl="Update.gif"

UpdateImageUrl="Update.gif">

</EditColumn>

</EditFormSettings>

<PagerStyle PageSizeControlType="RadComboBox" />

</MasterTableView>

<ClientSettings>

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">

</Scrolling>

<ClientEvents></ClientEvents>

</ClientSettings>

<HeaderContextMenu EnableEmbeddedSkins="False">

</HeaderContextMenu>

<FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False">

</FilterMenu>

</telerik:RadGrid>

Maria Ilieva
Telerik team
 answered on 25 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?