Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
1.1K+ views

I have a list box, with a lengthy list of items (Interests List Box).  A user selects which Interests are likes, and they populate into a different list box for Likes (Likes List Box)

 

To make searching for specific things easier, I would like to use a search box to help narrow down results. Here is a quick snippet of examples of some of my items:

                    <telerik:RadListBoxItem runat="server" Text="Music-Country" />
                    <telerik:RadListBoxItem runat="server" Text="Music-Rap" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Cartoons" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Drama" />

 

So if I type "Music" in the search box, I would like it to filter down and show results that start with "Music-" so they do not have to scroll all the way through the Interests List Box to get there. Once they find what they are looking for, I want them to be able to click the option they were looking for and add it to the Likes List box. I am having trouble finding a way to link the list box and search box together, is this possible?

 

 

Peter Milchev
Telerik team
 answered on 24 Apr 2019
8 answers
667 views
Hi everyone,

I have a RadListView that is bind to Db. I have to show details of the items in listview when user clicks on the each item . But i am facing issue when its SelectedIndexChanged event is firing. When user clicks on the item for the first time, the detailed data shown is correct but as soon as a second item is clicked , it shows exception :

ArgumentOutOfRangeException :
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Exception is thrown when : 

ItemID = ItemListView.SelectedValue.ToString();

Showing data as similar to a demo - http://demos.telerik.com/aspnet-ajax/salesdashboard/
Employee ListView  -> clicking showing - > sales data

Also i found that the selectedindexchanged event is firing twice in some cases. Cannot predict such cases but want to know the reason why it is firing twice when user clicks only once.

please advice
Yana
Telerik team
 answered on 24 Apr 2019
3 answers
137 views
I have an old project that uses 2014 Telerik. What are the basic steps to upgrade to the latest version?
Nikola
Telerik team
 answered on 24 Apr 2019
1 answer
156 views

Hello,

How can you implement subheadings in RadListBox ?

For example:

HEADING 1

ListItem A

ListItem B

HEADING 2

ListItem C

ListItem D

 

Thank you.

Peter Milchev
Telerik team
 answered on 24 Apr 2019
2 answers
90 views

We have a nested tabstrip with dynamically created tabs from the code behind. The parent tabstrip is also dynamically created and populated. When the page first loads both the parent tab pageviews and child tab pageviews are correct and both can be navigated. But when the child tabstrip has a postback created by a contained form, the pageviews for the parent tabstrip clear (except for the current open tab with the form). The parent tabs remain but no content underneath (except the current page with the child tabs).  The content can only be repopulated by reloading the full page. Note that a form postback at the parent page level does not clear the tab pageviews.

We've tried variations of loading the tabs at postback and not postback but can't seem to find a combination that works. 

Is there a way to correct this issue?

thanks!

Jeff
Top achievements
Rank 1
 answered on 23 Apr 2019
7 answers
375 views

Hi,

I experience rather low quality results on scaling hires JPG image (2900x2900) to a size of 400x400

I can find that InterpolationMode.HighQualityBicubic is used but from my point of view the result should be better then.

Where can I send source photo (3.3MB), just try to scale to 400x400 and you 'll see what I mean.

Something changed in the scale procedure?

Marc

Vessy
Telerik team
 answered on 23 Apr 2019
1 answer
88 views

I have a web-site project that I needed to convert to web-application. After I resolved all the compilation errors I hit a runtime exception in a piece of code I got from Telerik's Website.
In the part where I de-serialize the grid settings data I get an exception

System.ArgumentExceptionHResult=0x80070057Message=The serialized data is invalid.Source=BMS.WebAppInner Exception 1:SerializationException: Unable to find assembly 'App_Code.5gd62bdt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

 

public static GridSettingsCollection LoadFromSerializedData(string data)

{

  LosFormatter formatter = new LosFormatter();

  // the line that throws the exception: formatter.Deserialize(data)

  return (GridSettingsCollection)formatter.Deserialize(data);

}

This works no problem when it was a Web-Site project. I am guessing assemblies that start with an App_Code.* usually means that it is compiling at runtime. I tried clearing all the ASP temp folders.

Any help is greatly appreciated. Thanks.

Eyup
Telerik team
 answered on 23 Apr 2019
7 answers
622 views
I want to bind the grid to query results.
A person might appear several times and I want to sort the results using person ID.
Is there a way to hide duplicate values (e.g. ID, First name, Last name etc.) in the grid?

I wish there was a property like 'HideDuplicates'  in MS Access.

Maysam
Top achievements
Rank 1
 answered on 22 Apr 2019
5 answers
414 views
Hello,

When I click on a RadMenuItem of a regular RadMenu (not context menu), the menu is not closed.
I try to add some code in the ItemClicked event :
sender.close();
or even:
setTimeout(function() {sender.close();}
But it doesn't work since the menu is reopened just after the close because of a delayed event.

Does anybody have an idea.

Thanks in advance.

BR, Laurent

<%@ Page Language="C#" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<script runat="server">  
 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript">  
        function rmMode_ItemClicked(sender, args)  
        {  
            sender.close();  
        }  
    </script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager  
                id="RSM" 
                runat="server" 
                > 
        </telerik:RadScriptManager> 
        <telerik:RadMenu  
                id="rmMode" 
                runat="server" 
                Flow="Horizontal" 
                OnClientItemClicked="rmMode_ItemClicked" 
                width="100px" 
                > 
                <Items> 
                    <telerik:RadMenuItem  
                            Text="Menu" 
                            > 
                        <Items> 
                            <telerik:RadMenuItem Text="Item1" Value="1" /> 
                            <telerik:RadMenuItem Text="Item2" Value="1" /> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
        </telerik:RadMenu> 
    </div> 
    </form> 
</body> 
</html> 
Ioannis
Top achievements
Rank 1
 answered on 22 Apr 2019
4 answers
272 views
I have an aspx page that contains an asp.net grid created from codebehing and rendered on pageload. This acts as the header for a RadGrid that contains the detail. Both the grids are in separate pannel.
I am using iTextSharp to export both the grids into a pdf. I am using the code below to create a form dynamically and then rerender it into a pdf:

HtmlForm

 

form = new HtmlForm();

 

form.Controls.Add(MyRadGrid1);

 

StringWriter sw = new StringWriter();

 

 

HtmlTextWriter hTextWriter = new HtmlTextWriter(sw);

 

form.Controls[0].RenderControl(hTextWriter);

I am getting several errors during the 'form.Controls[0].RenderControl(hTextWriter)' .
This code is unable to render all the telerik controls in the RadGrid.

Is there any other way that this could be achieved? Should i look into other options that will be better than itextSharp ?

Thanks in advance.

Garry
Top achievements
Rank 1
 answered on 21 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?