Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
Hi, I am trying to use RadAjaxManager to cause my gridview to add items when a button is clicked.  These items are stored in a session variable.  When I use the RadUpdatePanel, everything works as expected, except the whole page reloads and is slow.  I would like to show a loading panel over each contorl that is loading (my actual page is quite complex).  When I click the button to add an item to the radgrid, it shows the loading panel, but the grid does not show any new items.  However if I click other things on the page, the items that were added will appear.  I've been searching for quite some time for a solution to my problem.  Also note:I'm trying NOT to use javascript if possible.  My setup is as follows:

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication5._Default" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
  
    <telerik:RadScriptManager ID="scmAjax" runat="server" ScriptMode="Release" />
  
    <telerik:RadAjaxManager ID="radAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radAjaxManager">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="rlpLoadingPanel"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="rlpLoadingPanel"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="rlpLoadingPanel"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
  
    <telerik:RadButton ID="RadButton1" runat="server" Text="Assign" 
        onclick="RadButton1_Click" AutoPostBack="true">
    </telerik:RadButton>
  
    <telerik:RadButton ID="RadButton2" runat="server" Text="Request that will reload grid" 
        AutoPostBack="true">
    </telerik:RadButton>
  
    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None">
    </telerik:RadGrid>
  
    <telerik:RadAjaxLoadingPanel ID="rlpLoadingPanel" runat="server" Skin="Default" IsSticky="false">
        </telerik:RadAjaxLoadingPanel>
  
</asp:Content>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace WebApplication5
{
    public struct Book
    {
        public string title
        {
            get;
            set;
        }
        public string author
       {
            get;
            set;
        }
    }
  
    public partial class _Default : System.Web.UI.Page
    {
        protected List<Book> GridViewBooks
        {
            get
            {
                return (List<Book>)Session["Books"];
            }
            set
            {
                Session["Books"] = value;
            }
        }
  
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<Book> theBooks = new List<Book>();
                Book aBook = new Book();
                aBook.title = "First book title";
                aBook.author = "First book author";
                  
                theBooks.Add(aBook);
  
                GridViewBooks = theBooks;
                BindGrid();
            }
  
        }
  
        protected void RadButton1_Click(object sender, EventArgs e)
        {
            List<Book> theBooks = new List<Book>();
            Book aBook = new Book();
            aBook.title = "Another title " + DateTime.Now.ToString();
            aBook.author = "another book author";
  
            theBooks = GridViewBooks;
            theBooks.Add(aBook);
            GridViewBooks = theBooks;
  
            BindGrid();
        }
  
        private void BindGrid()
        {
            //bind gridview
            RadGrid1.DataSource = GridViewBooks;
            RadGrid1.DataBind();
        }
  
    }
}

Thanks for your help
Radoslav
Telerik team
 answered on 25 Feb 2011
1 answer
70 views
"Cell Limit Error".  We have code that has been executing successfully for some time to export data to an excel spreadsheet with RadGrid.  This code is executing successfully on our older operating systems.   However,  on  machines that have Windows 7 installed we are having a problem.  All data is being dumped into a single row and column creating error , "cell limit".  Why should this be occurring?  Is this related to our version of skins?  It looks like we are using "default".  
Do we need to change Radcontrols for Windows 7.


Daniel
Telerik team
 answered on 25 Feb 2011
1 answer
145 views
I notice that firefox has its own spell checker. I also notice that when right clicking in the editor in Firefox, you get the standard Firefox context menu as opposed to the Teleirk one (with Paste, Paste from Word, etc.).

Since I allow users to add custom dictionary items and use a central custom dictionary, I would prefer to only use the Teleirk Rad Spell Checker. Is there any way to prevent the firefox spell checker from being used?

Also, is there any way to get the telerik context menu to show up in firefox?
Rumen
Telerik team
 answered on 25 Feb 2011
4 answers
526 views
I have a RadDatePicker control. I select a date and submit the form. In the code behind, the datetime object is a date in UTC, that is not the same as the entered date. This is because the calendar uses internally a javascript Date object, which picks the locale of the client's browser and client-locale to UTC conversion seems to happen on the server. Is there a way to get the exact date that has been entered, regardless of the client settings of the user and the browser? I want the dates that my input receives to be treated just as entered without any timezone information or conversions. I want to use that date as UTC date in my logic, but since it is being converted automatically, I happen to operate with wrong data.
Ivaylo
Top achievements
Rank 1
 answered on 25 Feb 2011
2 answers
644 views
Hi Telerik Team,

I want to restrict adding new appointments on to the scheduler i.e. it wont be possible to add a new appointment either by right click or double click.

i have tried to use read only property but it didn't work. So what is the other solution to restrict adding the new appointments.?

Also i want to change the text while adding a new appointment i.e. "new appointment" to any text on right clicking the scheduler.

So how do i change the text.?

Thanks & Regards
Amit Thakkar
Amit
Top achievements
Rank 1
 answered on 25 Feb 2011
1 answer
127 views
My problem is related to this Code Library solution for Row Selection Persistence on Paging & Filtering.

The header checkbox does not work if Grouping is enabled in the RadGrid and/or there is another RadGrid nested within in the outer RadGrid.

I've added the Group Expressions and NestedViewTemplate in the code sample to reproduce the problem. Could anyone please mention the reason why the header selection does not work in this code sample with Grouping and NestedViewTemplate ?
<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Outlook" AllowSorting="true" AllowPaging="true"
           AllowFilteringByColumn="true" AutoGenerateColumns="false" ShowGroupPanel="true" PageSize="6" >
           <MasterTableView DataKeyNames="ID">
                <GroupByExpressions>
                      <telerik:GridGroupByExpression>
                          <SelectFields>
                                 <telerik:GridGroupByField FieldAlias="Public" HeaderText="Grouped by Public & Private Questions"  FieldName="ID" />
                           </SelectFields>
                           <GroupByFields>
                                 <telerik:GridGroupByField FieldName="ID" FieldAlias="Public"    />
                           </GroupByFields>
                        </telerik:GridGroupByExpression>
                 </GroupByExpressions>
                  
                 <NestedViewTemplate>
                    
                       <telerik:RadGrid ID="RadGrid2" runat="server" Skin="Outlook" AllowSorting="true" AllowPaging="true"
                                AllowFilteringByColumn="true" AutoGenerateColumns="false" ShowGroupPanel="true" PageSize="6" >
                           <MasterTableView DataKeyNames="ID">
                            
                               <Columns>
                                    <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Item" AllowSorting="false" UniqueName="Item"
                                       HeaderText="Item">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Date" UniqueName="Date" HeaderText="Date">
                                    </telerik:GridBoundColumn>
                               </Columns>
                            </MasterTableView>
                         </telerik:RadGrid>  
                    
                 </NestedViewTemplate>
                  
                  
               <Columns>
                   <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="template">
                       <ItemTemplate>
                           <asp:CheckBox ID="CheckBox1" runat="server" />
                       </ItemTemplate>
                       <HeaderTemplate>
                           <asp:CheckBox ID="CheckBoxHeader" runat="server" />
                       </HeaderTemplate>
                   </telerik:GridTemplateColumn>
                   <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="Item" AllowSorting="false" UniqueName="Item"
                       HeaderText="Item">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="Date" UniqueName="Date" HeaderText="Date">
                   </telerik:GridBoundColumn>
               </Columns>
           </MasterTableView>
           <ClientSettings>
               <ClientEvents OnRowClick="onRowClick" />
           </ClientSettings>
       </telerik:RadGrid>
       <asp:HiddenField ID="HiddenField" runat="server" />


Pavlina
Telerik team
 answered on 25 Feb 2011
1 answer
122 views
Hi,

I'm currently using the trial version of the controls.

Does the trial version expire and, if so, can the trial be extended?

Thanks.

Matt.
Sebastian
Telerik team
 answered on 25 Feb 2011
5 answers
381 views
Hello,

I'm have a similar setup to this demo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx.
Where I have a repeater, radtooltipmanager that loads a Web User Control that contains a RadUpload and a submit button.
The key difference between the demo and my is that I have a RadUpload control on the Web User Control.
I can't get the RadUpload to work. I understand that I have to disable AJAX somehow,
but can't seem to get to work properly.

Please advise.

Thanks,
Quan

 
Dimitar Terziev
Telerik team
 answered on 25 Feb 2011
3 answers
174 views
Hi Team,
            I want to reorder the grid rows  in client side only , Without server side scripting can i do that.
if i drag and drop any number of rows than it should be reorder properly by client side code.

i achieved it by server side code but i want it should be work for client side.

Please reply me as soon as possible......


Thanks
Azam
Pavlina
Telerik team
 answered on 25 Feb 2011
2 answers
179 views
Hello - if I only have 2 or 3 items in my rotator and I use my mouse scroll wheel over the rotator, those few items scroll up and out of view leaving and empty space.

Is there any way to disable the scroll wheel?
Niko
Telerik team
 answered on 25 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?