Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
46 views
HI,

we thought to use RadUpload for Silverlight, to provide multiple file selection.

But we want that if user doesn't install silverlight , it should be provided with by default the RadAsyncUpload / RadUpload. 

Can that be automatically ? or what i need to do for ?

Thanks & Regards,
Dimitar Milushev
Telerik team
 answered on 20 May 2010
7 answers
211 views
Hi I tried the code shown in http://www.telerik.com/help/aspnet-ajax/grdpreventgroupsexpansion.html
to hide the expand collapse button in my grouped grid.

However I was not able to remove the padding which shows up in IE7.

Can you help me with CSS to remove the padding for the grid. I have several other grids in my project. Is there something I can specify in the grid declaration itself?

Thanks.


Dimo
Telerik team
 answered on 20 May 2010
1 answer
102 views
Hello,

I need to add an event to a RadHtmlField in order to check the HTML created by content editors. I have followed the patterns defined in the technical documentation, but I cannot link any of the events in the examples on the client side: OnClientInit, OnClientLoad, OnClientCommandExecuting, OnClientCommandExecuted, OnClientPasteHtml and OnClientSelectionChange. When I add one of these events I receive the following error:

An error occurred during the processing of . Type 'Telerik.SharePoint.FieldEditor.RadHtmlField' does not have a public property named 'OnClientLoad'.

Can I associate those events to a RadHtmlField?

Thank you very much for your help.

Best Regards.
Rumen
Telerik team
 answered on 20 May 2010
3 answers
228 views
On the DataManager.ValuesYColumns property, I tried using a Non-integer column on the ValuesXColumn and did the tooadate conversion on the itemdatabound event and it worked. But it wont work on the ValuesYColumns
Ves
Telerik team
 answered on 20 May 2010
4 answers
79 views
After reading those threads,

http://www.telerik.com/community/forums/aspnet-ajax/grid/popup-editmode-not-working-in-ie-6.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/editmode-quot-popup-quot-problem.aspx




I am figuring out that this also applies for Grids within Docks.

We have a grid within a dock and we use the modal popup feature but even the popup is grayed out. If we remove the grid from the grid and place it somewhere else it works.

As in the other cases, it works fine with Firefox & Chrome but not in Internet Explorer.

In this case, is there any workaround ?

Thanks,
Pierre

pylacroix
Top achievements
Rank 1
 answered on 20 May 2010
7 answers
216 views
Hi

I have created a user control (ascx) that contains a RadMenu comprised of images.  In order to remove the padding from around the images I use the following code (http://demos.telerik.com/aspnet-ajax/menu/examples/appearance/imageonly/defaultcs.aspx):

<style type="text/css">
    
        div.RadMenu a.rmLink .rmLeftImage
        {
            position: relative;
        }
        
        div.RadMenu .rmItem .rmLink .rmLeftImage,
        div.RadMenu .rmItem .rmLink,
        div.RadMenu .rmLink .rmText
        {
            margin: 0;
            padding: 0;
        }
        
</style>

This works perfectly for the menu in my user control.  However, the user control is then embedded in a master page which contains its own RadMenu, and the above code also removes the padding from that menu, which I don't want to happen.

So basically I require that the style be applied only to the RadMenu that's in the user control and to not affect the RadMenu that's in the master page...

Thanks for any suggestions
Yana
Telerik team
 answered on 20 May 2010
1 answer
201 views
Hi, I am collecting information from the user in a RadWindow.

The RadWindow contains a repeater control.  Each item in the Repeater control contains a regular asp.net CheckBox and TextBox control.  When I iterate through the items of the repeater on postback, the items do not contain the values that were entered by the user, but default values instead.

The markup looks like this:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

    <Windows>

         <telerik:RadWindow

                ID="rwManageCategories" 

                runat="server"

                Title="Manage Categories" 

                Height="400px"

                Width="600px" 

                Left="150px" 

                ReloadOnShow="true" 

                ShowContentDuringLoad="false" 

                Modal="true"

                Behaviors="None" 

                KeepInScreenBounds="True" 

                VisibleStatusbar="False"

         >

            <ContentTemplate>

                <asp:Label ID="lblRulesetCategories" runat="server"></asp:Label><br /><br />

                <asp:Label ID="lblErrorRulesetCategories" ForeColor="Red" runat="server"></asp:Label>

                <asp:Repeater ID="rptrRulesetCategories" runat="server">

                    <ItemTemplate>

                        <asp:CheckBox id="cbRulesetCategorySelected" Checked='<%# Eval("IsSelected") %>' runat="server"></asp:CheckBox>

                        <asp:HiddenField ID="hdnCategoryId" Value='<%# Eval("CategoryId") %>' runat="server" />

                        <asp:Label ID="lblRulesetCategoryName" Text='<%# Eval("Name") %>' runat="server"></asp:Label>

                        <asp:TextBox ID="tbRulesetCategorySequence" Text='<%# Eval("Sequence") %>' runat="server"></asp:TextBox>

                        <asp:CompareValidator ID="cvRulesetCategorySequence" ControlToValidate="tbRulesetCategorySequence" Operator="DataTypeCheck" Type="Integer" Text="* Invalid" Display="Dynamic" runat="server"></asp:CompareValidator>

                        <br />

                    </ItemTemplate>

                </asp:Repeater>

                <br />

                <br />

                <asp:Button ID="btnManageCategoriesSave" Text="Save" OnClick="btnManageCategoriesSave_Click" runat="server" />

                <asp:Button ID="btnManageCategoriesCancel" Text="Cancel" OnClick="btnManageCategoriesCancel_Click" runat="server" />

            </ContentTemplate>

         </telerik:RadWindow>

    </Windows>

</telerik:RadWindowManager>


The code-behind looks like this:

    protected void btnManageCategoriesSave_Click(object sender, EventArgs e)

    {

        // Get collection of checked ruleset categories in repeater

        var checkedCategoryIDs = from ri in this.rptrRulesetCategories.Items.Cast<RepeaterItem>()

                                 let hdnCategoryId = (HiddenField)ri.FindControl("hdnCategoryId")

                                 let cbRulesetCategorySelected = (CheckBox) ri.FindControl("cbRulesetCategorySelected")

                                 let tbRulesetCategorySequence = (TextBox)ri.FindControl("tbRulesetCategorySequence")

                                 select new

                                 {

                                     CategoryId = Convert.ToInt32(hdnCategoryId.Value),

                                     Checked = cbRulesetCategorySelected.Checked,

                                     Sequence = tbRulesetCategorySequence.Text == "" ? null : tbRulesetCategorySequence.Text

                                 };

}

When I hover over the checkedCategoryIDs variable, the Checked value is always false and the Sequence value is always blank for all items even though I do check various checkboxes, and enter values into various sequence textboxes.  This doesn't appear to be a problem with my LINQ statement, as I can also enter the following into the immediate window and still get a blank value:

? ((TextBox) this.rptrRulesetCategories.Items[0].FindControl("tbRulesetCategorySequence")).Text
""

The radwindow was working before when I was using a checkboxlist instead of a repeater, and I was using the same approach with collecting the values in a LINQ statement...

Any ideas on how I can resolve this?

Thanks,
James

** UPDATE **
My bad, the radwindow works fine.  I was rebinding the repeater, and erasing the values before I had a chance to retrieve them...
Svetlina Anati
Telerik team
 answered on 20 May 2010
1 answer
48 views
Hi,

I have used your product and its working great. I have added support for javascript. But please suggest me how to add support for asp code. If somebody wants to put asp code, please help me. I have tried putting AllowScripts="True" and its working for javascript, however
for asp, i am looking at actual code and not content on website !!

Thanks a ton,

Regards,

Gaurav Saxena
Rumen
Telerik team
 answered on 20 May 2010
1 answer
76 views
I am trying to add some custom images to the end of each GroupHeader in my grid. In the ItemDataBound event, I am catching all the GridGroupHeaderItem occurrences and doing the following:

item.DataCell.Text = string.Format("<table style='border-collapse: none' class='groupcontrol'><tr><td>{0}</td><td>{1}</td><td>{2}</td></tr></table>", item.DataCell.Text, 
                                                   "<div onclick='WorkAreaControl_SelectGroupRows()' title='Select All Accounts In This Group Only'><img src='../App_Themes/Office/Images/16x16/Download Add.png'/>&nbsp;Select All In Group</div>"
                                                   "<div onclick='WorkAreaControl_DeselectGroupRows()' title='Deselect All Accounts In This Group Only'><img src='../App_Themes/Office/Images/16x16/Download Delete.png'/>&nbsp;Deselect All In Group</div>"); 
 

When this renders, I am getting an extra paragraph <p> element before and after this table.  Why is that happenng and how do I make it stop?

I have attached a screenshot that show the grid and the HTML markup generated below it


Yavor
Telerik team
 answered on 20 May 2010
1 answer
71 views
Hi,

I have customized the wizard to the extent of merely changing the text and .css design and embedding the page in a masterpage.  I'm getting the following common error... "Object reference not set to an instance of an object." ... when I click the next button in the first control:

<asp:Button runat="server" ID="nextButton" Text="Next" OnClick="nextButton_Click" 
    CssClass="nextButton" PostBackUrl="wizard.aspx" /> 

The line of code it's hanging on is the first label update in the Preview section.

Label 
titleLabelPreview = (Label)previewControl.FindControl("titleLabel"); 

Would this be related to changes I have ignored after using a masterpage?


Yana
Telerik team
 answered on 20 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?