Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
753 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
293 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
107 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
156 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
189 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
88 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
1 answer
92 views
Hi,

I'm new working with Radgrid.  I'm in the process of converting from Infragistics old control platform, and seeing if the radgrid can do what I need it to do.

I've seen various samples, but not one covering what I'm trying to do.  Perhaps someone can point me in the right direction.

Here is what I have.

The data displayed in the grid is disconnected.  That is, the data is retrieved by a business tier into a dataset, and that dataset is bound to the grid.  Upon a save operation, I collect the data again into a dataset.

All rows are put into edit mode at the same time.  Kinda like when editing an excel page.  I may have dropdowns in the grid.
I need a delete row button, and an add row button.  When "Collecting" the data from the grid to pass to the save method, I need to realize which rows have been added, deleted or inserted.

I need a footer column which will sum a particular column.  I need it to change on the client side when values above are updated.  (monetary column, allowing negatives, with proper formatting).

Validation for some columns (mandatory, etc.).

Is there a complete sort of sample for this kind of situation, or a number of samples giving parts?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 25 Jul 2013
1 answer
74 views
Hi,


We are using a combox with checkbox enabled. While we are using autosuggest option for the combobox, it is working but the typed letter is getting vanished within seconds. This causes a problem for viewer of what he is searching for..Please pfa the snap.


Thanks
Purojit


It will be COMBOBOX instead of Combox. Sorry for typo error..
Peter Filipov
Telerik team
 answered on 25 Jul 2013
1 answer
110 views
 had the need to connect an instance of my RadFileExplorer to a file source on  an FTP, and I used the sample provided on - http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/how-to-use-the-ftp-connection.aspx

However I'm unable to create or rename a directory because I get the error: 

"The directory /files/test" already exists."
Ryan C
Top achievements
Rank 1
 answered on 25 Jul 2013
4 answers
76 views
H there,

I'm new to telerik controls and still trying to work out some of the fundamentals. As I understand it, when both grouping and paging are applied to a RadGrid, pages become "fixed", i.e. grouping records on a page will reduce the number of records that page holds to the new reduced number of visible records, rather than pulling in records from the next page to fill the remaining slots, or even including records that spilled over onto the next page in the group.

Does anyone know if it is possible to override this default behaviour, and get the grid to rebind after a grouping has been applied so that the pages are updated accordingly? 
Sim
Top achievements
Rank 1
 answered on 25 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?