Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Am using Telerik Grid Hierarchy, In that, dynamically load DetailTableDataBind and its in expand mode. When i click link inside the  expand mode grid and its redirect to another page. then am clicking back button i want to open in  expand mode. but all shows in collapse mode. how to take session, which one in expand mode and take to another page and pass value to Grid Hierarchy page to expand mode.
Tsvetoslav
Telerik team
 answered on 13 May 2010
1 answer
138 views
Hi all,
I am having a RadGrid with one GridTemplateColumn with <ItemTemplate> as  <telerik:RadBinaryImage>
here databinding is like

<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="IPH_PHOTO">
                                       <ItemTemplate>
                                          <telerik:RadBinaryImage ID="imgInm" runat="server" DataValue='<%# Eval("IPH_PHOTO")%>' Height="75px" Width="75px" />
                                        </ItemTemplate>                                                                            
 </telerik:GridTemplateColumn>
    column IPH_PHOTO contains system.byte[].
My problem is, After binding grid with large number of data when i do anything(eg,changing pagesize or like that) script error is coming like this "
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031" and the page hangs..If the number of data is less no problem occurs...The problem is for large data..
Please give solutions
Thanks in advance
Lekha

Rosen
Telerik team
 answered on 13 May 2010
1 answer
200 views
Hi, from Bogota, Colombia.

My question is about input masks, and how to apply it in a column.

I have a RadGrid with some columns, numeric and character, but numbers are hold in database as varchar (SQL Server).

I want t know, if are there any validation that i can apply to a column data (GridBoundColumn) in order that it validate that "numeric" columns accept only numbers (0-9) and the character columns accept only characters. For example, the character column must accept "John Paul II" or "Benedict XVI", must not accept "John Paul 2" or "Benedict 16" . A similar way for "numeric" columns.

Thanks in advance, and please forgive mistakes. English is not my native languaje.

CARLOS ALBERTO CASTILLO
Software Developer
Bogota, Colombia. 
Suresh K
Top achievements
Rank 1
 answered on 13 May 2010
5 answers
119 views
I have tons of textboxes and datepickers. I tried pointing the IDs of the datepickers to the target input of Textboxsettings for required field validation but it seems it does not work.

I know that I can use a normal asp.net validation but I like the way textboxsetting shows the validation message inside the textbox which is not (straightforward) possible in a normal asp.net validation control. 
Web team
Top achievements
Rank 1
 answered on 13 May 2010
4 answers
146 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
553 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
111 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
208 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
71 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
348 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?