Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views

hi

this is srikanth

When I move my mouse around on the grid there is a vertical scroll bar which appears and disappears very fast.

<telerik:RadGrid ID="RG" Skin="WebBlue" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EnableTheming="True" OnItemCreated="RG_ItemCreated" OnSelectedIndexChanged="RG_SelectedIndexChanged"
                                                            AllowMultiRowSelection="True" OnItemDataBound="RG_ItemDataBound" AllowSorting="true"
                                                            OnPreRender="RG_PreRender" OnNeedDataSource="RG_NeedDataSource">
                                                            <MasterTableView HierarchyLoadMode="Client" TableLayout=fixed  ClientDataKeyNames="InvPrimaryId"
                                                                AllowSorting="true" Width="800px">
                                                                <NestedViewTemplate>
                                                                    <asp:Panel ID="pnlnestedview" runat="server">
                                                                        <table ondblclick="RadGrid1_OnRowDblClick()">
                                                                            <td style="width: 2px">
                                                                            </td>
                                                                            <td>
                                                                                <table class="CustomGridTableBorder" width="650px" style="background: window">
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH1" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD1" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH2" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD2" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH3" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD3" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH4" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD4" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH5" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD5" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH6" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD6" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </NestedViewTemplate>
                                                                <ExpandCollapseColumn Visible="True">
                                                                </ExpandCollapseColumn>
                                                                <PagerStyle AlwaysVisible="True" />
                                                                <RowIndicatorColumn Visible="true">
                                                                </RowIndicatorColumn>
                                                            </MasterTableView>
                                                            <PagerStyle AlwaysVisible="True" />
                                                            <HeaderStyle CssClass="RadGridHeader" />
                                                            <ItemStyle CssClass="RadGridItem" />
                                                            <AlternatingItemStyle CssClass="RadGridAlterNativeItem" />
                                                            <ClientSettings>
                                                                <ClientEvents OnHierarchyExpanding="RadGrid1_HierarchyExpanding" OnRowSelecting="RadGrid1_OnRowSelecting"
                                                                    OnRowDeselecting="RadGrid1_OnRowDeselecting" OnRowDblClick="RadGrid1_OnRowDblClick" OnGridCreated="GridCreated"   />
                                                                <Selecting AllowRowSelect="True" />
                                                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1" >
                                                                </Scrolling>
                                                            </ClientSettings>
                                                        </telerik:RadGrid>


thanks and regards
srikanth.n


Pavlina
Telerik team
 answered on 03 Jun 2010
1 answer
150 views
I've got a sliding pane on a page which contains a search box and radGrid.  The user can carry out a search and when they select an entry from the grid I fire the SelectedIndexChanged event to populate the main content pane with the results.

What I would like to do is once the results are populated is then automatically close the sliding pane from the code behind but I cannot find an option to do this - does a method exist?

Cheers
Cliff
Tsvetie
Telerik team
 answered on 03 Jun 2010
1 answer
83 views
Hi,

Somehow i do not get the following scenario to work:

Within a RadPane I have 2 usercontrols. Each usercontrol contains a RadAjaxPanel that surrounds a RadGrid and a RadAjaxLoadingPanel that shows loading progress. Based on a client-side javascript event  one or the other RadAjaxPanel's ajaxRequest methods will be called and the enclosed grid will be loaded with data from a database.

The problem is that only the first defined usercontrol will show a loading panel and displays the data. How can I solve this problem ?

page code containing the usercontrol definitions:

 

 

 

<telerik:RadPane ID="TelerikSearch_Level2BottomRadPane" runat="server" Scrolling="None">

 

 

 

<Control:TelerikDocGrid runat="server" Id = "TelerikDocGrid_Control"/>

 

 

 

<Control:TelerikCompGrid runat="server" Id = "TelerikCompGrid_Control" />

 

 

 

</telerik:RadPane>


code TelerikDocGrid user control:

    function TelerikDocGrid_UpdateGrid(e) {  
 
        //create ajaxrequest argument  
          
        var args = "CN_CLASS_CONCATENATE=" + e.CN_CLASS_CONCATENATE;  
        args += "#RelatedProjectObjectId=" + e.related_project_object_id;  
        args += "#RelatedProjectObjectType=" + e.related_project_object_type;  
        args += "#RevisionFilter=" + e.RevisionFilter;  
        if (e.Id != "") args += "#Id=" + e.Id;  
        if (e.Description != "") args += "#Description=" + e.Description;  
        if (e.CN_AUTHOR != "") args += "#CN_AUTHOR=" + e.CN_AUTHOR;  
        if (e.CN_CLIENT_DOCUMENT_ID != "") args += "#CN_CLIENT_DOCUMENT_ID=" + e.CN_CLIENT_DOCUMENT_ID;  
        if (e.CN_THIRD_PARTY_DOCUMENT_ID != "") args += "#CN_THIRD_PARTY_DOCUMENT_ID=" + e.CN_THIRD_PARTY_DOCUMENT_ID;  
        if (e.CN_AUTHOR_EXTERNAL != "") args += "#CN_AUTHOR_EXTERNAL=" + e.CN_AUTHOR_EXTERNAL;  
 
        var radpanel = $find("<%= TelerikDocGrid_RadAjaxPanel.ClientID %>");  
        radpanel.ajaxRequest(args);  
    }  
 
    function TelerikDocGrid_RowSelected(sender, eventArgs) {  
          
        //debugger   
 
        //var grid = sender;  
        //var MasterTable = grid.get_masterTableView();  
        //var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];  
        //var cell = MasterTable.getCellByColumnUniqueName(row, "column3");  
        //alert(cell.innerHTML); //here cell.innerHTML holds the value of the cell  
          
        //view document  
 
        var url = eventArgs.getDataKeyValue("DocumentViewUrl");  
        window.open(url);  
    }  
 
    function TelerikDocGrid_RowContextMenu(sender, eventArgs) {  
          
        currentDocumentViewUrl = eventArgs.getDataKeyValue("DocumentViewUrl");  
        currentDocumentDownloadUrl = eventArgs.getDataKeyValue("DocumentDownloadUrl");  
 
        var menu = $find("<%= TelerikDocGrid_Context_RadMenu.ClientID %>");  
        var evt = eventArgs.get_domEvent();  
        menu.show(evt);  
     
        //var index = eventArgs.get_itemIndexHierarchical();  
        //document.getElementById("radGridClickedRowIndex").value = index;  
 
        //sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);  
        evt.cancelBubble = true;  
        evt.returnValue = false;  
        if (evt.stopPropagation) {  
            evt.stopPropagation();  
            evt.preventDefault();  
        }  
    }  
 
 
    function TelerikDocGrid_RowContextMenu_ItemClicked(sender, eventArgs) {  
 
        var item = eventArgs.get_item();  
        var action = item.get_attributes().getAttribute("Action");  
 
        switch (action) {  
 
            case "view":  
                window.open(currentDocumentViewUrl);  
                break;  
            case "download":  
                window.open(currentDocumentDownloadUrl);  
        }  
    }  
 
</script> 
 
</telerik:RadCodeBlock> 
 
<telerik:RadAjaxLoadingPanel ID="TelerikDocGrid_RadAjaxLoadingPanel" runat="server" Skin="Default">  
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxPanel ID="TelerikDocGrid_RadAjaxPanel" runat="server"   
Height="100%" Width="100%" OnAjaxRequest="TelerikDocGrid_AjaxRequest"   
LoadingPanelID="TelerikDocGrid_RadAjaxLoadingPanel">  
 
    <telerik:RadGrid ID="TelerikDocGrid_RadGrid" runat="server" AllowSorting="True"   
        GridLines="None" Width="100%" Height="100%"   
        OnNeedDataSource="TelerikDocGrid_RadGrid_NeedDataSource" ShowFooter="True" 
        EnableEmbeddedSkins="true">  
        <ClientSettings Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true"   
        EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">  
            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            <Selecting AllowRowSelect="true" /> 
            <ClientEvents OnRowSelected="TelerikDocGrid_RowSelected" OnRowContextMenu="TelerikDocGrid_RowContextMenu"/>  
        </ClientSettings> 
        <MasterTableView AutoGenerateColumns="False" ShowFooter="True"   
        TableLayout="Fixed" ClientDataKeyNames="DocumentViewUrl,DocumentDownloadUrl">  
            <Columns> 
                <telerik:GridBoundColumn DataField="ClassName"   
                    HeaderText="Document" UniqueName="column3" Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="TypeIconUrl"   
                    HeaderText="Document" UniqueName="column4"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StateText"   
                    HeaderText="Document" UniqueName="column5"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StateIconUrl"   
                    HeaderText="Document" UniqueName="column6"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Author"   
                    HeaderText="Owner" UniqueName="column8"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Department"   
                    HeaderText="Department" UniqueName="column9"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn HeaderText="Document" UniqueName="TemplateColumn"   
                DataField="DocumentName" Aggregate="Count" FooterText="Number of documents found: "   
                SortExpression="DocumentName" ItemStyle-Wrap="false">  
                    <ItemTemplate> 
                        <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("ClassName") %>'   
                        ImageUrl='<%# Eval("TypeIconUrl") %>' ToolTip='<%# Eval("ClassName") %>' /> 
                        <asp:Image ID="Image2" runat="server" AlternateText='<%# Eval("StateText") %>'   
                        ImageUrl='<%# Eval("StateIconUrl") %>' ToolTip='<%# Eval("StateText") %>' />                                         
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("DocumentName") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="Description"   
                    HeaderText="Description" UniqueName="column1">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="MODIFICATION_DATE"   
                    HeaderText="Modified" UniqueName="column2" DataFormatString="{0:d}"   
                    DataType="System.DateTime" HeaderStyle-Width="100px"   
                    ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="CN_CLASS_LEVEL_LEAF"   
                    HeaderText="Classification" UniqueName="column" Visible="true">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="ViState"   
                    HeaderText="VI State" UniqueName="column7"  DataType="System.String"   
                    HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center"   
                    HeaderStyle-HorizontalAlign="Center">  
                </telerik:GridBoundColumn> 
            </Columns> 
            <NestedViewTemplate> 
                <div class="document-details">  
                    <ul> 
                        <li><label>Owner:</label><%# Eval("Author") %></li>  
                        <li><label>Department:</label><%# Eval("Department") %></li>  
                    </ul> 
                </div> 
            </NestedViewTemplate> 
        </MasterTableView> 
        <GroupingSettings  CaseSensitive="false"/>  
    </telerik:RadGrid> 
    <telerik:RadContextMenu ID="TelerikDocGrid_Context_RadMenu" runat="server"   
    Skin="Default" EnableRoundedCorners="true" OnClientItemClicked="TelerikDocGrid_RowContextMenu_ItemClicked">  
        <Items> 
            <telerik:RadMenuItem Text="View document" Action="view"></telerik:RadMenuItem> 
            <telerik:RadMenuItem Text="Download document" Action="download"></telerik:RadMenuItem> 
        </Items> 
    </telerik:RadContextMenu> 
</telerik:RadAjaxPanel> 

The code concerning the TelerikCompGrid user control is more or less the same as the TelerikDocGrid user control.

This one is bugging me for some time. Help is much appreciated.
Maria Ilieva
Telerik team
 answered on 03 Jun 2010
1 answer
100 views
Hi,
I think I've a problem with some styles.
The context menu of the scheduler control is not appearing at the position it should. If I right click on an event, the menu is appearing at the very top of the page.
The attached screen shots show that during the load of the the page, the items of the context menu appear very short beneath the scheduler.
<div class="panelContainer" runat="server"
    <%--<telerik:RadFormDecorator ID="radFormDecorator" runat="server" DecoratedControls="All" />--%> 
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server" Skin="Windows7" /> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" LoadingPanelID="LoadingPanel" > 
        <%--<telerik:RadSkinManager ID="RadSkinManager" Runat="server" Skin="Default" ShowChooser="True" Enabled="true"
            <TargetControls> 
                <telerik:TargetControl ControlID="RadAjaxPanel" Enabled="false" Skin="Default" /> 
                <telerik:TargetControl ControlID="LoadingPanel" Enabled="true" Skin="Windows7" /> 
            </TargetControls> 
        </telerik:RadSkinManager>--%> 
        <div class="tabsContainer" ID="TabsContainer" runat="server"
            <telerik:RadDockLayout ID="RadDockLayout" runat="server"
                <telerik:RadDockZone ID="RadDockZone" Runat="server" MinHeight="420px" Width="900px"
... 
</telerik:RadDockZone> 
            </telerik:RadDockLayout> 
      </div> 
      <div class="contentContainer"
         <div class="panelContent"
                <asp:Panel ID="Panel1" runat="server" Style="font: normal 12px Arial, Verdana, Sans-serif; color: #a6a896;"></asp:Panel> 
         </div> 
      </div> 
      <div class="controlsContainer"
            <asp:Label CssClass="ms-error" ID="ShowException" runat="server" /> 
      </div> 
    </telerik:RadAjaxPanel> 
</div> 

Additionally the selected style from the skinmanager is not applied to the loadingpanel, if I comment in the skinmanager.
Do you have any idea where I might have an error? The version I use is 2010.1.519.35

Thank you
Greetings from Germany
René
T. Tsonev
Telerik team
 answered on 03 Jun 2010
3 answers
112 views
I have tried to follow your remval instructions but no matter what I do after retracting the solution, I get the following error when loading the front page :

An error occurred during the processing of . Could not load file or assembly 'RadEditorSharePoint, Version=4.5.3.0.........

I have tried editing the publishing template that does not seem to help, please advise!

Stanimir
Telerik team
 answered on 03 Jun 2010
1 answer
127 views
I am trying to implement drag and drop functionality for a single RadGrid. My RadGrid is bound as follows:

       private void RetrieveData() 
        { 
            ////first retrieve projects 
            List<UIProject> projects = RetrieveProjects(); 
 
            projects.ForEach(a => 
            { 
                a.Features = (from u in Helper.DataContextFromWeb.MagUserstories 
                              where u.MagProjectId == a.ProjectId && u.Statuscode == 1 
                              orderby u.MagTitle 
                              select new UIFeature 
                              { 
                                  FeatureId = u.MagUserstoryId, 
                                  FeatureName = u.MagTitle 
                              }).ToList(); 
 
                a.Features.ForEach(b => 
                { 
                    b.Tasks = (from t in Helper.DataContextFromWeb.MagTasks 
                               where t.MagUserStoryId == b.FeatureId && t.Statuscode == 1 
                               orderby t.MagTitle 
                               select new UITask 
                               { 
                                   TaskName = t.MagTitle, 
                                   ActualHours = t.MagActualTime, 
                                   EstimatedHours = t.MagEstimatedTime, 
                                   //Status =  
                                   //Owner =  
                               }).ToList(); 
                }); 
            }); 
 
            BindMasterBackLog(projects); 
        } 
 
        private void BindMasterBackLog(List<UIProject> projects) 
        { 
            this.masterbacklog.DataSource = projects; 
            this.masterbacklog.DataMember = MagProject.Fields.MagProjectId; 
            this.masterbacklog.DataBind(); 
        } 
Data is retrieved from Microsoft Dynamics CRM and displayed in the grid correctly. Now, I am trying to implement the server-side onRowDrop event handler. The line below is giving me an "Index was out of range. Must be non-negative and less than the size of the collection" error. Could this be due to the way that I have bound the RadGrid? Please help.

UIProject project = RetrieveProject(projects, (Guid)e.DestDataItem.GetDataKeyValue("ProjectId")); 



Radoslav
Telerik team
 answered on 03 Jun 2010
1 answer
171 views
So I have a very simple RadGrid (no heirarchy) and a very simple RadTreeView. I followed the code example in one of the demos I cannot seem to find now. But here are the oddities in my situation:
  1. Everything about the RadTreeView seems to work just fine.
  2. The RadGrid Columns are created programtically whilst the rest of the radGrad is done design time.
  3. Eight of the thirteen or so columns are GridTemplateColumns.

The page keeps giving me an error after the page has rendered in the browser when it tries to seemingly instantiate this simple custom remove link. The error comes in the line here and caused by the fact that cItem.DataItem has a null value. Keep in mind the code has passed through the same code path twice already (prior to the rendering) and it is not until this third time (post-render) that the cItem.DateItem is set to nul. Another interesting note, the KeyValues remains unchanged ( KeyValues "{BuildGuid:\"7278f75e-4712-8f38-c598-b9a144c2a9fc\"}" string) in all three passes through the code path during the life cycle of the page.

Link.CommandArgument = (string)((DataRowView)cItem.DataItem)["BuildGuid"].ToString(); 

Here is the entire template object:

    public partial class BuildRemoveLinkButton : ITemplate  
    {  
        protected LinkButton Link;  
        private string ColumnName;  
 
        public BuildRemoveLinkButton(string ColumnNameInput)  
        {  
            this.ColumnName = ColumnNameInput;  
        }  
 
        public void InstantiateIn(Control container)  
        {  
            GridDataItem cItem = container.Parent as GridDataItem;  
            if (cItem != null)  
            {  
                Link = new LinkButton();  
                Link.Text = "remove";  
                Link.ToolTip = "Remove this build from the view";  
                Link.CommandArgument = (string)((DataRowView)cItem.DataItem)["BuildGuid"].ToString();  
                Link.ID = String.Format("Remove-{0}"this.ColumnName);  
                Link.CommandName = ColumnName;  
                container.Controls.Add(Link);  
            }  
        }  
    } 

Just to remind you, the page and RadGrid have already rendered in the browser. Here is the RadGrid defintion:

<telerik:RadGrid ID="CompareGrid" runat="server" AutoGenerateColumns="false" 
    ShowStatusBar="true" AllowSorting="true" OnNeedDataSource="CompareGrid_NeedDataSource" 
    OnItemCommand="CompareGrid_ItemCommand" EnableViewState="false">  
    <MasterTableView DataKeyNames="BuildGuid" Width="680" CommandItemDisplay="Top" 
        EnableColumnsViewState="false">  
        <HeaderStyle HorizontalAlign="Center"/>  
        <ItemStyle HorizontalAlign="Center" /> 
        <AlternatingItemStyle HorizontalAlign="Center" /> 
        <CommandItemTemplate> 
            <telerik:RadToolBar ID="CompareToolBar" runat="server" 
                OnButtonClick="CompareToolBar_OnButtonClick">  
                <Items> 
                    <telerik:RadToolBarButton  
                        Text="Add all builds from tree" 
                        CommandName="ShowAll" /> 
                    <telerik:RadToolBarButton IsSeparator="true" /> 
                    <telerik:RadToolBarButton  
                        Text="Remove all builds from grid" 
                        CommandName="ShowAll" /> 
                </Items> 
            </telerik:RadToolBar> 
        </CommandItemTemplate> 
    </MasterTableView> 
    <ClientSettings> 
        <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
        <ClientEvents OnColumnCreated="GridCreated" /> 
    </ClientSettings> 
</telerik:RadGrid> 

Here also is the column creation code which is called during Page_Init:

    private void CompareGrid_DefineGrid()  
    {  
        // Create the columns for the Grid.  
 
        // Add LinkButton column.  
        GridTemplateColumn removeColumn = new GridTemplateColumn();  
        removeColumn.ItemTemplate = new BuildRemoveLinkButton("BuildRowRemove");  
        removeColumn.UniqueName = "BuildRowRemove";  
        removeColumn.DataField = "BuildRowRemove";  
        CompareGrid.MasterTableView.Columns.Add(removeColumn);  
 
        // Add columns programtically.  
        GridBoundColumn boundColumn = new GridBoundColumn();  
        boundColumn.UniqueName = "BuildName";  
        boundColumn.DataField = "BuildName";  
        boundColumn.HeaderText = "Build Name";  
        CompareGrid.MasterTableView.Columns.Add(boundColumn);  
 
        // Add checkbox column.  
        GridTemplateColumn checkColumn = new GridTemplateColumn();  
        checkColumn.HeaderTemplate = new HeaderCheckBox();  
        checkColumn.ItemTemplate = new BuildSelectCheckBox("BuildSelect");  
        checkColumn.UniqueName = "BuildSelect";  
        checkColumn.HeaderText = "Build Select";  
        checkColumn.DataField = "BuildSelect";  
        CompareGrid.MasterTableView.Columns.Add(checkColumn);  
 
        // Add build guid hidden column.  
        boundColumn = new GridBoundColumn();  
        boundColumn.UniqueName = "BuildGuid";  
        boundColumn.DataField = "BuildGuid";  
        boundColumn.Display = false;  
        boundColumn.HeaderText = "Build Guid";  
        CompareGrid.MasterTableView.Columns.Add(boundColumn);  
 
        // Add columns for each gate.  
        GridTemplateColumn buttonColumn;  
        foreach (GateDefinition definition in RIGates.Gates)  
        {  
            buttonColumn = new GridTemplateColumn();  
            buttonColumn.ItemTemplate = new GateResultImageButton(definition.DataName);  
            buttonColumn.HeaderTemplate = new GateCompareLinkButton(definition.DataName, definition.Name);  
            buttonColumn.UniqueName = definition.DataName;  
            buttonColumn.DataField = definition.DataName;  
            buttonColumn.Reorderable = true;  
            CompareGrid.MasterTableView.Columns.Add(buttonColumn);  
        }  
    } 

Finally, here is the call stack causeing the error after the page has rendered...
>   BuildQuality.DLL!BuildQuality.Templates.BuildRemoveLinkButton.InstantiateIn(System.Web.UI.Control container = {Telerik.Web.UI.GridTableCell}) Line 53   C#  
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridTemplateColumn.InitializeCell(System.Web.UI.WebControls.TableCell cell = {Telerik.Web.UI.GridTableCell}, int columnIndex = 2, Telerik.Web.UI.GridItem inItem = {Telerik.Web.UI.GridDataItem}) + 0x23d bytes     
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridItem.Initialize(Telerik.Web.UI.GridColumn[] columns = {Telerik.Web.UI.GridColumn[16]}) + 0x91 bytes     
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridItem.SetupItem(bool dataBind = false, object dataItem = null, Telerik.Web.UI.GridColumn[] columns = {Telerik.Web.UI.GridColumn[16]}, System.Web.UI.ControlCollection rows = {System.Web.UI.WebControls.Table.RowControlCollection}) + 0xdb bytes    
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridItemBuilder.InitializeItem(int dataSourceIndex = 0, out string nextItemHierarchicalIndex = "0", out bool itemIsInEditMode = false) + 0xfc bytes     
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridItemBuilder.CreateItems(Telerik.Web.UI.GridGroupingContext group = {Telerik.Web.UI.GridGroupingContext}) + 0x243 bytes      
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.CreateItems(System.Collections.IEnumerator enumerator = {Telerik.Web.UI.GridDummyDataSource.GridDummyDataSourceEnumerator}, Telerik.Web.UI.GridColumn[] columns = {Telerik.Web.UI.GridColumn[16]}, System.Web.UI.ControlCollection controls = {System.Web.UI.WebControls.Table.RowControlCollection}) + 0xc2 bytes    
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.CreateControlHierarchy(bool useDataSource = false) + 0x647 bytes      
    Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.CreateChildControls(System.Collections.IEnumerable dataSource = {System.Web.UI.WebControls.DummyDataSource}, bool useDataSource = false) + 0x33a bytes    
    System.Web.dll!System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() + 0xa2 bytes     
    System.Web.dll!System.Web.UI.Control.EnsureChildControls() + 0x67 bytes   
    System.Web.dll!System.Web.UI.Control.FindControl(string id = "CompareGrid$ctl00$ctl02$ctl00$CompareToolBar", int pathOffset = 18) + 0x15 bytes    
    System.Web.dll!System.Web.UI.Control.FindControl(string id, int pathOffset) + 0x16e bytes     
    System.Web.dll!System.Web.UI.Control.FindControl(string id, int pathOffset) + 0x16e bytes     
    System.Web.dll!System.Web.UI.Page.FindControl(string id) + 0x27 bytes     
    System.Web.dll!System.Web.UI.Page.ProcessPostData(System.Collections.Specialized.NameValueCollection postData, bool fBeforeLoad = true) + 0x2c6 bytes     
    System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint = true) + 0x36f bytes   
    System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint = true) + 0x8d bytes   
    System.Web.dll!System.Web.UI.Page.ProcessRequest() + 0x4f bytes   
    System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) + 0x16 bytes     
    System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) + 0x32 bytes     
    App_Web_dsf31s5x.dll!ASP.default_aspx.ProcessRequest(System.Web.HttpContext context = {System.Web.HttpContext}) + 0x33 bytes    C#  
    System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x65 bytes   
    System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.CallHandlerExecutionStep}, ref bool completedSynchronously = true) + 0x4c bytes    
    System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x13e bytes    
    System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) + 0xad bytes    
    System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr = {Microsoft.VisualStudio.WebHost.Request}) + 0x1a2 bytes    
    System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) + 0x7d bytes    
    System.Web.dll!System.Web.HttpRuntime.ProcessRequest(System.Web.HttpWorkerRequest wr) + 0x47 bytes    
    WebDev.WebHost40.dll!Microsoft.VisualStudio.WebHost.Request.Process() + 0x17b bytes   
    WebDev.WebHost40.dll!Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Microsoft.VisualStudio.WebHost.Connection conn = {System.Runtime.Remoting.Proxies.__TransparentProxy}) + 0x6c bytes   
    [Appdomain Transition]    
    WebDev.WebHost40.dll!Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(object acceptedSocket) + 0x83 bytes     
    mscorlib.dll!System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(object state) + 0x2d bytes   
    mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes   
    [Native to Managed Transition]    
    [Managed to Native Transition]    
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6a bytes      
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0x7e bytes      
    mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() + 0x5a bytes   
    mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x147 bytes    
    mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() + 0x2d bytes      
    [Native to Managed Transition]    
 

 Any help/insights someone may have will be greatly appreciated.
Yavor
Telerik team
 answered on 03 Jun 2010
1 answer
151 views
My page :

 <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Textbox, Textarea,Buttons,Scrollbars" /> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">    
    <telerik:AjaxSetting AjaxControlID="toolbar">  
                <UpdatedControls> 
                   <telerik:AjaxUpdatedControl ControlID="pnlDetail" LoadingPanelID="rlpDefault" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="rlpDefault" runat="server" /> 
 
 <telerik:RadToolBar ID="toolbar" runat="server" Width="100%" > 
   <%--- toolbar content   ----%> 
 </telerik:RadToolBar> 
 
<telerik:RadWindow  ID="rwDetail" ...> 
  <ContentTemplate> 
  <asp:Panel id="pnlDetail" runat="server">
   <asp:TextBox ID="tbxGridId" runat="server" Width="250px"></asp:TextBox> 
   <%--- other Content ---%> 
   </asp:Panel>
</ContentTemplate> 
<telerik:RadWindow>   
       
 
 
Click toolbar button , I use client script to  open the window first.  The button's postback is true, then on server side ,get data from database to update the detail panel.  The Code works well.
But the FormDecorator can  not apply to the textbox correctly. (see the attached file)

if I open the window by sending the  javascript to client after update the detail panel on server side, the textbox display correctly.
but this is not I want , because I want the user can see the loading procedure.

any suggestion?
Bozhidar
Telerik team
 answered on 03 Jun 2010
3 answers
175 views
Hi

Changing the width of the Hyperlink Manager / LinkManager.ascx, has no effect.

radEditor.DialogOpener.Width = new Unit(450, UnitType.Pixel);

or

radEditor.DialogOpener.Window.Width = new Unit(450, UnitType.Pixel);

The LinkManager.ascx is customized

Is it possible to change the width ?

/Erik K
Rumen
Telerik team
 answered on 03 Jun 2010
2 answers
142 views
Hi All

I am using Radeditor for one of my applications. I have added toolbar item to radeditor. But the issue is the realfontsize shows only font size in pixels. Is there a way around to get the font size in points.

Any help will be much appreciated.

Thanks
Ricky
Ricky
Top achievements
Rank 2
 answered on 03 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?