Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views

Hey,

I currently have a grid that lists  many GridTemplateColumns within it. Three of these columns contain RadComboBoxes in them. The first cascades down to the two below it. When I change the selectedIndex of the first combo box, I trigger a postback which then fills the other two combo boxes with the appropriate values. This is all done without using an edit button, every line is editable when the grid is loaded. When the postback is triggered, it takes the grid a long time even though the code behind the selectedIndexChanged is empty and does not do anything. Do you know how I could do this without using a postback and so it only updates/looks at the line (javascript?), or to speed this postback up? I have attached the code I am using from the grid, and any help would be greatly appreciated.

It appears that when I select one RadComboBox, the postback goes through and touches every Item in teh RadGrid. I figure this because the more items that are returned into the grid, the longer it takes to fill the combo boxes for that line. Is there a way to only look at the line I am currently working on?

Thanks,
Ryan



<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="Default" InitialDelayTime="500">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel">
            <telerik:RadGrid ID="grdRIExceptions" runat="server" GridLines="None" 
                AutoGenerateColumns="False" Width="100%" AllowPaging="True" PageSize="50" 
                DataSourceID="ExceptionDataSource">
                <GroupingSettings CaseSensitive="False" GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;" />
                <ClientSettings>
                    <Scrolling ScrollHeight="500px" />
                </ClientSettings>
                <GroupHeaderItemStyle Font-Bold="True" Font-Size="12px" ForeColor="#333333" />
                <MasterTableView NoMasterRecordsText="There are no exceptions in your region with the set filters." 
                    DataKeyNames="CUST_No,STC_Code,INV_PrevDocNo" ClientDataKeyNames="CUST_No" 
                    DataSourceID="ExceptionDataSource" Width="100%">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <CommandItemSettings />
                    <Columns>
                        <telerik:GridBoundColumn DataField="CUST_No" EditFormHeaderTextFormat="{0}&nbsp;:" HeaderText="Customer No" UniqueName="CUST_No" Visible="False">
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="CUST_Name" EditFormHeaderTextFormat="{0}&nbsp;:" HeaderText="Cust." SortExpression="CUST_Name" UniqueName="CUST_Info">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnViewCustomerInfo" runat="server">View</asp:LinkButton>
                                <asp:Label ID="lblCustNo" runat="server" Font-Underline="True" Text='<%# Eval("CUST_No") %>' Visible="False"></asp:Label>
                                <asp:Label ID="lblCustName" runat="server" Text='<%# Eval("CUST_Name") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblCustDisplay" runat="server" Text='<%# Eval("CUST_Name") + "(" + Eval("CUST_No") + ")" %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="30px" Wrap="True" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="CUST_Name" HeaderText="Customer" UniqueName="CustomerName" Display="False">
                            <ItemTemplate>
                                <asp:Label ID="lblCustDisplay2" runat="server" Text='<%# Eval("CUST_Name") + "(" + Eval("CUST_No") + ")" %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="275px" Wrap="True" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Rental Order" UniqueName="NumOfRentalOrders">
                            <ItemTemplate>
                                <asp:Label ID="lblRONo" runat="server" Text='<%# Eval("INV_PrevDocNo") %>'></asp:Label>
                                <asp:Label ID="lblPrevDocType" runat="server" Text='<%# Eval("INV_PrevDocType") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" HorizontalAlign="Left" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="INV_No" HeaderText="Inv/CM No." UniqueName="column1">
                            <ItemTemplate>
                                <asp:Label ID="lblInvNo" runat="server" Text='<%# Eval("INV_No") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="INV_PostDate" HeaderText="Inv/CM Date" UniqueName="column">
                            <ItemTemplate>
                                <asp:Label ID="INV_PostDateLabel" runat="server" Text='<%# Eval("INV_PostDate") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Ship-to Information" UniqueName="STC_Code" DataField="STC_Code" GroupByExpression="STC_Code" SortExpression="STC_Code">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCCode" runat="server" Text='<%# Eval("STC_Code") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCName" runat="server" Text='<%# Eval("STC_Name") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCUnlinked" runat="server" Text='<%# Eval("STC_Unlinked") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCDisplay" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_City" GroupByExpression="STC_City" HeaderText="City" SortExpression="STC_City" UniqueName="STC_City">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCCity" runat="server" Text='<%# Eval("STC_City") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" Width="100px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_State" GroupByExpression="STC_State" HeaderText="State" SortExpression="STC_State" UniqueName="STC_State">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCState" runat="server" Text='<%# Eval("STC_State") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="28px" Wrap="True" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_Zip" GroupByExpression="STC_Zip" HeaderText="Zip Code" SortExpression="STC_Zip" UniqueName="STC_Zip">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCZip" runat="server" Text='<%# Eval("STC_Zip") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="55px" Wrap="True" HorizontalAlign="Right" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Fix Type" UniqueName="FixType">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cboExceptionFixType" Runat="server" Width="125px" AutoPostBack="True" MarkFirstMatch="True" OnSelectedIndexChanged="cboExceptionFixType_SelectedIndexChanged" DropDownWidth="175px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Skip" Value="Select" />
                                        <telerik:RadComboBoxItem runat="server" Text="Always on this Address" Value="STC" />
                                        <telerik:RadComboBoxItem runat="server" Text="This Contract Only" Value="RO" />
                                    </Items>
                                </telerik:RadComboBox>
                                <asp:CheckBox ID="chkFixed" runat="server" Visible="False" />
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" Width="120px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Assign Salesperson / Branch" UniqueName="AssignSP">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cboExceptionSalesperson" runat="server" Width="125px" DropDownWidth="175px" Height="400px" Enabled="False"  AutoPostBack="True" MarkFirstMatch="True" DataTextField="SP_Name" DataValueField="SP_Code" OnSelectedIndexChanged="cboExceptionSalesperson_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Select Salesperson" Value="" />
                                    </Items>
                                </telerik:RadComboBox>
                                   
                                <telerik:RadComboBox ID="cboExceptionBranch" runat="server" AutoPostBack="False" Width="125px" DropDownWidth="175px" MarkFirstMatch="True" Enabled="False" DataTextField="Code" DataValueField="Code">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Select Branch" Value="" />
                                    </Items>
                                </telerik:RadComboBox>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" Width="315px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
3 answers
111 views
Hi,
          I have a page with grid having the radUpload inside. Everything is configured and working. Now, this page is a content page. So, everything is basically inside a ajaxpanel.
          Issue is that if i use the ajaxmanager in the master page. The loading panel shows up but if i use the ajaxpanel then only for this content page the loading panel does not show up automatically. 
          I assume the issue is due to the radUpload. So, what am i suppose to do ?

Thanks,

Regards,

Osman
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
1 answer
131 views
Hi All,

I have installed telerik sharepoint controls on the sharepoint foundation 2010 website and using radeditor on the site for editing wiki pages. the issue is when i am adding a new page than RadEditor loads and works fine. After saving and closing the page the content get saved but when i edit the page than radeditor control does not load properly and give the javascript error message "Telerik is not defined". Please see the attached images for details.

The other thing that i have noticed is that, On the default sharepoint website radeditor is working fine in the edit mode but if i made some changes in the wikipage and close it then system still shows the old content. Only the first time content entered through the radeditor were saved during creation of a new wiki page.

Please help me that how can i solve this issue.

Thanks,

Stanimir
Telerik team
 answered on 07 Oct 2010
5 answers
80 views
Hello,

I'm using a PopUp edit form on my RadGrid.  In the user control all the textboxes, dropdowns, and checkboxes are not inside any other controls.  I can "Bind" all my fields and do updates to the data  but as soon as I add a RadTabStrip/RadMultiPage (or nest any of the form input controls inside any other control) the fields will populate with the correct data but I can't update the data in the database.  Any ideas as to why this may be happening?

Thanks In Advance,
Larry
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
1 answer
135 views
Hi,
Could you provide an examples how can I set the event argument to eventArgs parameter of OnRespondEnd. Basically, i have an ajaxified RadGrid through RadAjaxManager. After adding an entry to this grid, i need to carry this new entry's id to do some other operations on client side. So the function OnResponseEnd look like this
function OnResponseEnd(sender, eventArgs)
{
if (eventArgs.get_eventTarget() == "grdProjectTask$ctl00$ctl02$ctl01$btnUpdate")
  {
   var taskId = eventArgs.get_eventArgument();
                    AddAlertToNewTask(taskId)
  }
 
  }

I need the taskId in the function OnResponseEnd. Do i need to inject somewhere in ItemCommand of the Grid so that after "Insert" an entry, OnResponseEnd will have it's id.
Thank you,
Tsvetina
Telerik team
 answered on 07 Oct 2010
3 answers
105 views

Hello

I have this senario

 <RadSplitter
      <RadPane
           <RadGrid ID="RadGrid1"></RadGrid>
      </RadPane
      <RadSplitBar />
      <RadPane
           <WebUserControl(inside the usercontrol is a Grid named "RadGrid2")
      </RadPane

 </RadSplitter

 <button1
 <button2

How can i reload the RadGrid1 and RadGrid2 on button1 click???
My problem here is that i can not reload the grid inside the usercontrl.

I have tried to reload the WebUsercontrol and the 2 loadingpanel show but the grid did not update its datasource...
It it went through all WebUserControls serverside codes but even if the datasource was new, the display is still old.

Hope you could Help!

Pavlina
Telerik team
 answered on 07 Oct 2010
2 answers
87 views
Issue: When the back button is clicked using Internet Explorer (version 7,8) on a page that has a Rad Ajax Manger the page re-loads as thought it has not been hit before.  

I would like the page to be stored in cache so that the form on the page is not empty when the user hits the back button.  Internet Explorer is the only browser that reloads the page, chrome stores the page and the form is filled in.

Is there a way to make IE "cache" the page so the form will be filled in when a user hits the back button?
AIU Web Services
Top achievements
Rank 1
 answered on 07 Oct 2010
0 answers
60 views
Hi ,

I have included Radscript manager in my sharpeoint webpart , when I hover te cursor on any of the top or left hand menu items of sharepoint site I am getting error as "Microsoft JScript runtime error:Object expected" ,can any one suggest as how to go about the same,please find the code block below

        protected override void OnLoad(EventArgs e)
        {
                base.OnLoad(e);
                ScriptManager scriptManagerchecknow = ScriptManager.GetCurrent(this.Page);
                if (scriptManagerchecknow == null)
                {
                    scriptManagerchecknow = new RadScriptManager();
                    this.Controls.AddAt(0, scriptManagerchecknow);
                 }
          }
Regards
Srujan.N

Srujan
Top achievements
Rank 1
 asked on 07 Oct 2010
1 answer
128 views

Hi Guys,

I need radcombobox's "AutoComplete" & "LoadOnDemand" functionalities together with "MarkFirstMatch= true".


Thanks'
Ravi
Kalina
Telerik team
 answered on 07 Oct 2010
1 answer
105 views
I want to add additional controls (buttons) in the title bar of the RadWindow, I just wanted to check if this ( http://www.telerik.com/support/kb/aspnet-ajax/window/adding-a-custom-button-to-radwindow-titlebar.aspx ) code sample is still current and the best suggested way to do this? 

Thanks! 
Georgi Tunev
Telerik team
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?