Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
143 views
I have 7 radnumerictextboxes and all using OnvalueChanged client event where it calculates the total amount when value changed
the problem is when I hit the tab (keyboard) button to go to the next textbox the cursor  inside the textbox start blinks very fast and prevent me from entering number; 


<telerik:RadNumericTextBox ID="txtPositionApprovedY1" Runat="server" Width="50px"   
                                        Skin="Sunset" DataType="System.Int32" EmptyMessage="----" > 
                                          <DisabledStyle BackColor="#EEEEEE" /> 
                                     <ClientEvents OnValueChanged="PositionApprovedChanged" /> 
                                          <EnabledStyle HorizontalAlign="Center" /> 
                                        <NumberFormat DecimalDigits="0" /> 
                                    </telerik:RadNumericTextBox> 


function PositionApprovedChanged(sender, args) {  
    var txtTotalApproved = $("div #divComplement [id$='txtTotalApproved']")[0].control;  
    var totalApproved = null;  
 
    for (var index = 1; index <= 7; index++) {  
        var txtPositionApproved = $("div #divComplement [id$='txtPositionApprovedY" + index + "']")[0].control  
        totalApproved += ConvertStringToInt(txtPositionApproved.get_value());  
    }  
    if (totalApproved == 0) {  
        totalApproved = null;  
    }  
    txtTotalApproved.set_value(totalApproved);  
 
Veli
Telerik team
 answered on 13 May 2010
3 answers
543 views
Hi,

I am using two numeric text boxes and in the onblur event of one textbox i need to assign the value in the next text box. But the value not setting properly. the SetValue not working. Object reference error is coming, Please help me to sort out the prolemm
my code is
 <telerik:RadNumericTextBox ID="textBoxVarFirstChildR"  Width="75px"  onblur="duplicateFirstChildR();" 
                                                            MaxLength="8" runat="server" /> 
in my java script :
 duplicateFirstChildR() { 
                var textBoxVarFirstChildR = "<%=textBoxVarFirstChildR.ClientID %>"
                var textBoxVarFirstChildNR = "<%=textBoxVarFirstChildNR.ClientID %>"
                var fValue = $find(textBoxVarFirstChildR).GetValue(); 
                $find(textBoxVarFirstChildNR).SetValue(fValue); 
            } 
jeevitha
Top achievements
Rank 1
 answered on 13 May 2010
1 answer
97 views
I have a RadEditor on an .net mvc ascx page, which is included in an aspx page, But somehow the default.and common stylesheets aren't applying so it looks like a column of bullet points.  Does anyone know why this is?

Thanks!
Rumen
Telerik team
 answered on 13 May 2010
3 answers
199 views
I have a inline editing grid, everything was fine but when i updated to Q12010 316 version, i got an error message "Sys.WebForms.PageRequestManagerServerErrorException: Insert item is available only when grid is in insert mode."

any idea?

<telerik:RadGrid SkinID="GridVista" ID="AListingsGrid" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" GridLines="None" AllowSorting="False" PageSize="50" 
                                AllowMultiRowSelection="False" ShowStatusBar="True" AllowAutomaticDeletes="false" 
                                AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowMultiRowEdit="false"
                                <HeaderContextMenu Skin="Vista" EnableTheming="True"
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                </HeaderContextMenu> 
                                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" /> 
                                <MasterTableView CellSpacing="-1" EditMode="InPlace" CommandItemDisplay="Top" ClientDataKeyNames="PageKey"
                                    <CommandItemTemplate> 
                                        <div class="maintainGridTools"
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# Not AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/Control_New.png" /></asp:LinkButton> 
                                            <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# AListingsGrid.EditIndexes.Count = 0 and not AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/control_edit.png" /></asp:LinkButton> 
                                            <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# AListingsGrid.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/save.png" /></asp:LinkButton> 
                                            <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/save.png" /></asp:LinkButton> 
                                            <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# AListingsGrid.EditIndexes.Count > 0 Or AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/Cancel.png" /></asp:LinkButton> 
                                            <asp:LinkButton ID="LinkButtonPageUp" OnClick="barUp" runat="server" Visible='<%# AListingsGrid.EditIndexes.Count = 0 and not AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/navigate_up.gif" /></asp:LinkButton> 
                                            <asp:LinkButton ID="LinkButtonPageDown" runat="server" OnClick="barDown" Visible='<%# AListingsGrid.EditIndexes.Count = 0 and not AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/navigate_down.gif" /></asp:LinkButton> 
                                            <asp:LinkButton CssClass="btndelete" ID="LinkButton1" OnClientClick="javascript:return checkDelPage();" 
                                                runat="server" CommandName="DeleteSelected" Visible='<%# AListingsGrid.EditIndexes.Count = 0 and not AListingsGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="i/16x16/Active/control_delete.png" /></asp:LinkButton> 
                                            <asp:LinkButton CssClass="btntoggleActive" ID="LinkBtntoggle" OnClick="ToggleActive" 
                                                runat="server" Visible='<%# AListingsGrid.EditIndexes.Count = 0 and not AListingsGrid.MasterTableView.IsItemInserted %>'>Toggle Active</asp:LinkButton> 
                                        </div> 
                                    </CommandItemTemplate> 
                                    <RowIndicatorColumn Visible="False"
                                        <HeaderStyle Width="20px" /> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn Visible="False" Resizable="False"
                                        <HeaderStyle Width="20px" /> 
                                    </ExpandCollapseColumn> 
                                    <Columns> 
                                        <%--<telerik:GridEditCommandColumn ButtonType="ImageButton" CancelImageUrl="Images/16x16/Active/Cancel.png" 
                                            EditImageUrl="Images/16x16/Active/control_edit.png" UniqueName="EditCommandColumn" 
                                            UpdateImageUrl="Images/16x16/Active/save.png" InsertImageUrl="Images/16x16/Active/save.png"
                                            <HeaderStyle Width="60px" HorizontalAlign="Center" /> 
                                            <ItemStyle Width="60px" HorizontalAlign="Center" /> 
                                        </telerik:GridEditCommandColumn>--%> 
                                        <telerik:GridBoundColumn DataField="PageKey" HeaderText="Ref" UniqueName="Ref" Visible="False"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn UniqueName="lbldatecreated" HeaderText="Created" Visible="false"
                                            <ItemTemplate> 
                                                <asp:Label ID="lblCreated" runat="server" Text=""></asp:Label> 
                                            </ItemTemplate> 
                                            <EditItemTemplate> 
                                                <asp:Label ID="editLblCrated" runat="server" Text="Label"></asp:Label> 
                                            </EditItemTemplate> 
                                            <HeaderStyle Width="100px" /> 
                                            <ItemStyle Width="100px" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn UniqueName="pagename" HeaderText="Name"
                                            <ItemTemplate> 
                                                <asp:Label ID="lblpagename" runat="server" Text=""></asp:Label> 
                                            </ItemTemplate> 
                                            <EditItemTemplate> 
                                                <span> 
                                                    <telerik:RadTextBox SkinID="TextBoxSkin" ID="txtpagename" runat="server" EmptyMessage="" 
                                                        Width="100%"
                                                    </telerik:RadTextBox> 
                                                    <asp:LinkButton ID="lnkBtnCMDEdit" runat="server" OnClick="lnkBtnEdit_Click">Edit Content</asp:LinkButton> 
                                                </span> 
                                            </EditItemTemplate> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn UniqueName="lblpagetype" HeaderText="Type"
                                            <ItemTemplate> 
                                                <asp:Label ID="lblType" runat="server" Text=""></asp:Label> 
                                            </ItemTemplate> 
                                            <EditItemTemplate> 
                                                <telerik:RadComboBox SkinID="ComboSkin" ItemRequestTimeout="1000" CollapseDelay="0" 
                                                    ID="dblkFeatureSelect" AutoPostBack="true" runat="server" AllowCustomText="False" 
                                                    HighlightTemplatedItems="True" MarkFirstMatch="True" Width="85px" OnSelectedIndexChanged="dblkFeatureSelect_SelectedIndexChanged"
                                                    <Items> 
                                                        <telerik:RadComboBoxItem Text="Static Page" Value="P" /> 
                                                        <telerik:RadComboBoxItem Text="Feature" Value="F" /> 
                                                        <telerik:RadComboBoxItem Text="URL" Value="E" /> 
                                                        <%--<telerik:RadComboBoxItem Text="URL (Embedded)" Value="B" />--%> 
                                                    </Items> 
                                                    <CollapseAnimation Type="None"></CollapseAnimation> 
                                                </telerik:RadComboBox> 
                                            </EditItemTemplate> 
                                            <HeaderStyle Width="100px" /> 
                                            <ItemStyle Width="100px" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn UniqueName="status" HeaderText="Status"
                                            <ItemTemplate> 
                                                <asp:Label ID="lblActive" runat="server" Text=""></asp:Label> 
                                            </ItemTemplate> 
                                            <EditItemTemplate> 
                                                <telerik:RadComboBox SkinID="ComboSkin" ItemRequestTimeout="1000" CollapseDelay="0" 
                                                    ID="dblkActive" runat="server" AllowCustomText="False" HighlightTemplatedItems="True" 
                                                    MarkFirstMatch="True" Width="80px"
                                                    <Items> 
                                                        <telerik:RadComboBoxItem Text="Active" Value="0" /> 
                                                        <telerik:RadComboBoxItem Text="Pending" Value="1" /> 
                                                    </Items> 
                                                    <CollapseAnimation Type="None"></CollapseAnimation> 
                                                </telerik:RadComboBox> 
                                                <%--                                        <asp:CheckBox ID="chxActive" runat="server" Text="Active" />                                        --%> 
                                            </EditItemTemplate> 
                                            <HeaderStyle Width="95px" /> 
                                            <ItemStyle Width="95px" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn UniqueName="lbldatemodifed" HeaderText="Modified"
                                            <ItemTemplate> 
                                                <asp:Label ID="lblModified" runat="server" Text=""></asp:Label> 
                                            </ItemTemplate> 
                                            <EditItemTemplate> 
                                                <asp:Label ID="edtLblModified" runat="server" Text="Label"></asp:Label> 
                                            </EditItemTemplate> 
                                            <HeaderStyle Width="140px" /> 
                                            <ItemStyle Width="140px" /> 
                                        </telerik:GridTemplateColumn> 
                                        <%--<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="Classic" 
                                            ConfirmText="Delete this page?" ConfirmTitle="Delete" ImageUrl="Images/recycle.gif" 
                                            UniqueName="DeleteColumn"
                                            <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                            <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                        </telerik:GridButtonColumn>--%> 
                                    </Columns> 
                                    <EditFormSettings> 
                                        <PopUpSettings ScrollBars="None" /> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                                <ClientSettings AllowKeyboardNavigation="True" EnableRowHoverStyle="True" AllowRowsDragDrop="true"
                                    <ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" /> 
                                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> 
                                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                                    <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> 
                                    <ClientEvents OnRowDropping="onRowDropping" /> 
                                </ClientSettings> 
                                <FilterMenu Skin="Vista" EnableTheming="True"
                                    <CollapseAnimation Type="OutQuint" Duration="200" /> 
                                </FilterMenu> 
                                <SortingSettings EnableSkinSortStyles="False" /> 
                                <StatusBarSettings LoadingText="Loading Pages, please wait..." /> 
                            </telerik:RadGrid> 

Pavlina
Telerik team
 answered on 13 May 2010
1 answer
67 views

hi Telerik team,

In our Application, In grid we are using scroll for content ,
In this scenario, we are giving height for scroll option, because of this the grid height is not readjusting while "No Records are there" .

Here I'm attaching the screenshot of the page.please provide me solution for this.

 

Thanks in advance.

 

Dimo
Telerik team
 answered on 13 May 2010
4 answers
334 views
Hello,
I would like to check if there is a direct way to display masked text on a rad grid.
There is a telerik:GridMaskedColumn, but it looks like it works only for edit mode. We can use template with RadMaskedTextBox control, but it doesn’t look consistent with the other columns.

Thanks,
Ivo
Andy Green
Top achievements
Rank 1
 answered on 13 May 2010
1 answer
102 views
Hi,

    We have implemented rad chart , But when we select the date range from 2009- 2010, the chart is not looking good. Its merging with each bars.
I have attached the screen shot.

Thanks,

Ves
Telerik team
 answered on 13 May 2010
9 answers
278 views
Hello,

I have a page. Page has RadGrid , few comboboxes and toolbar.

I have this error:


Message: Unexpected call to method or property access.
Line: 14547
Char: 25
Code: 0
URI: http://localhost:3312/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3aed16cbdc%3a86526ba7%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3a1e771326%3aaa288e2d%3ab7778d6c%3aa7e79140%3a58366029%3ae330518b%3ac8618e41%3ae4f8f289

I also have the output of that script (1MB, cant attach here)

Fragment:
var c=this.get_parent(); 
var f=c.get_openedItem(); 
if(f&&f!=this){f._close(g) 
}if(c._state!=Telerik.Web.UI.RadMenuItemState.Open&&c.open){c._open(g) 
}c._focusedItem=this
var d=this.get_menu(); 
d._focusedItem=this
var b=this.get_linkElement(); 
if(!this.get_focused()&&b){b.focus() 
}this.get_menu()._raiseEvent("itemFocus",new Telerik.Web.UI.RadMenuItemFocusEventArgs(this,g)) 
},_doBlur:function(d){if(this.get_isSeparator()){return 
}if(this.get_focused()){this.get_linkElement().blur()  //error in this line 
}this.get_parent()._focusedItem=null
var b=this.get_menu(); 
 


What can be the reason of this error ?
T. Tsonev
Telerik team
 answered on 13 May 2010
3 answers
272 views
Hey, Folks:

I'm a noob.  I'm trying to work through the RadControls documentation (RadControlsAJAXCourseware.pdf).  I get as far on page 31, where it says: "Add a RadMenu to the top of the web page. Set the Skin property to "WebBlue". Set the Width property to 100%".  At that point, I get:

Error creating control - RadMenu1

Unable to cast object of type Telerik.Web.UI.RadMenu to type Telerik.Web.UI.ControlItemContainer

I have tried the sample project by starting a standard web project and also by starting a Telerik Rad Control project.  The latter, of course, adds a few extra references.  In either case, my results are the same.

Any insight would sure be appreciated.

Thanks.

Doug Helm
(dhelm@hrnet.net)
Veronica
Telerik team
 answered on 13 May 2010
7 answers
177 views
I followed the instructions to create a custom skin, based on Default,  for the menu and most of it is working.  However, when I set EnableRoundedCorners to true it messes up.  I don't get the rounded corners and the border on the first level sub menu is missing on the left and right.  If I switch back to an embedded skin it works fine.

Any idea what the problem could be?  I have also created a custom skin for the dock and the rounded corners work fine there.
Yana
Telerik team
 answered on 13 May 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?