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

Is it possible to enter PostBackUrl on RadComboBoxItem?

Using the  RadComboBoxItem Value As PostBackUrl ....

Ivan Danchev
Telerik team
 answered on 29 Apr 2016
1 answer
105 views

I used two RadListBox, one is right and other left on screen.

And Explorer apply Compatibility View Settings.

So Explorer Version is IE5, but I didn't have any problems.

before upgrade telerik Version.

 

I used to use 2014.2.724.35 version. And now upgrade to 2016.1.225.35

And then RadListBox got a problem.

When I scrolls down and select a item. (on name)

Immediately ListBox scrolls up and uncheck that item.

 

If I select a item (right side name), I can check it but can't get back uncheck item...

I try to select a check item, automatically scrolls up again......

 

I think that is Version problem but I have to use IE5 and apply Compatibility View Settings.

How to figure out this problem...

 

 

Please answer

Dimitar
Telerik team
 answered on 29 Apr 2016
5 answers
236 views
We have a RadGrid with a large number of columns.  I have set EnableHeaderContextMenu to True in order to let the user show/hide columns.  The number of columns in the menu ends up making it stretch too far beyond the boundaries of the monitor, with no way to scroll down to see the items at the bottom of the menu.

Is there a way to set the height of this menu and have it scroll as well?

Thanks.

Maria Ilieva
Telerik team
 answered on 29 Apr 2016
0 answers
97 views

Hi,

On pressing the tab key in the Rad Editor control I added the following code to restrict TAB key press inside the text-area of the RadEditor as mentioned in the Forums thread. 

editor.removeShortCut("InsertTab");  

editor.attachEventHandler("onkeydown", function (e) {
   if (e.keyCode == '9') {
       if ($.browser.webkit) {
           $telerik.cancelRawEvent(e); //cancel further execution of the event
           var designModeButton = $telerik.$(".reMode_design")[0];    //get reference to the design mode DOM element
           designModeButton.focus();     // tabbing out from the textarea sets the focus to the Design mode element in the RadEditor toolbar
       }
   }
});

I have two RadEditor control in my page. When i press tab in the text-area of the first RadEditor it is coming out of the text-area and focusing the Design element in the first RadEditor toolbar. 

But when i press Tab key in the text-area of the second RadEditor control it is coming out of the text-area and focusing the Design element of the First RadEditor toolbar in the page instead of the Current second RadEditor control Design Element. 

This is because we are pointing to the first design element as per the below code. 

var designModeButton = $telerik.$(".reMode_design")[0];

So , now i need to get the current RadEditor control and set the focus to the current RadEditor control Design Mode. 

But bu using the editor.attachEventHandler not able to  get the current  RadEditor control details. 

Please help to get this work.

 

 

 

 

Mani
Top achievements
Rank 1
 asked on 29 Apr 2016
7 answers
186 views

Hi guys,

     I'm working on Grid filterable row mode with remote data. In this Demo Grid Filter Row , When I input value, It show dropdown list like autocomplete behavior. The grid show data lost focus or Enter key is pressed. It also request Get data 2 times to server. How can I disable function that show the dropdown list data result. I just want to request data one times when lost focus or press enter.

 

Regards

Thanh

popo
Top achievements
Rank 1
 answered on 29 Apr 2016
2 answers
280 views

I am using the RadComboBox with "Contains" filter. The filter does not work properly when clearing the text and selection in the client side script.

C# code:

            _comboBox.Filter = RadComboBoxFilter.Contains;

            if (_comboBox.EnableLoadOnDemand && !AllowCustomText && !_comboBox.CheckBoxes)
            {
                if (String.IsNullOrEmpty(_comboBox.OnClientBlur))
                {
                    _comboBox.OnClientBlur = "function (sender, eventArgs) { var textInTheCombo = sender.get_text(); var item = sender.findItemByText(textInTheCombo); if(!item) { sender.set_text(''); sender.clearSelection(); } }";
                }
            }

Out intent for OnClientBlur is to clear the user input when it losts the focus and there is not a match item. It does clear the text/selection, and show the EmptyMessage, but when it get the focus again, the combobox still show the filtered items which was filtered by the previous input.

 

For example, the combobox has 20 items total. When user inputs a filter and 3 (out of 20) of the items which contains the input characters will show. When user click off the combobox, it clear the text as expected (as none of the items match the input exactly). But when user clicks the combobox again, it still only show the 3 items (instead of the 20 items which is supposed to have as at the moment the text is empty).

Any suggestions to fix the problem I am getting. Thanks a lot.

Regards,

Kevin Hu

Dimitar
Telerik team
 answered on 29 Apr 2016
2 answers
152 views

Hi everyone,

I've been getting an intermittent issue when  adding or using the controls for . 

Here's what it looks like:

http://imgur.com/DYhXzNy

error creating control - :RadTabStrip Duplicate component name 'RadTabStrip1'. Component names must be unique and case-insensitive.

What done:

Restarted VS
Uninstalled and reinstalled AJAX controls
Copied the Telerik.Web.UI bin to my project's bin directory
All assemblies in .config matches the current version of BIN working on.

However, still getting this issue more frequent than usual. It works again after clicking on the smart tag a couple of times or after restarting VS. recently, had to keep on updating the BIN files and restart VS again to make it work. Also tried to clear VS cache but it keeps on happening. You guys have other suggestion on how can permanently resolve this issue?

Thanks,

C

Veselin Tsvetanov
Telerik team
 answered on 29 Apr 2016
1 answer
176 views

Trying to find controls within edit form fails every time

<telerik:RadAjaxPanel ID="rpNotes" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" >
 
                               <telerik:RadGrid ID="rgNotes" runat="server" GroupPanelPosition="Top" OnItemCommand="rgNotes_ItemCommand"  >
                                   <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
                                   <MasterTableView NoDetailRecordsText="No notes for this Appointment" AutoGenerateColumns="False" DataKeyNames="notes_id" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Notes" AllowAutomaticInserts="true" EditMode="PopUp">
                                       <Columns>
                                           <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                                           </telerik:GridEditCommandColumn>
                                           <telerik:GridBoundColumn DataField="notes_id" FilterControlAltText="Filter notes_id column" HeaderText="notes_id" ReadOnly="True" SortExpression="notes_id" Visible="true" UniqueName="notes_id">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column" HeaderText="Subject" ReadOnly="True" SortExpression="Subject" UniqueName="Subject">
                                           </telerik:GridBoundColumn>
                                       </Columns>
 
                                       <EditFormSettings EditFormType="Template" InsertCaption="Add new Note" CaptionFormatString="Please enter or update note">
                                           <FormTemplate>
 
                                               <telerik:RadTextBox ID="txtNotesId" Visible="false" Width="200px" runat="server"></telerik:RadTextBox>
 
                                               Subject
                                               <p>
                                                   <telerik:RadTextBox ID="txtSubjectNotes" Width="200px" runat="server"></telerik:RadTextBox>
                                               </p>
                                               <p>
                                                   Notes<br />
                                                   <telerik:RadTextBox ID="txtMultiNotes" TextMode="MultiLine" Rows="10" Columns="10" Width="200px" runat="server"></telerik:RadTextBox>
                                               </p>
 
                                               <telerik:RadButton ID="rdSaveNotes" OnClick="rdSaveNotes_Click" Skin="Bootstrap" BackColor="#512479" ForeColor="White" runat="server" Text="Save Notes"></telerik:RadButton>
                                               <telerik:RadButton ID="rdCancel" OnClick="rdCancel_Click1" CommandName="Cancel" Skin="Bootstrap" BackColor="#512479" ForeColor="White" runat="server" Text="Cancel"></telerik:RadButton>
                                           </FormTemplate>
                                       </EditFormSettings>
                                   </MasterTableView>
                                   <ClientSettings>
                                       <ClientEvents OnPopUpShowing="PopUpShowing" />
                                       <Selecting AllowRowSelect="true" />
                                   </ClientSettings>
                               </telerik:RadGrid>
                           </telerik:RadAjaxPanel>

I am using this function here which i found on stackoverflow

 

/// <summary>
   /// Recursively searches for a server control with the given ID.
   /// </summary>
   /// <param name="id">ID of control to find</param>
   /// <returns>The matching control or null if no match was found</returns>
   public static Control FindControlRecursive(this Control control, string id)
   {
       if (control == null) return null;
       //try to find the control at the current level
       Control ctrl = control.FindControl(id);
 
       if (ctrl == null)
       {
           //search the children
           foreach (Control child in control.Controls)
           {
               ctrl = FindControlRecursive(child, id);
 
               if (ctrl != null) break;
           }
       }
       return ctrl;
   }

And this is how i use it

// TextBox txtSubjectNotes = (TextBox)item.FindControl("txtSubjectNotes");
// TextBox txtMultiNotes = (TextBox)item.FindControl("txtMultiNotes");
//add custom logic here
RadTextBox ctrl = (RadTextBox)this.FindControlRecursive("txtSubjectNotes");
RadTextBox myControl;
if (ctrl is RadTextBox)
{
    myControl = (RadTextBox)this.FindControlRecursive("txtSubjectNotes");
 
 
    //  _note.note = txtMultiNotes.Text;
 
 
    _note.subject = myControl.Text;
}

But I am getting object not found.
Eyup
Telerik team
 answered on 29 Apr 2016
1 answer
80 views
I have the radeditor window in a popup and every time we open that the cursor and text is centered in the editor. I have tried using css, using the left align toolbar button, etc but it is ALWAYS centered. What am I doing wrong?
Vessy
Telerik team
 answered on 28 Apr 2016
4 answers
90 views

Hi, I am using a RadGrid with scroll enabled, static headers and a scrollheight of 150px. It is displayed in a RadWindow, inside a RadAjaxPanel.

The rows that do not fit the view are being displayed behind the footer and no scrollbar is available, as you can see in the attached image.

How can I fix/investigate this? I have other similar grids in the application, but they work fine.

Thanks

Pavlina
Telerik team
 answered on 28 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?