Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
121 views
Hi All,

I'm looking to improve the performance of my RadGrid when editing entries.  I have 30 columns and a couple hundred rows.  I do use paging, but when I click the edit icon it can take 7+ seconds for the grid to open up in edit mode.  Can anyone please recommend any was to improve the performance?

Thanks,
Mark
Princy
Top achievements
Rank 2
 answered on 03 Mar 2014
1 answer
80 views
Drop down tree  with check box when i single click (root / child node ) AutoPostBack the  drop down tree in code behind (mostly problem in the root node check box check page load more time is taken)
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2014
8 answers
319 views
I have a DropDownList (have also tried ComboBox with the same results) that gets populated during page_load if it's not a post back.  The code executes fine and the DropDownListItems are created and appear to be added from the code behind but when the page renders the DropDownList is empty/disabled.  As soon as I do a post back (checkbox click), when it reloads, all of my DropDownLists now actually show the data and can be clicked on.

I've isolated this down to being caused when I load data into the DropDownList during page_load.  On the post back, the data loading doesn't occur (as expected) and allows the items loaded from the initial page_load to be displayed.

Any ideas why this happens or what I can do to fix it?  I've searched and searched but haven't found a solution that works.  The ComboBox exhibits the exact same behavior.

Relevant code:

DropDownList markup:

<telerik:RadDropDownList ID="cmbPayment_CardType" runat="server"
    OnSelectedIndexChanged="cmbPayment_CardType_SelectedIndexChanged"
    Width="160px" DropDownHeight="90px" DropDownWidth="160px" />

page_load from code behind:

protected void Page_Load(object sender, EventArgs e)
{
    try
    {
        if (!IsPostBack)
        {
            List<CreditCardListItem> lstCreditCards = null;
 
            //Load the list of accepted credit cards
            cmbPayment_CardType.Items.Clear();
            lstCreditCards = GetCreditCardsList();
 
            if ((lstCreditCards != null) && (lstCreditCards.Count > 0))
            {
                foreach (CreditCardListItem ccDetails in lstCreditCards)
                    cmbPayment_CardType.Items.Add(new DropDownListItem() { Text = ccDetails.DisplayName, Value = ccDetails.DisplayOrder.ToString() });
            }
 
            lstCreditCards.Clear();
        }
    }
    catch (Exception ex)
    {
        System.Diagnostics.Debug.Print("Error: " + ex.ToString());
    }
}
John
Top achievements
Rank 1
 answered on 03 Mar 2014
5 answers
136 views
Hello,

I have a RadGrid which is allowing row selections:

<ClientSettings EnablePostBackOnRowClick="true">
      <Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>

However, I also have a GridTemplateColumn in my RadGrid that contains a RadComboBox with a list of options.  When the user selects an option in the RadComboBox, I do NOT want the row in the RadGrid to be selected.  But if the user clicks in any other column of the RadGrid, then I'm fine with the row being selected, just not when the user clicks on the RadComboBox in the GridTemplateColumn.


Can you help with this?

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Mar 2014
2 answers
79 views
Hi guys,

Using the EditMode="InPlace" edit form of the grid, is it possible to leave the "Update" link button where it is but place the "cancel" link button in the next column (where the "Delete" link button is - see attached)

Troy
Top achievements
Rank 1
 answered on 02 Mar 2014
6 answers
95 views
Hi,
I am trying to replicate this demo to have a starting point for the feature I would like to implement in my project.
I am experiencing a weird  little problem that I am not able to solve. Please look at the attached picture, there is an overlapping on the top side of the rotating items on the external frame.
I have copied 100% code, style sheet and pictures from the demo. I tried to touchup the css but I am not coming right.
Could you please advice about which property I should tune-up to solve this issue?

Thanks a lot for supporting,
Felice
Felice
Top achievements
Rank 1
 answered on 01 Mar 2014
3 answers
180 views
Hi,

I have just updated to the 2014.1.225 release of the UI for ASP.Net Ajax and when I try to run my app it gives an error saying the skins I am using are not defined.

I have the latest .Net 4.5 dll's in the bin directory, and the references point to them being the 2014.1 release but still I get skin not recognised.

This is happening in both VS2012 and VS2013

David Penny
Pavlina
Telerik team
 answered on 28 Feb 2014
1 answer
70 views
Hi,

I am opening a page to add some document data through a window, and i need to popup the alert "Are you sure want to leave this page?" when ever the user close this window or moves the cursor away from the window or clicks anywhere else other than window. Can you please help me how to show this alert message?
1.This window opens up by clicking the sub menu items from the menu items list. 
2. I want to show this alert only when i click the Add menu item -> Submenu items
3.I should not show the alert when i click Replace or any other menu items in that menu list.
4. Onemore thing this page already has the below Alert function and it is working fine when I am opening the same page in different location in a normal way but not in window mode.
This is the Javascript Function for the Alert
 
function windowOnBeforeUnload() {
 
        if (window.event)
            window.event.returnValue = 'You will lose any unsaved changes!'; // IE
        else
            return 'You will lose any unsaved changes!'; // FX
    }
 
This is the RadMenu HTML code
<table class="takeActionTableContainer" cellpadding="1" cellspacing="0" style="margin: 0 auto;">
    <tr>
        <td style="vertical-align:top; text-align:center; width:50%">
            <telerik:RadMenu ID="RadMenuLibrary" runat="server" EnableRoundedCorners="true" EnableShadows="true" Skin="Default" EnableTextHTMLEncoding="true" Width="100%"
                style="z-index:10; position: relative; margin: 0; text-align:center;" DefaultClickToOpen="False" CollapseDelay="200" ExpandDelay="200" OnClientItemClicked="OnTakeActionItemClicked" OnClientItemClosed="windowOnBeforeUnload" OnClientMouseOut="windowOnBeforeUnload" >
                <ExpandAnimation Type="None" Duration="200" />
                <CollapseAnimation Type="None" Duration="200" />
                <Items>
                    <telerik:RadMenuItem runat="server" Text="LIBRARY" PostBack="false" Width="100%"></telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </td>
        <td style="vertical-align:top; text-align:center; width:50%">
            <telerik:RadMenu ID="RadMenuCollaborator" runat="server" EnableRoundedCorners="true" EnableShadows="true" Skin="Default" EnableTextHTMLEncoding="true" Width="100%"
                style="z-index:10; position: relative; margin: 0; text-align:center;" DefaultClickToOpen="False" CollapseDelay="200" ExpandDelay="200" OnClientItemClicked="OnTakeActionItemClicked" >     
                <ExpandAnimation Type="None" Duration="200" />
                <CollapseAnimation Type="None" Duration="200" />
                 <Items>
                    <telerik:RadMenuItem runat="server" Text="COLLABORATOR" PostBack="false" Width="100%"></telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </td>
    </tr>

I have called the alert function in OnClientItemClicked but i dont want this alert to be displayed when other menu items are clicked.

Thanks
Joselina
Joselina
Top achievements
Rank 1
 answered on 28 Feb 2014
2 answers
90 views
Hi, 
I have a radgrid which displays fine in all the browsers except IE. The columns are shrinked and there is a column of empty white space at the end of the grid. If I remove Usestaticheader property from client settings it works fine but then I  have to scroll to reach pagination. Any way where I could access both property in the grid?

<telerik:RadGrid ID="RadGrid1" runat="server" 
            GridLines="None" 
            EnableLinqExpressions="false"
            AllowFilteringByColumn="True" 
            AllowPaging="True" 
            AllowSorting="True" 
            AutoGenerateColumns="true"
            Visible="true" 
            Width="100%"
            CellPadding="0" 
            GroupingEnabled="false"
            Skin="Default" 
            AllowAutomaticUpdates="false" 
            ShowHeader="true" 
            EnableHeaderContextMenu="true" 
            ShowFooter="true" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnDeleteCommand="RadGrid1_DeleteCommand" 
            OnItemCommand="RadGrid1_ItemCommand"
            OnDataBound="RadGrid1_DataBound"
            OnItemDataBound="RadGrid1_ItemDataBound"
            OnUpdateCommand="RadGrid1_UpdateCommand">
            
            <GroupingSettings CaseSensitive="false" />
            <AlternatingItemStyle Font-Bold="false" Font-Italic="false" Font-Overline="false"
                Font-Strikeout="false" Font-Underline="false" Wrap="True" />
            <ClientSettings>
                <%-- <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" /> --%>
                <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  <%-- UseStaticHeaders="true" SaveScrollPosition="true" /> --%>
                <Resizing AllowResizeToFit="true" />
            </ClientSettings>    
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" PageSize="25" Font-Size="Small" 
                DataKeyNames="EventID, EventName, totalAvail" AllowFilteringByColumn="true" TableLayout="Fixed">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn Display="false" DataField="eventID" DataType="System.Int32" HeaderText="Event ID" HeaderStyle-Width="10%" 
                      ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" AllowFiltering="true" UniqueName="eventID">
                    </telerik:GridBoundColumn>
 </MasterTableView>
           
        </telerik:RadGrid>
vvvv
Top achievements
Rank 1
 answered on 28 Feb 2014
2 answers
524 views
I have run into a situation where the Radwindow is not showing as a modal window.  I have given it all the properties, even tried setting with javascript but no joy, it does not show up as a modal window and I can click on stuff in the background.  Is there something I am missing.  Using Q3 controls with IE9.  I am also using a master page but it has always worked before inside a master page.  totally lost at this point as to why its not working.

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="../Styles/Styles.css" rel="stylesheet" />
 
    <script type="text/javascript">
        function GetWindow(Token) {
            var radDash = $find("<%= radWindow.ClientID%>");
            if (Token == 0) {
                radDash.setUrl("Request.aspx?Type=" + 0);
            }
            else if (Token > 0) {
                radDash.setUrl("Request.aspx?Type=" + Token);
            }
 
            radDash.set_modal(true);
            radDash.show();
        }
    </script>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" Runat="Server">
    <telerik:RadGrid ID="myRadGrid" runat="server" AutoGenerateColumns="false" Skin="Web20" Font-Size="10" OnNeedDataSource="myRadGrid_NeedDataSource">
        <MasterTableView runat="server" DataKeyNames="intRequestId" CommandItemDisplay="Top">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Center" />
            <AlternatingItemStyle HorizontalAlign="Center" BorderColor="#404040" />
            <CommandItemStyle HorizontalAlign="Left" Height="25px" VerticalAlign="Middle" />
            <CommandItemTemplate>
                <a href="#" id="Request" onclick="GetWindow(0);return false;">Request Token</a>
            </CommandItemTemplate>
            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadWindowManager ID="radWindow" runat="server" CenterIfModal="true" Width="800px" Height="450px" Modal="true" ShowContentDuringLoad="false" Skin="Web20" Behaviors="Close" VisibleStatusbar="false">
    </telerik:RadWindowManager>
</asp:Content>




Kevin
Top achievements
Rank 1
 answered on 28 Feb 2014
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?