Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hello Telerik team,
 We have discovered an issue with the RadEditor in a RadMultiPage or a RadSplitter (RadControls For Asp.NET Ajax, version 2011.3.1305.40) . In our scenario, we are attaching a click event handler to the editor as soon as it loads. The click handler fires correctly when the editor is not nested within a splitter or a multipage. We require to have the editor within a RadPageView in a RadSplitter, so please advise us on how to fix this issue.
Below there is some test code we have used:
<telerik:RadCodeBlock ID="rcb" runat="server">
       <script type="text/javascript">
           //TEST SCENARIO1 - editor in RadMultiPage
           function EditorOnClientLoad(editor, args) {
               editor.attachEventHandler("onclick", function (e) {
                   alert('Editor clicked!');
               });
           }
            //TEST SCENARIO2 - editor in RadSplitter
           function Editor1OnClientLoad(editor, args) {
               editor.attachEventHandler("onclick", function (e) {
                   alert('Editor1 clicked!');
               });
           }
       </script>
   </telerik:RadCodeBlock>
 
 <%--TEST SCENARIO1--%>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Office2007" MultiPageID="RadMultiPage1"
       SelectedIndex="0">
       <Tabs>
           <telerik:RadTab runat="server" Text="Description" Value="Description" PageViewID="RadPageView1">
           </telerik:RadTab>
           <telerik:RadTab runat="server" Text="Content" Value="Content" PageViewID="RadPageView2">
           </telerik:RadTab>
       </Tabs>
   </telerik:RadTabStrip>
   <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="430px">
       <telerik:RadPageView ID="RadPageView1" runat="server">
           <div id="div1" runat="server" >
               <div id="div2" runat="server" >
                   ....
               </div>
           </div>
       </telerik:RadPageView>
       <telerik:RadPageView ID="RadPageView2" runat="server">
           <table cellpadding="0" cellspacing="5">
               <tr>
                   <td align="right" valign="middle">
                       Message
                   </td>
                   <td valign="middle">
                       <telerik:RadEditor ID="editorMessage" runat="server" Skin="Office2007" EnableResize="false"
                           OnClientLoad="EditorOnClientLoad">
                       </telerik:RadEditor>
                   </td>
               </tr>
           </table>
       </telerik:RadPageView>
   </telerik:RadMultiPage>
 
   <%--TEST SCENARIO 2--%>
   <telerik:RadSplitter ID="rs1" runat="server" Width="800px">
       <telerik:RadPane ID="rp1" runat="server">
           <telerik:RadEditor ID="RadEditor1" runat="server" Skin="Office2007" EnableResize="false"
               OnClientLoad="Editor1OnClientLoad">
           </telerik:RadEditor>
       </telerik:RadPane>
   </telerik:RadSplitter>

None of the above test scenarios fire the click handler of the RadEditor. Moreover, in the RadMultiPage scenario, Google Chrome shows an error when clicking the second tab:
  1. Uncaught TypeError: Cannot read property 'tagName' of null
    1. Telerik.Web.UI.Editor.Selection.getParentElementTelerik.Web.UI.WebResource.axd:11064
    2. a.RadEditor.getSelectedElementTelerik.Web.UI.WebResource.axd:11542
    3. a.RadEditor.getToolValueTelerik.Web.UI.WebResource.axd:11574
    4. Telerik.Web.UI.Editor.DefaultToolAdapter.setToolStateTelerik.Web.UI.WebResource.axd:8420
    5. Telerik.Web.UI.Editor.DefaultToolAdapter._onEditorSelectionChangeTelerik.Web.UI.WebResource.axd:8571
    6. Telerik.Web.UI.RadWebControl.raiseEventTelerik.Web.UI.WebResource.axd:779
    7. a.RadEditor.onParentNodeChangedTelerik.Web.UI.WebResource.axd:11530
    8. window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.repaintChildrenTelerik.Web.UI.WebResource.axd:96
    9. Telerik.Web.UI.RadPageView.showTelerik.Web.UI.WebResource.axd:3884
    10. Telerik.Web.UI.RadMultiPage._selectPageViewByIndexTelerik.Web.UI.WebResource.axd:3945
    11. Telerik.Web.UI.RadPageView._selectTelerik.Web.UI.WebResource.axd:3874
    12. Telerik.Web.UI.RadTab._selectPageViewTelerik.Web.UI.WebResource.axd:3040
    13. Telerik.Web.UI.RadTab.selectTelerik.Web.UI.WebResource.axd:3144
    14. Telerik.Web.UI.RadTab.clickTelerik.Web.UI.WebResource.axd:3092
    15. Telerik.Web.UI.RadTabStrip._clickTelerik.Web.UI.WebResource.axd:3556
    16. Telerik.Web.UI.EventMap._onDomEventTelerik.Web.UI.WebResource.axd:2489
    17. g

As a note, we have just upgraded our RadControls from version 2011.2.915  (the click handler of the editor worked fine with this version) to the latest version.
Please provide us with a solution to this problem.
Thank you.
Rumen
Telerik team
 answered on 25 Jan 2012
10 answers
523 views
Hello,

It would be nice to be able to display an empty text in a RadTextBox in password mode.

In the sample below, I setup a RadTextBox in Password mode (line 4) with an empty message (line 5).
<telerik:RadTextBox  
    ID="rtbPassword" 
    runat="server" 
    TextMode="Password" 
    EmptyMessage="Please enter your password" 
    Width="200px" 
    /> 
Unfortunately, when the text box is displayed I cannot read the empty message since it is written as a password => I just get a series of black dots.

Does anybody has an idea to fix this?

BR, Laurent
Edward
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
88 views
Hi,
I have a RadUpload in a RadGrid.
I lose the  RadUpload value  when the postback  is generated by RadComboBox in RadGrid.
How can don't lose the RadUpload value?

Thanks.


Shinu
Top achievements
Rank 2
 answered on 25 Jan 2012
1 answer
75 views
Dear SIr,

We are new to Telerik. we have license version of telerik. i just want to know that where to install telerik, on developer computer or on application server...

waiting for quick reply.

Thanks
Mukesh Mishra
Princy
Top achievements
Rank 2
 answered on 25 Jan 2012
0 answers
75 views
Hi,
     I am using Rad grid in my web application. I am using collections to bind it to the rad grid. i will pass values to the collection and bind it to Rad Grid for the first time if i click the button which is outside the Rad grid. When i click the button for the second time i will have a new set of records in my collection. I want this one to be added to the Rad Grid. How it can be done? Here the collection will not retain the value and so if i bind the collection to Rad Grid, i will get only the record that i have added at the last. Instead i want two record in the gird. i.e, the record that was previously in the grid and the new one that i have added to the collection during the click of the button for the second time.

One way of doing is using session or view state -- this will affect the performance which am not interested and the other is loop the grid and add it to collection and add the new records to the collection and bind it to the rad grid. Since looping is involved and as the volume of data grows, it will affect performance. Is ther any other way to accomplish this?


with Regards,
S . Surendar


Surendar S
Top achievements
Rank 1
 asked on 25 Jan 2012
3 answers
151 views
I have an ItemCommand for my grid which is "RowClick", which updates a group of labels via ajax when a row is clicked.

On the PreRender event of the grid I am selecting the first row on page load, how can I fire off the "RowClick" ItemCommand?

Thanks,
Craig Mellon
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
46 views
HI,

I have another drop down before the field to choose the object. Is is possible.

Please see the attachment for more info.

Thanks
Praveen Tomar
Marin
Telerik team
 answered on 25 Jan 2012
0 answers
77 views
hi,

iinstalled WSS and sharepoint in my system but in services Windows sharepoint services are always stopping if i start service immediately with in 1 min service is stopping


please give me any solution


Thanks
Abu
Top achievements
Rank 1
 asked on 25 Jan 2012
1 answer
60 views
I chose a filename with an underscore in the string, e.g. "Primary_menu"; and in do so, I noticed that the colors and other properties I changed--and incidentally saved--were not actually saved, but rather ignored. I thought I may be doing something wrong or a problem with Visual Style Builder was occurring. Well, it appears that by removing the underscore to: "PrimaryMenu", caused everything to save and update properly.

This is not an issue for me, but I thought I'd ask the Forum if I missed something, the Forum had in fact encountered this, or let others know that this exists and that they simply need to do as I did--remove the underscore to proceed as expected. I hope this helps others out there from losing valuable time running down this nuisance.

-Don
Bozhidar
Telerik team
 answered on 25 Jan 2012
2 answers
81 views
hi,

i am using the 3 level grid i wrote same code for all three as follows
CommandItemDisplay="Bottom"
   <MasterTableView EditMode="InPlace" Name="product" DataKeyNames="PKProductID" CommandItemDisplay="Bottom">
                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="PKProductID" HeaderText="PKProductID" Visible="false" />
                            
                                                 <telerik:GridEditCommandColumn UniqueName="Edit" ButtonType="ImageButton" CancelText="cancel"
                        EditText="edit" InsertText="insert"></telerik:GridEditCommandColumn>
                                                <telerik:GridTemplateColumn HeaderText="Style #">
                        <ItemTemplate>
                           <%#Eval("SourceID")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProSourceId" Text='<%# Eval("SourceID") %>' runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvProductSourceId" ControlToValidate="txtProSourceId" ErrorMessage="Cannot be empty" Text="*"
                                runat="server" Display="Dynamic" ></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Title">
                        <ItemTemplate>
                           <%#Eval("Language1Title")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProTitle" Text='<%#Eval("Language1Title") %>' runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvProductTitle" ControlToValidate="txtProTitle" ErrorMessage="Cannot be empty" Text="*"
                                runat="server" Display="Dynamic" ></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    
                                               
                                                <telerik:GridBoundColumn DataField="Language1SubTitle" HeaderText="Sub Title" />
                                                <telerik:GridDropDownColumn HeaderText="Clearance" UniqueName="StyleClearance" DataSourceID="SourceCheck"
                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="ClearanceItem" />
                                                <telerik:GridDropDownColumn HeaderText="Active" UniqueName="StyleActive" DataSourceID="SourceCheck"
                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                              
                                                <telerik:GridTemplateColumn HeaderText="Price">
                        <ItemTemplate>
                           <%#Eval("Price")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProPrice" Text='<%#Eval("Price") %>' runat="server"></asp:TextBox>
                             <asp:RegularExpressionValidator ID="regprice" runat="server" ControlToValidate="txtProPrice" Display="Dynamic"  ValidationExpression="^([0-9]*)(\.[0-9]{2})?$"></asp:RegularExpressionValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    

                                                <telerik:GridTemplateColumn HeaderText="SalePrice">
                        <ItemTemplate>
                           <%#Eval("SalePrice")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProSalePrice" Text='<%#Eval("SalePrice") %>' runat="server"></asp:TextBox>
                             <asp:RegularExpressionValidator ID="regSalePrice" runat="server" Display="Dynamic"  ControlToValidate="txtProSalePrice" ValidationExpression="^([0-9]*)(\.[0-9]{2})?$"></asp:RegularExpressionValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                                                
                                                
                                            </Columns>
                                            <DetailTables>
                                                <telerik:GridTableView DataMember="colors" CommandItemDisplay="Bottom"  HierarchyLoadMode="ServerOnDemand"  Name="Colors"
                                                    DataKeyNames="pkproductid"  Width="300px" >
                                                    <Columns>
                                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">
                                                    <HeaderStyle Width="80px" />
                                                    <ItemStyle CssClass="MyImageButton" />
                                                </telerik:GridEditCommandColumn>
                                                        <telerik:GridBoundColumn DataField="PKProductid" HeaderText="PKProductid" Visible="false" />
                                                        <telerik:GridTemplateColumn HeaderText="Title">
                                                        <ItemTemplate>
                                                        <%#Eval("Language1Title")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtColorTitle" runat="server" Text='<%#Eval("Language1Title") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                       
                                                       <telerik:GridTemplateColumn HeaderText="Color Id">
                                                        <ItemTemplate>
                                                        <%#Eval("SourceID")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtColorId" runat="server" Text='<%#Eval("SourceID") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn HeaderText="colors">
                                                        <ItemTemplate>
                                                        <%#Eval("ScaleLanguage1Name") %></ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlColors" runat="server" DataSourceID="SourceColors" DataValueField="PKGroupScaleItemID" DataTextField="ScaleLanguage1Name"
                                                        OnSelectedIndexChanged="ddltemp_SelectedIndexChanged" SelectedValue='<%#Eval("PKGroupScaleItemID") %>' AutoPostBack="true"></asp:DropDownList>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                       
                                                        <telerik:GridDropDownColumn HeaderText="Active" UniqueName="ColorActive" DataSourceID="SourceCheck"
                                                            ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                                    </Columns>
                                                    <DetailTables>
                                                        <telerik:GridTableView DataMember="Sizes" HierarchyLoadMode="ServerOnDemand" Width="300px" CommandItemDisplay="Bottom"
                                                            Name="sizes" DataKeyNames="pkproductid">
                                                            <Columns>
                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">
                                                    <HeaderStyle Width="80px" />
                                                    <ItemStyle CssClass="MyImageButton" />
                                                </telerik:GridEditCommandColumn>
                                                                <telerik:GridBoundColumn DataField="PKProductid" HeaderText="PKProductid" Visible="false" />
                                                               <telerik:GridTemplateColumn HeaderText="Title">
                                                        <ItemTemplate>
                                                        <%#Eval("Language1Title")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtSizeTitle" runat="server" Text='<%#Eval("Language1Title") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Size Id">
                                                        <ItemTemplate>
                                                        <%#Eval("SourceID")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtSizeId" runat="server" Text='<%#Eval("SourceID") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                           <%--         <telerik:GridTemplateColumn HeaderText="Sizes">
                                                        <ItemTemplate>
                                                        <%#Eval("ScaleLanguage1Name") %></ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlSizes" runat="server" DataSourceID="SourceSizes" DataValueField="PKGroupScaleItemID" DataTextField="ScaleLanguage1Name"
                                                        OnSelectedIndexChanged="ddltemp_SelectedIndexChanged" SelectedValue='<%#Eval("PKGroupScaleItemID") %>' AutoPostBack="true"></asp:DropDownList>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>--%>
                                                                <telerik:GridDropDownColumn UniqueName="SizeSourceID" DataSourceID="SourceSizes"
                                                                    HeaderText="Sizes" DataField="pkgroupscaleitemid" SortExpression="ScaleLanguage1Name" ListTextField="ScaleLanguage1Name"
                                                                    ListValueField="pkgroupscaleitemid"  />
                                                                    <telerik:GridTemplateColumn HeaderText="Back Order Days">
                                                                    <ItemTemplate>
                                                                    <%#Eval("BackOrderDays") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtbackorderdays" runat="server" Text='<%#Eval("BackOrderDays")%>'></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="regValidatordays" runat="server" ControlToValidate="txtbackorderdays" ValidationExpression="\d+" Text="*" ErrorMessage="Enter only numerics" Display="Dynamic" ></asp:RegularExpressionValidator>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                 <telerik:GridTemplateColumn HeaderText="SKU">
                                                                    <ItemTemplate>
                                                                    <%#Eval("SKU") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtsku" runat="server" Text='<%#Eval("SKU")%>'></asp:TextBox>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                               <telerik:GridTemplateColumn HeaderText="QuantityAvailable">
                                                                    <ItemTemplate>
                                                                    <%#Eval("QuantityAvailable") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtQuantityAvailable" runat="server" Text='<%#Eval("QuantityAvailable")%>'></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="regValidatorqty" runat="server" ControlToValidate="txtQuantityAvailable" ValidationExpression="\d+" Text="*" ErrorMessage="Enter only numerics" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                 <telerik:GridDropDownColumn HeaderText="Active" UniqueName="SizeActive" DataSourceID="SourceCheck"
                                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                                            </Columns>
                                                        </telerik:GridTableView>
                                                    </DetailTables>
                                                </telerik:GridTableView>
                                            </DetailTables>
add button is appear in the first level and third level in the second level that is missing and one more thing is i didn't get get any image here why?

Thanks & Regards,
M.Koteswara Rao
koteswararao
Top achievements
Rank 1
 answered on 25 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?