Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
193 views

Hello together, i don't get it working...

How can i change the start/end/interval values for the popup list of RadTimePicker clientside using javascript and how to repait that after manipulating?

I can read all the values with the apropriate methods:

  • get_startTime() -> returns my start date
  • get_endTime() -> returns my end date
  • get_interval() -> returns my interval date

Here is a sample code how i try to manipulate this (sample of an end-time):

1.... get the endTimePicker...
2.var timeView = endTimePicker.get_timeView();
3.var endTime = timeView.getTime();
4.endTime.setHours(17);
5.endTime.setMinutes(0);
6.endTime.setSeconds(0);
7.timeView.set_endTime(endTime);

 

After manipulation, i try to write it back to the object:

  • set_startTime(<manipulated start date>) 
  • set_endTime(<manipulated end date>)
  • set_interval(<manipulated interval date>)

Whe i than read the properties again, i only get the message "invalid date".

How can i manipulate these values in the correct way?

How can i repaint the popup list after the manipulation? With <timepicker-object>.repaint() ?

 

Thanks a lot for thinking about that.

Eyup
Telerik team
 answered on 01 Aug 2018
0 answers
105 views

Is there some way to add arrows to lines on the map?

Thank you

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 31 Jul 2018
0 answers
93 views

Is it possible to "paint" shape by using javascript after original load? To identify i can use some of the shape properties.

Thank you

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 31 Jul 2018
8 answers
326 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
114 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.7K+ 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
194 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
251 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
222 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
304 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?