Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
Hi ,

Kindly look into the pictures .Here are the issuse i faced. Customer1.png is Parent Page with spilter control , the picture shows the bottom RadPane contents . This contains tow ListBox section named as  " Customer  Sales Rep " and "Customer Acc Rep"

On click of the " Select " button pop is shown using RadWindow as shown in " Customer Pop .png "
In the pop window i select some customer and click " save " , the RadListBox in the Parent Page has to filled , happening if the Page is reload we dont want to reload , we need to update only the RadListBox  using AJAX.


Kindly help us 
Can i have any sample application with requirement  with out parent page refresh

Genady Sergeev
Telerik team
 answered on 30 Jun 2010
1 answer
114 views
I've tried to copy everything from the online demo and try to make it work, but I cannot make it work.

I found the online demo description's script is different to the script in local demo file.


e.g. local file InsertSpecialLink

        Telerik.Web.UI.Editor.CommandList["InsertSpecialLink"] = function(commandName, editor, args) 
        { 
            var elem = editor.getSelectedElement(); //returns the selected element. 
 
            if (elem.tagName == "A"
            { 
                editor.selectElement(elem); 
                argument = elem.cloneNode(true); 
            } 
            else 
            { 
                var content = editor.getSelectionHtml(); 
                var link = editor.get_document().createElement("A"); 
                link.innerHTML = content; 
                argument = link; 
            } 
 
            var myCallbackFunction = function(sender, args) 
            { 
                editor.pasteHyperLink(args, "Insert Link"); 
            } 
 
            editor.showExternalDialog( 
            "InsertLink.aspx"
            argument, 
            270, 
            300, 
            myCallbackFunction, 
            null
            "Insert Link"
            true
            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, 
            false
            true); 
        }; 

Online demo description's script

    <script type="text/javascript"
    Telerik.Web.UI.Editor.CommandList["InsertSpecialLink"] = function(commandName, editor, args) 
    { 
       var elem = editor.getSelectedElement(); //returns the selected element. 
               
       if (elem.tagName == "A"
       { 
            editor.selectElement(elem); 
            argument = elem; 
       } 
       else 
       { 
            //remove links if present from the current selection - because of JS error thrown in IE 
            editor.fire("Unlink"); 
                 
            //remove Unlink command from the undo/redo list 
            var commandsManager = editor.get_commandsManager(); 
            var commandIndex = commandsManager.getCommandsToUndo().length - 1; 
            commandsManager.removeCommandAt(commandIndex); 
 
            var content = editor.getSelectionHtml(); 
 
            var link = editor.get_document().createElement("A"); 
 
            link.innerHTML = content; 
            argument = link;         
        } 
        
       var myCallbackFunction = function(sender, args) 
       { 
           editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)) 
       } 
        
       editor.showExternalDialog( 
            'InsertLink.aspx'
            argument, 
            270, 
            300, 
            myCallbackFunction, 
            null
            'Insert Link'
            true
            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, 
            false
            false); 
    }; 
    </script> 
 

When I tried different script, it never worked, the error I received error message "linkUrl.value is null", can you give a working version?



Dobromir
Telerik team
 answered on 30 Jun 2010
1 answer
179 views

On saving the contents of the editor to a database, I run a javascript function to make some changes to the Html in the editor content area.

I add inputs of type hidden using the code:

 

var jHidden = jDocument.createElement(

'input');

 

jHidden.type =

'hidden';

 

jHidden.id =

'PagePart';

 

jHidden.name =

'PagePart';

 

jHidden.value = pPagePartId;

jInputElements[jSubmit].parentNode.appendChild(jHidden);

In Internet Explorer 8, the Html created is:

<input type="hidden" id="label3" submitname="label3" value="Email:" />

In Firefox, it is:

<input type="hidden" id="label3" name="label3" value="Email:" />

Why does Internet Explorer insert the attribute submitname="label3" which does not appear in the Request.Form when the page is refreshed on Submit?

Your help would be much appreciated.

Thanking you in anticipation.

Roger

Dobromir
Telerik team
 answered on 30 Jun 2010
8 answers
498 views

Hi everybody

We are having a funny trouble when passing strings with apostrophe to our Telerik RadGrid's Filters. Here goes the scenario:

We have a Grid with a column called "RoomName" that shows a RadComboBox with different rooms (binded from the DB)

We want toset our telerik grids FilterExpression programmatically (on PAGE_LOAD time) with the following code. 

RadGrid1.AllowFilteringByColumn= true;

RadGrid1.MasterTableView.FilterExpression = string.Format("([RoomName]= '{0}')", VALUE);


This code works fineexcept when the VALUE contains an apostrophe. i.e: “Mikel’s Room”

In this case, the filter won't work and the grid will load all the Campaigns (without filtering)

Is thereany documented bug on this?

Pavlina
Telerik team
 answered on 30 Jun 2010
6 answers
162 views
Hello Team,

I have a RadComboBox that works fine as long as any postback events do not occur. But when a postback occurs, the width of combobox decreases and the styling is all messed up - additional "select" text is displayed on the right end and list items are displayed with a transparent background. I have tried the solutions found here, but were ineffectual:

http://www.telerik.com/support/kb/aspnet-ajax/combobox/radcombobox-changes-width-height.aspx
http://www.telerik.com/community/forums/aspnet/combobox/radcombo-width-changes-after-an-ajax-postback.aspx

The point here is that it doesn't happen for an AJAX postback - it happens only when entire page is reloaded.

Could you please provide a solution as we have to use RadComboBox across many pages in our application?

Thanks,
Aneesh Pulukkul
Jen
Top achievements
Rank 1
 answered on 30 Jun 2010
4 answers
139 views
My preloader is not displaying in the middle of the screen, can't figure out why not.

Here is my HTML:
(
<form id="frmDashboard" runat="server"
    <telerik:RadScriptManager ID="ScriptManagerDashboard" runat="server"
    </telerik:RadScriptManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" 
        Skin="Office2007" /> 
    <telerik:RadCodeBlock ID="RadCodeBlock0" runat="server"
 
        <script type="text/javascript"
            var hasChanges, inputs, dropdowns, editedRowNow; 
 
            function RowDblClick(sender, eventArgs) { 
                //if (0 == editedRowNow || null == editedRowNow) { 
                editedRowNow = eventArgs.get_itemIndexHierarchical(); 
                //} 
                if (eventArgs.getDataKeyValue("LeadPermission") != "Read") { 
                    $find("<%= dbgLeads.MasterTableView.ClientID %>").editItem(editedRowNow); 
                } 
                else { 
                    editedRowNow = null
                } 
            } 
 
            function GridCreated(sender, eventArgs) { 
                var gridElement = sender.get_element(); 
                var elementsToUse = []; 
                inputs = gridElement.getElementsByTagName("input"); 
                for (var i = 0; i < inputs.length; i++) { 
                    if (inputs[i].type.toLowerCase() == "hidden") { 
                        continue
                    } 
 
                    Array.add(elementsToUse, inputs[i]); 
                    inputs[i].onchange = TrackChanges; 
                } 
 
                dropdowns = gridElement.getElementsByTagName("select"); 
                for (var i = 0; i < dropdowns.length; i++) { 
                    dropdowns[i].onchange = TrackChanges; 
                } 
            } 
 
            function TrackChanges(e) { 
                hasChanges = true
            } 
 
            function refreshGrid(arg) { 
                if (!arg) { 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind"); 
                } 
            }                   
        </script> 
 
    </telerik:RadCodeBlock> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="dbgLeads" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
        <script type="text/javascript"
            function LoadCharts(sender, eventArgs) { 
                if (sender.get_collapsed() == false) { 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("UpdateAllCharts"); 
                } 
            } 
 
            function OpenWindow() { 
                var wnd = window.radopen("Popups/ConfigureGridColumnBehavior.aspx?UserGridName=dbgLeads&UserGridPage=AstonishResultsReporting.VPCDashboard", 'Configure Fields'); 
                return false
            } 
 
            function GetRadWindow() { 
                var oWindow = null
                if (window.radWindow) 
                    oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog       
                else if (window.frameElement.radWindow) 
                    oWindow = window.frameElement.radWindow; //IE (and Moz as well)       
                return oWindow; 
            } 
 
            function Close() { 
                GetRadWindow().Close(); 
            }                   
   
        </script> 
 
    </telerik:RadCodeBlock> 
    <div class="DashboardForm"
        <div class="formLineBreak"
            <asp:ImageButton ID="BtnExcelExport" ImageUrl="~/Images/exporttoexcel.gif" runat="server" 
                ToolTip="Export To Excel" OnClick="BtnExcelExport_Click" /> 
        </div> 
        <telerik:RadAjaxPanel ID="PolicyAjaxPanel" runat="server" LoadingPanelID="VPCPreloader"
            <telerik:RadWindowManager Behaviors="Close" runat="server" ID="ConfigureFields" Opacity="90" 
                ShowContentDuringLoad="true" KeepInScreenBounds="true" VisibleStatusbar="false" 
                Modal="true" Width="470" Height="350"
            </telerik:RadWindowManager> 
            <div class="DashboardFormInput"
                <label class="LeadFormLabel"
                    <strong>Select Lead Type:</strong></label> 
                <asp:CheckBox ID="chkProspect" runat="server" Text="Prospects" Checked="true" CssClass="LeadFormText" /> 
                <asp:CheckBox ID="chkActive" runat="server" Text="Active Leads" Checked="true" CssClass="LeadFormText" /> 
                <asp:CheckBox ID="chkActiveClient" runat="server" Text="Active Clients" Checked="true" 
                    CssClass="LeadFormText" /> 
                <label class="LeadFormLabel"
                    <strong>Policy Status:</strong></label> 
                <asp:RadioButton ID="rbtnActive" runat="server" Checked="true" GroupName="policyStatus" 
                    Text="Active" CssClass="LeadFormText" /> 
                <asp:RadioButton ID="rbtnInactive" runat="server" Checked="false" GroupName="policyStatus" 
                    Text="Inactive" CssClass="LeadFormText" /> 
                <label class="LeadFormLabel"
                    <strong>Date Filter:</strong></label> 
                <asp:DropDownList ID="ddlDateFilter" runat="server" CssClass="LeadFormText"
                    <asp:ListItem Selected="True" Text="30 Days Out" Value="30"></asp:ListItem> 
                    <asp:ListItem Selected="False" Text="60 Days Out" Value="60"></asp:ListItem> 
                    <asp:ListItem Selected="False" Text="90 Days Out" Value="90"></asp:ListItem> 
                    <asp:ListItem Selected="False" Text="120 Days Out" Value="120"></asp:ListItem> 
                </asp:DropDownList> 
            </div> 
            <br /> 
            <br /> 
            <div class="DashboardFormInput"
                <asp:Button ID="btnConfigureFields" runat="server" Text="Configure Columns" ToolTip="Brings up a control to display/hide columns of the grid" 
                    OnClientClick="return OpenWindow()" /> 
                &nbsp; 
                <asp:Button ID="btnGetData" Text="Get Latest Data" runat="server" OnClick="btnGetData_Click" /> 
                &nbsp; 
            </div> 
            <div class="SubMainContent"
                <telerik:RadGrid ID="dbgLeads" runat="server" AllowPaging="True" AllowSorting="True" 
                    ClientSettings-Scrolling-AllowScroll="false" AutoGenerateColumns="False" GridLines="None" 
                    Height="100%" Width="75%" Skin="Office2007" OnItemDataBound="dbgLeads_OnItemDataBound" 
                    OnNeedDataSource="dbgLeads_NeedDataSource" OnItemCommand="dbgLeads_ItemCommand" 
                    OnPreRender="dbgLeads_PreRender" ClientSettings-AllowColumnsReorder="true" ClientSettings-ReorderColumnsOnClient="true" 
                    ClientSettings-Selecting-AllowRowSelect="true" OnCreateColumnEditor="dbgLeads_OnCreateColumnEditor" 
                    ClientSettings-Resizing-AllowColumnResize="true" ShowGroupPanel="True"
                    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> 
                    <MasterTableView Name="LeadDetails" Height="100%" Width="100%" Font-Size="9px" Font-Names="Verdana" 
                        TableLayout="Auto" GroupLoadMode="Client" DataKeyNames="LeadId,PolicyId,FName,LName,LeadPermission,CompanyId" 
                        ClientDataKeyNames="LeadId,LeadPermission" AllowMultiColumnSorting="false" AllowNaturalSort="false" 
                        EditMode="InPlace"
                        <Columns> 
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Navigate" HeaderText="Go to Lead Details" 
                                Resizable="false" Reorderable="false" UniqueName="GoToLeadDetails" ImageUrl="~/Images/preview.gif" 
                                Text="View this lead details" ButtonCssClass="pointerMouseCursor" Groupable="false"
                                <HeaderStyle Width="45px" HorizontalAlign="Center" /> 
                                <ItemStyle Width="45px" HorizontalAlign="Center" /> 
                            </telerik:GridButtonColumn> 
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" 
                                Resizable="false" Reorderable="false" HeaderText="Quick Edit" Groupable="false"
                                <HeaderStyle Width="45px" HorizontalAlign="Center" /> 
                                <ItemStyle Width="45px" HorizontalAlign="Center" /> 
                            </telerik:GridEditCommandColumn> 
                            <telerik:GridBoundColumn DataField="RenewalDate" DataFormatString="{0:MM/dd/yy}" 
                                ColumnEditorID="GridTextBoxColumnEditor1" DataType="System.DateTime" HeaderText="Renewal Date" 
                                UniqueName="RenewalDate" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="90px" 
                                Resizable="false" ItemStyle-Width="90px" SortExpression="RenewalDate"
                                <HeaderStyle HorizontalAlign="Left" Width="90px"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridDropDownColumn UniqueName="AgentName" HeaderText="Agent Name" SortExpression="AgentName" 
                                Visible="false" ListTextField="description" ListValueField="LookupId" DataField="AgentName" 
                                HeaderStyle-Width="9%"
                                <HeaderStyle Width="9%"></HeaderStyle> 
                                <ItemStyle Width="9%" HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"
                                </ItemStyle> 
                            </telerik:GridDropDownColumn> 
                            <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company Name" UniqueName="CompanyName" 
                                ReadOnly="true" HeaderStyle-Width="7%" ItemStyle-Width="7%" SortExpression="CompanyName"
                                <HeaderStyle Width="7%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Wrap="true" Font-Names="Verdana" Font-Size="11px"
                                </ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="FName" HeaderText="First Name" UniqueName="FName" 
                                HeaderStyle-Width="5%" ColumnEditorID="GridTextBoxColumnEditorFirstName" ItemStyle-Width="5%" 
                                SortExpression="FName"
                                <HeaderStyle Width="5%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="10px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="LName" HeaderText="Last Name" UniqueName="LName" 
                                HeaderStyle-Width="5%" ColumnEditorID="GridTextBoxColumnEditorLastName" ItemStyle-Width="5%" 
                                SortExpression="LName"
                                <HeaderStyle Width="5%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridDropDownColumn UniqueName="PolicyType" HeaderText="Policy Type" SortExpression="PolicyType" 
                                ListTextField="description" ListValueField="LookupId" DataField="PolicyType" 
                                HeaderStyle-Width="9%" ItemStyle-Width="9%"
                                <HeaderStyle Width="9%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridDropDownColumn> 
                            <telerik:GridDropDownColumn UniqueName="LeadStatus" HeaderText="Lead Status" SortExpression="LeadStatus" 
                                ListTextField="description" ListValueField="LookupId" DataField="LeadStatus" 
                                HeaderStyle-Width="9%" ItemStyle-Width="9%"
                                <HeaderStyle Width="9%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridDropDownColumn> 
                            <telerik:GridDropDownColumn UniqueName="PolicyStatus" HeaderText="Policy Status" 
                                SortExpression="PolicyStatus" Visible="false" ListTextField="description" ListValueField="LookupId" 
                                DataField="PolicyStatus" HeaderStyle-Width="3%"
                                <HeaderStyle Width="3%"></HeaderStyle> 
                                <ItemStyle Width="3%" HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"
                                </ItemStyle> 
                            </telerik:GridDropDownColumn> 
                            <telerik:GridBoundColumn DataField="EmailAddress" HeaderText="Email To" UniqueName="EmailAddress" 
                                ColumnEditorID="GridTextBoxColumnEditorEmailAddress" HeaderStyle-Width="7%" ItemStyle-Width="7%" 
                                SortExpression="EmailAddress"
                                <HeaderStyle Width="7%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" UniqueName="Notes" 
                                ColumnEditorID="GridTextBoxColumnEditorNotes" HeaderStyle-Width="7%" ItemStyle-Width="7%" 
                                SortExpression="Notes"
                                <HeaderStyle Width="7%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridDropDownColumn UniqueName="MarketingSourceDesc" HeaderText="Marketing Source" 
                                ListTextField="description" ListValueField="LookupId" DataField="MarketingSourceDesc" 
                                HeaderStyle-Width="10%"
                                <HeaderStyle Width="10%"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridDropDownColumn> 
                            <telerik:GridBoundColumn DataField="LastActivity" HeaderText="Last Activity" UniqueName="LastActivity" 
                                ReadOnly="true" ItemStyle-Width="10%" SortExpression="LastActivity"
                                <ItemStyle HorizontalAlign="Left" Font-Names="Verdana" Font-Size="11px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                        <EditFormSettings> 
                            <EditColumn UniqueName="EditCommandColumn1"
                            </EditColumn> 
                        </EditFormSettings> 
                    </MasterTableView> 
                    <ClientSettings ReorderColumnsOnClient="true" AllowColumnsReorder="true" AllowDragToGroup="True"
                        <Selecting AllowRowSelect="True"></Selecting> 
                        <ClientEvents OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" /> 
                        <Resizing AllowColumnResize="True"></Resizing> 
                    </ClientSettings> 
                </telerik:RadGrid> 
                <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="70px" 
                    TextBoxStyle-CssClass="formFont" /> 
                <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditorEmailAddress" runat="server" 
                    TextBoxStyle-Width="90%" TextBoxStyle-CssClass="formFont" /> 
                <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditorNotes" runat="server" 
                    TextBoxStyle-Width="90%" TextBoxStyle-CssClass="formFont" /> 
                <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditorFirstName" runat="server" 
                    TextBoxStyle-Width="100%" TextBoxStyle-CssClass="formFont" /> 
                <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditorLastName" runat="server" 
                    TextBoxStyle-Width="100%" TextBoxStyle-CssClass="formFont" /> 
                <ucPL:Preloader ID="DashboardPreloader" runat="server" /> 
            </div> 
            <div class="DashboardFormInput"
                <asp:Label ID="totalRecordCount" runat="server" Text="" CssClass="LeadFormText"></asp:Label> 
                <asp:Label ID="leadRange" runat="server" Text="" CssClass="LeadFormText"></asp:Label> 
                <asp:Button ID="btnPrevious" runat="server" Text="Previous 250" Width="85px" OnClick="btnPrevious_Click" 
                    Visible="false" /> 
                <asp:Button ID="btnNext" runat="server" Text="Next 250" Width="85px" OnClick="btnNext_Click" 
                    Visible="false" /> 
            </div> 
        </telerik:RadAjaxPanel> 
    </div> 
    </form> 
)

I'm using a preloader user control:

Here is the HTML for the User control

Thanks everyone
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PreLoader.ascx.cs" Inherits="AstonishResultsReporting.UIControls.PreLoader.PreLoader" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<div class="Loading"
<telerik:RadAjaxLoadingPanel ID="VPCPreloader" runat="server" Transparency="30">     
        <asp:Image ID="AjaxLoadingImage" runat="server" ImageUrl="~/Images/Preloader/Loading3.gif" />     
</telerik:RadAjaxLoadingPanel> 
</div> 

Joe
Top achievements
Rank 1
 answered on 30 Jun 2010
5 answers
429 views
Hi

I am struggling to use a checkbox in a template edit form. When I click on the Add New Record button a Specified cast is not valid error is returned. I have implemented the following code that I found on another thread but the error still occurs. I am using an object datasource and binding. Here is the code that I am using.
Markup

 <asp:CheckBox ID="chkControlled" runat="server" Checked'<%# Bind( "controlled") %>'></asp:CheckBox> 

C# code

protected void radGridAssetCategories_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked  
            {  
                GridEditCommandColumn editColumn = (GridEditCommandColumn)radGridAssetCategories.MasterTableView.GetColumn("EditCommandColumn");  
                editColumn.Visible = false;  
                e.Canceled = true;  
                //Prepare an IDictionary with the predefined values    
                System.Collections.Specialized.ListDictionary newnewValues = new System.Collections.Specialized.ListDictionary();  
                //set initial checked state for the checkbox on init insert    
                newValues["controlled"] = false;   
                 
                //Insert the item and rebind    
                e.Item.OwnerTableView.InsertItem(newValues);  
                                 
 
            }  
            else if (e.CommandName == RadGrid.RebindGridCommandName && e.Item.OwnerTableView.IsItemInserted)  
            {  
                e.Canceled = true;  
            }  
            else  
            {  
                GridEditCommandColumn editColumn = (GridEditCommandColumn)radGridAssetCategories.MasterTableView.GetColumn("EditCommandColumn");  
                if (!editColumn.Visible)  
                    editColumn.Visible = true;  
            }  
        }  
 

Thank you
Fred
Pavlina
Telerik team
 answered on 30 Jun 2010
0 answers
76 views
Disregard. Html failure between monitor and chair.
Eric Wallace
Top achievements
Rank 1
 asked on 30 Jun 2010
7 answers
158 views
This only happens with IE8. I tried Safari and Chrome and it work just fine. Please see attach image. Note that my menu is using rtl direction and has 100% width.
Yana
Telerik team
 answered on 30 Jun 2010
1 answer
55 views
Hi guys, just wanted to let you know that I found a simple bug:

If I set the property PagerStyle-AlwaysVisible="true" in MasterTableView, it seems to override the Mode="NextPrevNumericAndAdvanced" property (and possibly others) in the separate PagerStyle tag, and so it does show the pager but the advanced controls are not there.

If I set both properties in MasterTableView, or both in PagerStyle view, it works fine.  I would assume that these should work interchangeably.

Not a big problem now that I found the solution, but thought you should know.
Dimo
Telerik team
 answered on 30 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?