Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
307 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
106 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
156 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
100 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
153 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
138 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
3 answers
182 views
Hello,

We have been using Rad popup and would like to know what are the ways to access the controls in popup such as textbox, lable, dropdowns etc., before the popup is closed.

Example scenario:

Clicking edit button opens a popup window, where the user enters some data and upon clicking Save button, each control is to be validated server side-using cs or client side using/javascript before the popup is closed.

Appropriate message is to be displayed in the popup itself in case of any validation violation

Thank you

Regards
Raj
Tsvetina
Telerik team
 answered on 16 Nov 2010
1 answer
77 views

So I’m using the directoryinfo class to obtain the filenames from a network share, and then display them into my radcombobox. Everything works fine, but what I’d like to do is create a checkbox next to all of the values in the combobox so the user can select multiple files.


When I do it without the itemtemplate, all the filenames display fine, but when I try to use them to add the checkbox, the checkboxes show up but the filenames don’t. Here’s what I have:

<telerik:RadComboBox ID="cboFiles" runat="server" AutoPostBack="true" Width="350px" OnItemDataBound="cboFilesDBound">
     <ItemTemplate>
         <asp:CheckBox ID="chkFile" runat="server" /> 
     </ItemTemplate>
 </telerik:RadComboBox>
What do I need to put next to the checkbox to get the filenames to display? Again, when I do this without the template the filenames show fine. I tried using databinder.eval with some custom attributes like the demo, but it didn't work.

Here's the codebehind:
protected void setDirectory(String path)
{
    RadComboBox cb = (RadComboBox)FindControl("cboFiles");
     
    DirectoryInfo di = new DirectoryInfo(path);
    FileInfo[] files = di.GetFiles();
    foreach (FileInfo f in files)
    {
        RadComboBoxItem item = new RadComboBoxItem(f.Name, f.Name);
        item.Attributes["displayName"] = f.Name;
        cboFiles.Items.Add(item);
    }
 
}


Simon
Telerik team
 answered on 16 Nov 2010
9 answers
150 views
Hello,

I am having an issue defining the forecolor of a dynamic node thorugh a web service.

By setting the forecolor before rendering the page, it works fine through code.

When fetching more nodes through the web service, there is no forecolor property to set.

We use the skin manager.  And I don't want to change the default skin css files since the color change can be user specific.  Also, I only want to change the forecolor for this treeview not all of them on the page.

Any help would be appreciated.

Thanks,
Todd.
Cristopher
Top achievements
Rank 1
 answered on 16 Nov 2010
5 answers
123 views
I have a grid with an external form (in a user control). While in the edit form, if I press the Enter key, the drop list for the filter menu is displayed within the Edit form at the location of the mouse pointer within the form. I think that the Enter key is triggering the submit funtionality of the first filter column in the grid (the first filter column in the grid has the filter button highlighted). How can I disable this behavior when the editting?

My hack/workaround for this was to turn off filters and headers (for cosmetic reasons) once I capture the Edit command item like this:

RadGrid1.AllowFilteringByColumn = isVisible
RadGrid1.ShowHeader = isVisible

and then turn them back on once the editing form was closed, but this seems like, well, a hack.

Does anyone know of a more elegant way to disable/prevent this from occurring?

Thanks,

Jon
Tsvetina
Telerik team
 answered on 16 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?