Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hello,
I'm trying to add a RadPivotGrid to an MVC project.  I followed the pattern mentioned here for regular Grids: http://www.telerik.com/help/aspnet-ajax/mvc-radgrid-databinding.html, but when I try to bind, I get this error: "Script controls may not be registered after PreRender".

Is it possible to do this?  This is what my view looks like:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Report/Reports.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <%
        RadPivotGrid1.DataSource = ViewData["GridData"];
        RadPivotGrid1.DataBind();
    %>
    <telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <br />
        <br />

        <telerik:RadPivotGrid AllowPaging="True" Width="800px" Height="400px"
            ID="RadPivotGrid1" runat="server" ColumnHeaderZoneText="ColumnHeaderZone">
            <ClientSettings EnableFieldsDragDrop="true">
                <Scrolling AllowVerticalScroll="true"></Scrolling>
            </ClientSettings>
            <Fields>
                <telerik:PivotGridRowField DataField="Field1">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowField DataField="Field2">
                </telerik:PivotGridRowField>
                <telerik:PivotGridColumnField DataField="Field3">
                </telerik:PivotGridColumnField>
            </Fields>
            <SortExpressions>
                <telerik:PivotGridSortExpression FieldName="Field1" SortOrder="Descending"></telerik:PivotGridSortExpression>
            </SortExpressions>
        </telerik:RadPivotGrid>
    </telerik:RadAjaxPanel>

        

</asp:Content>


Marin
Telerik team
 answered on 02 Aug 2013
4 answers
189 views
Hello,

Is it possible to combine checkbox and autocomplete functionality in a RadComboBox?

We keep receiving the following error when we type in the comboxbox for the autocomplete functionality:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."

The following is the html for the related control:
<telerik:RadComboBox ID="cboProductCode" Filter="Contains" runat="server" Width="300px" MarkFirstMatch="true" EnableLoadOnDemand="true" CheckBoxes="true" DropDownAutoWidth="Disabled"></telerik:RadComboBox>

If it is possible, can you please provide suggestions on improving performance of the autocomplete functionality.

Thank You Very Much for your Assistance!
Plamen
Telerik team
 answered on 02 Aug 2013
5 answers
358 views
Hi,

The telerik demo for radeditor custom dialogs "http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx" is not working on the safari and chrome browser.In detail, when "Insert special link" button is clicked, nothing happened in safari and chrome although a dialog box is displayed in firefox ,IE8,IE7.


I am currently using this technique to load my custom dialog. Is there any solution?

Best Regards,
THA
-DJ-
Top achievements
Rank 1
 answered on 02 Aug 2013
1 answer
117 views
I have a series of dynamically created raddocks, that are dynamically placed in different RadDock zones. If the user presses "Save" I am trying to cycle through each raddockzone and then save information from them in a database. See below.

private void SaveWorkspacePanels(RadDockZone dockzone,int workspaceid,int panellocation)
    {
        try
        {
            BusinessLayer BL=new BusinessLayer();
            DemandSolutions_WorkspacePanel WorkspacePanel;
            string source;
            string [] parsed;
            string panelid;
            string paneltype;
            foreach(RadDock dock in dockzone.Docks)
            {
                WorkspacePanel=new DemandSolutions_WorkspacePanel();
                source=dock.Tag;
                parsed=source.Split(' ');
                panelid=parsed[0];
                paneltype=parsed[1];
                WorkspacePanel.PanelID=Convert.ToInt32(panelid);
                WorkspacePanel.PanelLocation=panellocation;
                WorkspacePanel.WorkspaceID=workspaceid;
                BL.InsertWorkspacePanel(WorkspacePanel);
            }//End For-Each
        }
        catch(Exception ex)
        {
            DisplayMessage.InnerText="Problem with "+dockzone.ID+" "+ex.ToString();
        }
 
    }//End Function

The problem is if the RadDock is moved from another dockzone, it is not detected and therefor not saved...any thoughts.

Here is how the RadDock is created

RadDock dock=new RadDock();
dock.DockMode = DockMode.Docked;
dock.ID= string.Format("RadDock{0}", Guid.NewGuid().ToString().Replace('-', 'a'));
dock.Tag=panelID+" "+controlType;
dock.Title=panelTitle;
dock.Text=panelDescription;
dock.Width=Unit.Percentage(100);
dock.AutoPostBack=true;
dock.Commands.Add(new DockExpandCollapseCommand());




Michael
Slav
Telerik team
 answered on 02 Aug 2013
3 answers
113 views
Hello!

I am hoping for whatever column header i click to then be sorted (Asc,Des,None)
Currently this works on the first header click, but then after selecting a different column, the wrong header is sorted!
Here is my click order:
Click Col 1, Col 1 sorts.
Click Col 2, Col 3 sorts.
Click Col 2, Col 2 sorts.
Click Col 3, Col 4 sorts.
Click Col 3, Col 3 sorts.
Click Col 1, Col 1 sorts!

Any tips on what might be happening would be great! I have a feeling it may be related to my binding causing a loss of header order?

C#:

protected void Page_Init(object sender, EventArgs e)
      {
          if (IsPostBack)
          {
              pogrid.DataSource = null;
              pogrid.Rebind();
          }
          else
          {
              //... set filteredPOList
              pogrid.DataSource = null;
              pogrid.Rebind();
 
 
public void Selection_Changed(object sender, EventArgs e)
      {
          //...
      }
 
      protected void Grid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
      {
          pogrid.DataSource = filteredPOList;
           
      }


ASPX:  
<telerik:RadGrid  ID="pogrid" runat="server" EnableViewState="true" AutoGenerateColumns="False" OnNeedDataSource="Grid_NeedDataSource" AllowFilteringByColumn="True"  AllowSorting="True"
ViewStateMode="Enabled" CellSpacing="0" OnSelectedIndexChanged="Selection_Changed" GridLines="None" >
                <GroupingSettings CaseSensitive="false"  />
                <ClientSettings EnableRowHoverStyle="True">
                <Selecting AllowRowSelect="True" ></Selecting>
                <Scrolling  UseStaticHeaders="True" AllowScroll="True" SaveScrollPosition="True" ScrollHeight="300px">     </Scrolling>
                <Resizing AllowColumnResize="True"></Resizing>
                </ClientSettings>
            <MasterTableView DataKeyNames="poId">
            <Columns>
                <telerik:GridBoundColumn HeaderStyle-Width="20%" HeaderStyle-Font-Bold="true" HeaderText="Promotion Number" UniqueName="PromotionNumber" DataField="PromotionNumber" SortExpression="PromotionNumber"
                  FilterDelay="2000" CurrentFilterFunction="StartsWith" FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="40%"  HeaderStyle-Font-Bold="true" HeaderText="Promotion Name" UniqueName="PromotionName" DataField="PromotionName" SortExpression="PromotionName"
                  FilterDelay="2000" CurrentFilterFunction="Contains"  FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="20%"  HeaderStyle-Font-Bold="true" HeaderText="Pep Contact" UniqueName="PepContact" DataField="PepContact" SortExpression="PepContact"
                  FilterDelay="2000" CurrentFilterFunction="Contains" FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="20%"  HeaderStyle-Font-Bold="true" HeaderText="PO Name" UniqueName="POName" DataField="POName" SortExpression="POName"
                  FilterDelay="2000" CurrentFilterFunction="Contains" FilterControlWidth="80%" ></telerik:GridBoundColumn>
            </Columns>
            </MasterTableView>
    </telerik:RadGrid>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="pogrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pogrid" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>

Joe
Top achievements
Rank 1
 answered on 02 Aug 2013
1 answer
189 views
We have the following problem when paging a grid that is contained within a node of a radtreeview. Loading the first time this load grid smoothly (Figure 1). After trying to page the grid that does not trigger the event NeedDataSource (Figure 2) causing all grids disappears. Attached sample project. I can support.
Princy
Top achievements
Rank 2
 answered on 02 Aug 2013
1 answer
114 views
Hi, when using the RadFileExplorer with a custom file browser provider to provide access to physical folders outside the application root, is there a way of putting the mappings into your web.config instead of having them in a separate .mapping file? Just so that there's one less configuration file to worry about when deploying to live servers.

Thanks

Doug
Vessy
Telerik team
 answered on 02 Aug 2013
1 answer
166 views
Hi I'm trying to set grid width to auto but div border is always 100%
i tried this:

.rgMasterTable

{
    width: auto !important;
}

 

but I get what is on the image

if I try to overwrite the style in the master table view it renders the width attribute twice, like this:
<table cellspacing="0" class="rgMasterTable" id="RadGrid1_ctl00" style="width:100%;width:auto;table-layout:auto;empty-cells:show;">

I want that the colums width adjusts to the content, It works if I put the grid inside a table td but there must be a better way
also works inside a div with display:inline-table but not in IE7
I'm using Q1 2010

please advise
thanks!

code:

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
            onneeddatasource="RadGrid1_NeedDataSource">
            <MasterTableView style="width:auto;">
            </MasterTableView>
        </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 02 Aug 2013
4 answers
1.4K+ views
Hi, Can you please:
Am using 2 radio butons. (Edit and View).
When the Radio button View is selected the Controls are Disabled. When in Edot mode Control are Enable.
Among the Control we have RadEditor. When user selects Edit Radio Button , the RadEditor is get Enlagred the the Tools (FontName,Size etc) VERTICALLY.Its Enlarging Vertically for the 2 time edit Clcik.

Please find attached Images.

Can you Please help.


Shinu
Top achievements
Rank 2
 answered on 02 Aug 2013
3 answers
83 views
Hi all,

I have this scenario:
- MasterPage with left side menu,
- center  RadAjaxPanel,
changing selection on left menu tree change content of the center page.
Also controls are loaded dynamically. I want handle errors accoured on server by displaying usercontrol. .
I try'd use  RadScriptManager.AsyncPostBackError and here load my usercontrol with error information, but no luck, Js exception is thrown

PageRequestManagerServerErrorException

with error from server. 

EnableEventValidation is set to "false" on the my MainPage.aspx

Thanks in advance rafalr
Maria Ilieva
Telerik team
 answered on 02 Aug 2013
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?