Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
49 views
In the ItemCommand event on my RadGrid I have the following section:
if (e.CommandName == RadGrid.ExpandCollapseCommandName || e.CommandName.Equals("RowClick",StringComparison.InvariantCultureIgnoreCase)) {
                e.Item.Expanded = true;
                e.Item.Selected = true;
   }

The e.Item.Expanded being set to true is taking 10-14 seconds to resolve, what could be happening that would cause such a large performance hit? 
Pavlina
Telerik team
 answered on 13 Feb 2015
3 answers
475 views
Hello, I am struggling getting the current url for the radwindow.  I always seem to obtain the original url. 

I have a radwindow hosting a webpage where I am able to perform searches internally,  Just as google, yahoo etc, the url is populated with a string of information identifying the performed search.  I need to pull the new url from the radwindow and pass it to a model popup I am using to save the string.

I have tried several options but none seem to get anything but the original url.
radwindow.get_NavigateUrl()
radwindow.Geturl() - doesn't work at all.
document.getElementById("radwindow").src

Please help,
thanks.
Marin Bratanov
Telerik team
 answered on 13 Feb 2015
1 answer
138 views
Hi all,

Using VS2013 with UI for ASP.NET AJAX Q3 2014 SP1. Below RadGrid Demo is my Prototype, 1st Grid (i.e. referencing to RadGrid1).

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx

I would like to have the flexibility to Filter the Grid with Check all, Single Selection or Multiple Selections from Filter Templates via Checkbox. Existing Functionality of the Above Grid Should remain the same.

Is it possible to Filter above Grid with ComboBox - Selection with Checkbox like below link?

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

Thanks a lot
Eyup
Telerik team
 answered on 13 Feb 2015
1 answer
110 views
I have radgrid popup for edit and add new record. From this popup I want to invisible the close button available on top. What is the Id for close button
 
Eyup
Telerik team
 answered on 13 Feb 2015
1 answer
341 views
Hello,

Is there a way to load multiple user controls asynchronously using Telerik ?
I have a web page that uses 10-12 user controls.
I want to page to load each control after another so that the user will need to wait for such a long time.

Regards,
Tal
Maria Ilieva
Telerik team
 answered on 13 Feb 2015
3 answers
112 views
Hi,

Assuming that I have a RadPivotGrid which contains 3 filters, year, quarter and month.

If I filter the values to a specific year and then try and filter on a specific quarter, the values which appear in the list of available quarters are outside of the previously filtered range.

The Attached screenshot illustrates this. The list of available filter values should be smaller given that I've already filtered for values in the year 2012.

Thanks

Maria Ilieva
Telerik team
 answered on 13 Feb 2015
10 answers
494 views
Hi everyone,

I'm using a radGrid in a test web page. The EditMode is set to Batch and the "Add new row", "Save changes", and "Cancel changes" are visible. I changed the "Add new row" image using MasterTableView-CommandItemSettings-AddNewRecordImageUrl. I would like to change the image for "Save changes" and "Cancel changes". I have been looking for information about this but I didn't find it. If this is not posible, I would like to know how I could invoke the RadGrid1_BatchEditCommand function from a CommandItemTemplate in the radGrid.

Thanks a lot in advance.

Cheers.

David Ortega.
Eyup
Telerik team
 answered on 13 Feb 2015
4 answers
193 views
My two RadSchedulers work perfectly on my developer machine within Visual Studio. When I deploy to the production web server, it works all except for one minor difference. Here is what happens accessing my RadSchedulers via our remote web server:
 
  • A user will right click on an existing appointment (or empty space). This shows the New Appointment / Edit / Delete context menu choices. Click Edit. The New/Edit/Delete menu disappears. (so far so good). But then, nothing happens. The modal default Appointment editor window never appears. No error gets thrown, I don't see any errors in the web browser status bar. I've done this so many times and it never appears, regardless of what appointment in my scheduler that I choose.
  • Same problem for New Appointment. Nothing happens after the context menu disappears.
  • However, if you click Delete, the confirmation window appears: "Are you sure you want to delete this appointment?" . I click OK and it works fine, the appointment gets deleted.

But for New and Edit, the appointment window won't popup. This happens for all client web browsers, Safari, IE, Chrome. It happens on different client machines and for different users. So it feels like the problem is something on the web server, not a client side problem. Could there be some kind of deployment issue? Something I didn't deploy properly? Is the production web server running a different version of required DLL's?

This works perfectly on my developer machine within Visual Studio, so I know this should work. I've never had any problems creating or editing appointments when running locally on my test virtual machine developer environment. So I think my aspx and c# code is correct, since it works locally. Another test scenario is from my developer machine, hit the production web site. The same problem occurs. So my developer machine also fails when hitting the production web URL. But not within Visual Studio.

Thanks for your help.

Plamen
Telerik team
 answered on 13 Feb 2015
1 answer
170 views
Hi Telerik forum,
I am trying to implement ondemand property of Radmultipage using the http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx. It is working some how. But what i need is i want to postback on each time when tab clicked .
For this i removed clientFunction called "onClientTabselecting".

This is where i am facing the problem. I am getting the error "Multiple controls with same ID found...." . And in my two of my viewpages contain user controls
I am getting the respective error only on re-clicking on the tab which contain user control.

 My design:
  
<telerik:RadTabStrip ID="Vehicles" runat="server" Skin="Metro" MultiPageID="RadMultiPage1" 
                       SelectedIndex="0" Width="99%" OnTabClick="Vehicles_TabClick" 
                       AutoPostBack="true">
      
        <telerik:RadTab Text="Cars"  PageViewID="radCars" Value="radTabCars"> </telerik:RadTab>
        <telerik:RadTab Text="Train"   Value="radTabTrain">  </telerik:RadTab>                  
        <telerik:RadTab Text="Bus" CssClass="CustomTab"  HoveredCssClass="HoveredTab"
                              Value="radTabBus">
                          </telerik:RadTab>
       <telerik:RadTab Text="Cycle"  Value="radTabCycle" > </telerik:RadTab>
 
       <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated"
                        EnableViewState="true">
 
       <telerik:RadPageView ID="radPVCars" runat="server">
            <telerik:RadGrid ID="grdCars" runat="server" AllowSorting="true" </telerik:RadGrid>
       </telerik:RagpageView>
        <telerik:RadPageView ID="radPVTrain" runat="server">
          <DManagement:Fax runat="server" ID="UCTrain" Status="Train" />
        </telerik:RagpageView>
        <telerik:RadPageView ID="radPVBus" runat="server">
              <DManagement:Fax runat="server" ID="UCcyvle" Status="Bus" />
         </telerik:RagpageView>
       <telerik:RadPageView ID="radPVCycle" runat="server">
 
       <telerik:RadGrid ID="grdCycle" runat="server" AllowSorting="true" </telerik:RadGrid>
       </telerik:RagpageView>

                               

 Code behind:

      
protected void Vehicles_TabClick(object sender, RadTabStripEventArgs e)
        {
             
            AddPageView(e.Tab);
          
            e.Tab.PageView.Selected = true;
        }
   
 
     private void AddPageView(RadTab tab)
        {
            RadPageView pageView = new RadPageView();
            if (tab.Value == "radTabCars")
            {
                RadMultiPage1.SelectedIndex = RadMultiPage1.FindPageViewByID("radPVCars").Index;
                tab.PageViewID = "radPVCars";
                
 
                return;
            }
            else if (tab.Value == "radTabCycle")
            {
                RadMultiPage1.SelectedIndex = RadMultiPage1.FindPageViewByID("radPVCycle").Index;
                tab.PageViewID = "radPVCycle";
                
 
                return;
            }
            
 
            
            switch (tab.Value)
            {
                case "radTabTrain":
                    pageView.ID = "radPVTrain";
                    break;
                case "radTabBus":
                    pageView.ID = "radPVBus";
                    break;
                
            }
            
            RadMultiPage1.PageViews.Add(pageView);
            RadMultiPage1.SelectedIndex = RadMultiPage1.PageViews.Count - 1;
            tab.PageViewID = pageView.ID;
            
        }
 
 
      protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            string uControlName = "";
            string uControlId = "";
             switch (e.PageView.ID)
            {
                case "radPVTrain":
                    uControlName = "~/USC/UserControls/Dgmt_vehicle.ascx";
                    userControlId = "VehTrain";
                    break;
                case "radPVBus":
                    uControlName = "~/USC/UserControls/Dgmt_vehicle.ascx";
                    userControlId = "VehBus";
                    break;
            }
            Control userControl1 = Page.LoadControl(userControlName);
            UserControls.Dgmt_Faxes objControl = (UserControls.Dgmt_Faxes)userControl1;
              
             if (uControlId  == "VehTrain")
                objControl.Status = "Train";
            else if (uControlId  == "VehBus")
                objControl.Status = "Bus";
             
            userControl = (VehicleUserControl)userControl1;
            userControl.ID = userControlId;
            e.PageView.Controls.Add(userControl);
            e.PageView.EnableViewState = true;
            
 
        }
             
Viktor Tachev
Telerik team
 answered on 13 Feb 2015
2 answers
888 views
I have a custom Edit mode Form Template defined with a Drop-Down List and 3 check boxes. I want to pre-load the Drop-down list from a related table. 
That way when I click edit on a grid row, the custom form pops up and the correct text will be selected in the drop-down based on the lookup value in the source
table and I will be able to change the drop down if I like. When I reference the drop down list ID name in the code behind it doesn't recognize it. The name of the drop down list is ddlWebPages. How can I accomplish this?

Here is my markup code for the Grid:
<telerik:RadGrid ID="RadGridwebpagemanagement" CssClass="webpageManagementGrid" MasterTableView-DataKeyNames="ID" runat="server"
            AllowFilteringByColumn="True" AllowSorting="True"
            GroupPanelPosition="Top"  
            OnNeedDataSource="RadGridwebpagemanagement_NeedDataSource"
            OnUpdateCommand="RadGridwebpagemanagement_UpdateCommand">
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New Webpage" 
                 InsertItemPageIndexAction="ShowItemOnCurrentPage">
 
                <columns>
                     
 
                    <telerik:GridBoundColumn DataField="webpage_name" HeaderText="Web Page" UniqueName="webpage_name" ItemStyle-Font-Names="Arial" ItemStyle-Font-Bold="true"
                                FilterControlWidth="150px">
                                <HeaderStyle Width="200px" Font-Names="Arial" />
                                <ItemStyle Width="200px" />
                    </telerik:GridBoundColumn>
 
                    <telerik:GridCheckBoxColumn DataField="add_privledge" HeaderText="Allow Adds" UniqueName="add_privledge"
                                FilterControlWidth="120px">               
                                <HeaderStyle Width="120px" Font-Names="Arial" />
                                <ItemStyle Width="120px" />
                    </telerik:GridCheckBoxColumn>
                     
                    <telerik:GridCheckBoxColumn DataField="edit_privledge" HeaderText="Allow Edits" UniqueName="edit_privledge"
                                FilterControlWidth="120px">               
                                <HeaderStyle Width="120px" Font-Names="Arial" />
                                <ItemStyle Width="120px" />
                   </telerik:GridCheckBoxColumn>
 
                     <telerik:GridCheckBoxColumn DataField="delete_privledge" HeaderText="Allow Deletes" UniqueName="delete_privledge"
                              FilterControlWidth="120px">               
                                <HeaderStyle Width="120px" Font-Names="Arial" />
                                <ItemStyle Width="120px" />
                    </telerik:GridCheckBoxColumn>                  
 
                   <telerik:GridEditCommandColumn ButtonType="LinkButton" EditText="Edit" CancelText="Cancel" ItemStyle-Width="50px" HeaderStyle-Width="50px" FilterControlWidth="50px" />
                   <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="LinkButton" Text="Delete" CommandName="Delete" ItemStyle-Width="50px" HeaderStyle-Width="50px" FilterControlWidth="50px" />
                     
                </columns>
                <EditFormSettings EditFormType="Template">
                     
                    <FormTemplate>
                        <div id="divGridEdit" class="divGrid">
                            <b>Add New Role to Webpage Association</b>
                            <br /><br />
                            <table>
 
                                <tr>
                                    <td><asp:Label Text="Web Page:" runat="server"></asp:Label></td>
                                    <td><asp:DropDownList ID="ddlWebPages" runat="server"></asp:DropDownList></td>
                                </tr>
                                <tr>
                                     <td><asp:Label Text="Allow Add:" runat="server"></asp:Label></td>
                                     <td><asp:CheckBox ID="chkboxAllowAdd" Checked='<%# Bind("add_privledge") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                     <td><asp:Label Text="Allow Edit:" runat="server"></asp:Label></td>
                                     <td><asp:CheckBox ID="chkboxAllowEdit" Checked='<%# Bind("add_privledge") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                     <td><asp:Label Text="Allow Delete:" runat="server"></asp:Label></td>
                                     <td><asp:CheckBox ID="chkboxDelete" Checked='<%# Bind("add_privledge") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><br /></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td><asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                        CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'  runat="server" /></td>
                                    <td><asp:Button ID="btnCancel" Text="Cancel" runat="server" CommandName="Cancel" CausesValidation="false" /></td>
                                </tr>
                            </table>
                        </div>                     
                    </FormTemplate>
 
                </EditFormSettings>
                
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowDblClick="rowDblClick" />
            </ClientSettings>
                
        </telerik:RadGrid>


David
Top achievements
Rank 1
 answered on 12 Feb 2015
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?