Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Issue with radgrid, it doesnt time while loading locally but in webserver it takes too long to load

here is the code

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="HotelGrid" />
            </UpdatedControls>
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AirlineGrid" />
            </UpdatedControls>
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ServiceGrid" />
            </UpdatedControls>
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="VehicleGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="HotelGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="HotelGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="AirlineGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AirlineGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="ServiceGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ServiceGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="VehicleGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="VehicleGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay"
    Height="16px" Width="192px">
</telerik:RadAjaxLoadingPanel>
<div id="hotelblock" title="hotel">
    <telerik:RadGrid ID="HotelGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
            AllowSorting="True" AllowPaging="True" Width="100%" ViewStateMode="Enabled" CellPadding="10"
            CellSpacing="10" Skin="Hay" BackColor="#DEE0C8" ShowFooter="True" CssClass="RadGrid"
            PageSize="5">
            <ClientSettings AllowAutoScrollOnDragDrop="False">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" />
                <Resizing ClipCellContentOnResize="False" />
            </ClientSettings>
            <MasterTableView Dir="RTL" HorizontalAlign="Right" EditMode="EditForms" DataKeyNames="SrNo"
                InsertItemPageIndexAction="ShowItemOnCurrentPage" Width="100%" CommandItemDisplay="Top"
                ViewStateMode="Enabled" EnableViewState="true">
                <CommandItemSettings AddNewRecordText="Add Hotel"></CommandItemSettings>
                <Columns>
                 
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="SrNo" HeaderText="Sr. No"
                        DataField="SrNo" ReadOnly="true" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="HotelCode" HeaderText="Hotel Code"
                        DataField="HotelCode" Visible="false">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Hotel" HeaderText="Hotel"
                        DataField="Hotel">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="AreaCode" HeaderText="Area Code"
                        DataField="AreaCode" Visible="false">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="AreaDesc" HeaderText="Area Desc"
                        DataField="AreaDesc">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="FromDate" HeaderText="From Date"
                        DataFormatString="{0:dd/MM/yyyy}" DataField="FromDate">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="TotalDays" HeaderText="Total Days"
                        DataField="TotalDays">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="ToDate" HeaderText="To Date"
                        DataFormatString="{0:dd/MM/yyyy}" DataField="ToDate">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="HotelStar" HeaderText="Hotel Star"
                        DataField="HotelStar">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="CompanyCode" HeaderText="Company Code"
                        DataField="CompanyCode" Visible="false">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Company" HeaderText="Company"
                        DataField="Company">
                        <ItemStyle Width="20px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Confirmed" DefaultInsertValue="" HeaderText="Confirmed"
                        UniqueName="Confirmed">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridBoundColumn Aggregate="Sum" DataField="Total" DefaultInsertValue=""
                        HeaderText="Total" UniqueName="Total">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" ConfirmText="Are You Sure To Delete"
                        ConfirmTitle="Delete" Text="Delete" UniqueName="Delete">
                        <ItemStyle Width="10px" />
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings UserControlName="HotelDetail.ascx" EditFormType="WebUserControl">
                </EditFormSettings>
                <CommandItemSettings AddNewRecordText="Add Hotel" />
                <ExpandCollapseColumn ButtonType="ImageButton" Visible="False" UniqueName="ExpandColumn">
                    <HeaderStyle Width="19px"></HeaderStyle>
                </ExpandCollapseColumn>
            </MasterTableView>
        </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 10 Jan 2012
1 answer
181 views
Hi is the above possible ?

When my grid is exported its too wide to fit on the page, i'd like to default the document to landscape orientation.

edit: world is meant to be word by the way :P
Princy
Top achievements
Rank 2
 answered on 10 Jan 2012
2 answers
130 views
Hi,

I have a RadGrid in inline edit mode.  Everything works perfectly, except when in edit mode, my Update and Cancel buttons show as text links instead of images.  I'm using a GridEditCommandColumn:

<telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column"
    CancelImageUrl="~/images/cancel.jpg" EditImageUrl="~/images/page_edit.gif" UpdateImageUrl="~/images/save.jpg"
    ButtonType="ImageButton">

  • The images exist at the URL specified.
  • The Edit button properly displays the image.
  • I'm using a LinqDataSource with AllowAutomaticUpdates = true

Thoughts?
Glenn Plunkett
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
223 views
I have a list view with an item template and some radnumeric text boxes.
I'm binding the radnumerictextboxes programaticaly OnItemCreated.
When I fire a postback the values are all gone.
Any suggestions?
thank you

 <telerik:RadListView ID="RadListView1" runat="server" OnItemCreated="RadListView1_ItemCreated">
                <ItemTemplate>
                    <div>
                        <telerik:RadNumericTextBox ID="txb0" runat="server" Width="50px" />
                        <telerik:RadNumericTextBox ID="txb1" runat="server" Width="50px" />
                    </div>
                </ItemTemplate>
   </telerik:RadListView>

    protected void RadListView1_ItemCreated(object sender, RadListViewItemEventArgs e)
    {
                if (!IsPostBack)
                {
                    RadNumericTextBox txb0 = (RadNumericTextBox)e.Item.FindControl("txb0");
                    txb0.Value = 1;

                    RadNumericTextBox txb1 = (RadNumericTextBox)e.Item.FindControl("txb1");
                    txb1.Value = 2;
                }
        }
Richard
Top achievements
Rank 1
 answered on 09 Jan 2012
6 answers
457 views
Hi,

I added an expand/collapse all button in the grid header as described in http://www.telerik.com/community/code-library/aspnet-ajax/grid/custom-expand-collapse-column-with-expandall-collapseall-image-button-in-the-header.aspx.

My grid alignment changes (the master table shrinks) when I expand the grid as shown in the attached image.

I am unable to understand why this is happening. Please help.
MBEN
Top achievements
Rank 2
Veteran
 answered on 09 Jan 2012
1 answer
97 views
Hi,

I need to present to the user an input form much like an excel spread sheet - a matrix of working days in a week along the top (columns) against various containers (rows).
The exact configuration of this form changes from user to user depending on slections they have made. For example, there may be 1 row or 15 rows, but the columns remain consistent.

In each cell will be a bound textbox where users can change or input the values.

Can anyone give me some pointers on how best to achieve this - specifically around how to ensure the ID's of each control will ensure data binding and capture is robust so that te backend code knows exactly where to put data and pull data.

I could rely on object binding and let the controls manage the delta's or manually parse the grid after it's been editing...

Thanks a bunch,

SMM
Elliott
Top achievements
Rank 2
 answered on 09 Jan 2012
3 answers
282 views
I am replacing 2 grids from another third-party (Intersoft) on a page and am trying to not change any of the functionality
there is a property set which deselects any item from either grid when that grid loses focus
I tried Grid1.Attributes.Add("onblur", function_name()); but no dice

in IE, that is
I do my development in IE then post and test in the other browsers
blur works in Mozilla but not sure about the parameters - but I could just use 2 functions
Elliott
Top achievements
Rank 2
 answered on 09 Jan 2012
16 answers
486 views
Dear All,

Like in RAD Windows Grid Control, is there any option available in the Web Grid for choosing the columns?

Mohan
Top achievements
Rank 1
 answered on 09 Jan 2012
2 answers
88 views
I need to drag one or more items from a RadListBox to a specific RadTreeViewNode. I'd like to achieve this without resorting to client-side code if possible. The Dropped event is invoked on the server when I drop on the white space of the RadTreeView control, but not when I drop on a RadTreeViewNode. 

I want to handle the event on the server because I need to interact with a DAC and then call DataBind on the RadTreeView control.

If it is necessary to use client code to fulfill my requirements, please provide a link to an example if one exists.

Thank you
Robert
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
117 views
Hi,

I'm using the scheduler version Ajax Q3 2009 SP2
I encountered few weird behaviors:

1. When I create a new appointment, the appointment is created several hours later. For example, if I set the appointment on 3:00-4:00, it will be created on 11:00-12:00
2. After creating the appointment i try to change the the end time by dragging the bottom border of the appointment down. The border is dragged but the browser (IE8) is refreshed and the change does not take effect.
3. When creating a new appointment and pressing "Options":
a. There's a "!" image on the right upper corner of the subject
b. When i press save, i get the following error: 'ValidatorUpdateDisplay' is undefined

Please advice,

Thanks
Richard
Top achievements
Rank 1
 answered on 09 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?