Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
For some reason I am not able to Highlight filtered results with entered text in the RadComboBox!

I am able to see all the data and also filter but can't get the

If I type jo in the box I want to see the record John Smith  with "Jo" bolded and highlighted ?
Here is my aspx and JS below:

<

 

telerik:RadComboBox ID="rcbUser" runat="server" AllowCustomText="false" DropDownWidth="300px"

 

 

EmptyMessage="Enter a hint or Select Employee" EnableLoadOnDemand="true" EnableTextSelection="false"

 

 

Height="200px" HighlightTemplatedItems="true" OnItemDataBound="rcbUser_ItemDataBound" Filter="Contains"

 

 

OnItemsRequested="rcbUser_ItemsRequested" SkinID="ddRegular" ToolTip="Enter a hint or Select Employee"

 

 

Width="200px" EnableVirtualScrolling="true" OnClientItemsRequesting="OnClientItemsRequesting"

 

 

ShowMoreResultsBox="true" ItemsPerRequest="15">

 

 

<HeaderTemplate>

Client Script:

 

 

<script type="text/javascript">

 

 

 

 

 

//on upload button click temporarily disables ajax to perform upload actions

 

 

 

 

 

function conditionalPostback(sender, args) {

 

 

if (args.EventTarget == "<%= btnCreate.UniqueID %>") {

 

args.EnableAjax =

false;

 

}

}

 

function OnClientItemsRequesting(sender, eventArgs) {

 

 

var context = eventArgs.get_context();

 

context[

"FilterString"] = eventArgs.get_text();

 

 

 

// if (sender.get_text().length < 2) {

// eventArgs.set_cancel(true);

// }

// //Highlight the matches based on the combobox text

 

 

 

sender.highlightAllMatches(eventArgs.get_text());

 

if (sender.get_items().get_count() > 0)

 

sender.get_items().getItem(0).highlight();

}

 

 

</script>

 

 

 

Simon
Telerik team
 answered on 16 Nov 2010
1 answer
80 views
Steps to reproduce.
go to a rad grid that has an edit form and restricts only one record to be edited at a time.

Set page size to 20,
Open an edit form record (11-20)
Set page size to 10,
Open an edit form record (1-10)
Set page size to 20,

At this point there are 2 edit forms open
Mira
Telerik team
 answered on 16 Nov 2010
1 answer
116 views
Hi,

I am using Radscheduler with modal advanced form. I have designed the advanced form through User control. Now we have  new requirement that on Advanced form we need to provide button to Undo last action in field value changes.

I have added the button for the above requirement  but couldn't find any help to move further to code and implement undo changes. Any help in this regards will be appericiable. Please try and revert back ASAP.

Regards,
Sachin
Sachin
Top achievements
Rank 1
 answered on 16 Nov 2010
0 answers
123 views
Starting from Q3 2010, Telerik provide support for NHunspell and OpenOffice dictionaries for RadSpell for ASP.NET AJAX. You can find information about how to enable this feature in the following code library project: Using OpenOffice spell provider in RadSpell.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 16 Nov 2010
3 answers
339 views
How can I update multiple row in a column, or just an entire column based on some selection? I would like to update multiple records across a singular column at one time.

 Ideally it would be similar to a client side select column where checking would select all  but in my case I have 3 values instead of a boolean value so a drop down menu of some sort would work better to update the column. Is it possible to accomplish this with RadGrid? 
Tsvetina
Telerik team
 answered on 16 Nov 2010
5 answers
128 views
I am using Telerik.Web.UI version 2010.2.929.40.

Whenever I have a RadStylesheetManager on my page with other RadControls (specifically RadTreeview and RadInput), I get the following exception:

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)

If I remove the RadStylesheetManager, everything starts working again.

Any idea why this would be happening?
Simon
Telerik team
 answered on 16 Nov 2010
8 answers
194 views
I have a ComboBox located in the ItemTemplate for a ListBox, and it was working fine prior to updating to the 2010 Quarter 1 Service Pack 1 version. Now, OnItemsRequested is not firing and I get an error saying "The target 'blah' for the callback could not be found or did not implement ICallbackEventHandler" when the control requests items.

If I move the ComboBox outside of the ItemTemplate, it works just fine. It's only when it's within the ListBox. Below is my code. By way of explanation, I'm doing it this way in order to show the the EmptyMessage, and then load the items after, so that it doesn't select the first item.

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
    <script type="text/javascript"
        function LoadFieldCombo(sender, args) { 
            sender.requestItems("", true); 
        } 
    </script> 
</telerik:RadScriptBlock> 
     
<telerik:RadDock ID="UserDefinedFieldsDock" runat="server" Title="User Defined Fields" 
DefaultCommands="ExpandCollapse" Width="100%" EnableDrag="false"
    <ContentTemplate> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
            <telerik:RadListBox ID="FieldListBox" runat="server" Width="375" BorderStyle="None" AllowReorder="true" 
                SelectionMode="Single" AllowDelete="true" OnDeleted="FieldListBox_Deleted" AutoPostBackOnDelete="true"
                <ItemTemplate> 
                    <telerik:RadComboBox ID="FieldCombo" runat="server" EmptyMessage="Select a field" OnClientLoad="LoadFieldCombo" 
                        OnItemsRequested="FieldCombo_ItemsRequested" OnSelectedIndexChanged="FieldCombo_SelectedIndexChanged" /> 
                    <telerik:RadTextBox ID="FieldNameTextbox" runat="server" /> 
                </ItemTemplate> 
                <Items> 
                    <telerik:RadListBoxItem Value="1" /> 
                    <telerik:RadListBoxItem Value="2" /> 
                </Items> 
            </telerik:RadListBox> 
        </telerik:RadAjaxPanel> 
    </ContentTemplate> 
</telerik:RadDock> 

protected void FieldCombo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
    RadComboBox combo = (RadComboBox)sender; 
    combo.Items.Add(new RadComboBoxItem("Form_Type""1")); 
    combo.Items.Add(new RadComboBoxItem("Admit_Date""2")); 
    combo.Items.Add(new RadComboBoxItem("Admit_DX""3")); 
    combo.DataBind(); 
    Page.Form.Controls.Add(combo); 

I did try registering the controls in Page_Load when it is a postback, because I found that advice in an older post, and FieldCombo_ItemsRequested still isn't hit, but I don't get the errors.

This seems to be the only issue with updating to this version within our application, so I'm really hoping to find a resolution, since this version is supposed to fix a different bug that we were having problems with.
Simon
Telerik team
 answered on 16 Nov 2010
3 answers
111 views
I am using the RadEditor within SharePoint and wondering if it is possible to conditionally clean word formatting during the on paste event.

I have looked at the StripFormattingOptions, this doesn't seem to produce the same results as pressing ok to the clean word content dialog when pasting content. E.g. If I set StripFormattingOptions to MSWordRemoveAll it still doesn't convert the bullet points to a UL and LI's. Is there any way to do this within the On Paste event?

Thanks in advance,

Tim
Rumen
Telerik team
 answered on 16 Nov 2010
1 answer
170 views
Hi

I have read an earlier post on how to open a radwindow when the site map node is clicked client side.

function pageLoad() {
           $telerik.$(".rsmItem", $get("RadSiteMap1"))
           .live("click", openWindow);
           
       }

Which works fine - but i need to identify which node was clicked, is there away of passing the RadSiteMapNode text ?

Thanks in Advance
Genady Sergeev
Telerik team
 answered on 16 Nov 2010
11 answers
164 views
I have taken over the design of a website (webpage) which has some of the RadControls (ASP.Net AJAX) in it.  However, I didn't have a copy of the Telerik Web UI on my PC so I downloaded and installed the latest (msi) trial version.

My problem is now I've installed the software on my pc, when i open the website (for design) in VS2008 i get the following error message(s):

"Failed to create the designer Telerik.Web.UI.(controlname) Telerik.Web.UI version=2009.3.1314.35"

In other words (I think), the version used on the VS2008 website is older than the one I've downloaded and installed.

How do I fix the error in displaying the components in design view in VS2008?

Thanks and I hope it all makes sense.

Erjan Gavalji
Telerik team
 answered on 16 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?