Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
251 views
Hi!  I was wondering if someone knew of a way to capture the HTML when it is pasted into the HTML mode of the RadEditor?

I tried using 'OnClientPasteHtml' however that only fires off if you paste something into the Design mode of the RadEditor.  I need to capture whatever is pasted into the HTML mode of the RadEditor.

Thanks!
Rumen
Telerik team
 answered on 31 Jul 2018
0 answers
81 views
In spreadsheet auto complete text box i can not able to do in the cell with the help of ajax or jquery  please help me out in that reason
sabyasachi
Top achievements
Rank 1
 asked on 31 Jul 2018
3 answers
2.6K+ views
Dear all,

please suggest me how to find controls in grid on client side

i have radgrid controle in that ItemTemplate i have Radcombobox but i am not able to get that RadcomboBox on client side
my code is below

<telerik:RadGrid ID="RadGrid_ECNEntity" runat="server" AutoGenerateColumns="False"
GridLines="None" OnNeedDataSource="RadGrid_ECNEntity_OnNeedDataSource" OnInsertCommand="DoInsert">
<MasterTableView CommandItemDisplay="Top" EditMode="InPlace">
         <Columns>
               <telerik:GridTemplateColumn DataField="EntityName" HeaderText="EntityName" UniqueName="EntityName"
                    SortExpression="EntityName">
                     <ItemTemplate>
                      <asp:Label ID="lblECNEntityName" runat="server" Text='<%#Bind("EntityName") %>' />
                     </ItemTemplate>
                 <EditItemTemplate>
                     <telerik:RadComboBox ID="RadComboBox_EntityName" runat="server" EnableLoadOnDemand="true"
                                            DataTextField="Value" DataValueField="Key" OnItemsRequested="RadComboBox_EntityName_OnItemsRequested"
                                            AllowCustomText="true" ShowMoreResultsBox="true" OnClientSelectedIndexChanged="LoadECnEntityKeys" />
                  </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="EntityKeyName" HeaderText="EntityKeyName"
                                    UniqueName="EntityKeyName" SortExpression="EntityKeyName">
                        <ItemTemplate>
                          <asp:Label ID="lblECNEntityKeyName" runat="server" Text='<%#Bind("EntityKeyName") %>' />
                         </ItemTemplate>
                       <EditItemTemplate>
                         <telerik:RadComboBox ID="RadComboBox_EntityKeyName" runat="server" EnableLoadOnDemand="true" EnableViewState="false"
                              DataTextField="Value" DataValueField="Key" OnItemsRequested="RadComboBox_EntityKeyName_OnItemsRequested"
                              AllowCustomText="true" ShowMoreResultsBox="true" OnClientItemsRequested="ItemsLoaded"/>
                         </EditItemTemplate>
                  </telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
  
  
<telerik:RadScriptBlock ID="scriptBlock" runat="server">
    <script type="text/javascript">
      
        function LoadECnEntityKeys(sender, eventArgs) {
             
            var EntityKeyName = $find("<%= RadGrid_ECNEntity.ClientID%>").get_masterTableView().get_item().findControl("RadComboBox_EntityKeyName");  
  
            var item = eventArgs.get_item();
            EntityKeyName.set_text("Loading...");
              
            // if a Entity is selected
            if (item.get_index() > 0) {
                // this will fire the ItemsRequested event of the 
                // EntityKey combobox passing the EntityID as a parameter
                EntityKeyName.requestItems(item.get_value(), false);
            }
            else {
                // the -Select a Entity- item was chosen
                EntityKeyName.set_text(" ");
                EntityKeyName.clearItems();
            }
        }
  
        function ItemsLoaded(sender, eventArgs) {
            if (sender.get_items().get_count() > 0) {
                // pre-select the first item
                sender.set_text(sender.get_items().getItem(0).get_text());
                sender.get_items().getItem(0).highlight();
            }
  
            sender.showDropDown();
        }
  
    </script>
</telerik:RadScriptBlock>


I am getting error for this line
var EntityKeyName = $find("<%= RadGrid_ECNEntity.ClientID%>").get_masterTableView().get_item().findControl("RadComboBox_EntityKeyName");  
Eyup
Telerik team
 answered on 31 Jul 2018
5 answers
133 views
Hello,

Browing a database with thousand of elements hierarchicaly related, I would appreciate having radTreeview load on demand working like radCombobox or RadGrid: as I may have thousand nodes on same tree level, I don't want to read them all but need only to paginate with a fixed page size.

Actual version doesn't offers this , is there something todo ?

Thanks CS
ShareDocs
Top achievements
Rank 1
 answered on 31 Jul 2018
5 answers
196 views
I've got two RadEditors collecting static content to put above and below some data driven content that will wind up rendering out on the page like

<body>
<< content from RadEditor1 >>
<< data driven content >>
<< content from RadEditor2 >>
</body>

I'd like to allow a <div> or <table><tr><td> to be left open in RadEditor1 to be followed by </div> or </td></tr></table> in RadEditor2 (this would be entered in the HTML view of the editor).

I've tried setting the ContentFilters to None and the RadEditor automatically closed the tags. So RadEditor HTML would start with <table><tr><td> and when I switch to the designer and back to HTML I now see <table><tbody><tr><td></td></tr></tbody></table>. 

Is is possible to force RadEditor to not fix the HTML for me?

Thanks for your help!
Rumen
Telerik team
 answered on 31 Jul 2018
5 answers
158 views
Hello

I've got a user control featuring the RadEditor, and I've been using the OnClientPasteHtml event handler to strip out html pasted into the content pane via Ctl-V.  I'm maintaining a clients' code base and they report this was working okay until recently.  They're using 2013.2.717.45 of Telerik.Web.UI.

I've found that the unwrapped version of RadEditor fires OnClientPasteHtml just fine.  If I create a usercontrol, add an Editor instance with the exact same configuration, and add the usercontrol to the page, the client side event no longer fires.

Issue occurs in IE11, FF, Chrome and Safari.

Help or guidance would be appreciated, thanks very much.

Michael
Rumen
Telerik team
 answered on 31 Jul 2018
4 answers
255 views
We intially had textarea being used in our application. When we changed to RadEditor, all our old records did not apply line breaks, since there were no <br> tags. They had new line characters. So I am using <pre> tag inside RadEditor to display them in next line. But now there is an issue while we copy and paste text from an editor. The text wrapping does not occur and we get horizontal scroll. Need help to wrap the text.
Yuvaraj
Top achievements
Rank 1
 answered on 31 Jul 2018
8 answers
1.0K+ views
hi

i am having an issue with the programmatic creation of series and data , i have many series to add to a line chart , but the data is based on a time series so i am struggling to get it properly into a system.

would anyone be able to provide an example of programmatic creation of multiple series data based on a time series ?

Peter.

Vessy
Telerik team
 answered on 30 Jul 2018
1 answer
95 views

 

How to show time picker even if I create appointment on month view or week view? any chance to achieve that?

 

Regards

Peter Milchev
Telerik team
 answered on 30 Jul 2018
7 answers
1.5K+ views
Hello.

Inside an UpdatePanel, I have a "search" button and a RadGrid. The grid is programatically data-bound whenever the search button is clicked. I also have a RadAjaxManager which enables the paging (otherwise, "next" and "back" always return the first set of results). The problem is, if I select say the second page of a set of results, then click "search" to create a different set of results, the grid shows the correct results but the paging is still on page 2, and I'd like it to start on page 1.

I have tried to reset the paging index to 1 on my search button onclick, to no avail. I cannot set it on the databind bit, since that is called whenever a new page is selected.

Any help appreciated.

Bérénice
Christopher Lee
Top achievements
Rank 1
 answered on 30 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?