Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
252 views

Hi,

I need to display categories list in radcombobox from the database

It shoud display in the below manner

      ->   Items
              -> category
                   -> subcategory
                   -> subcategory
                   -> subcategory
            ->category
                  -> subcategory
                 -> subcategory
                 -> subcategory

Please help me

Need urgent reply

Regards,
Prathap


               
Cori
Top achievements
Rank 2
 answered on 23 Sep 2010
1 answer
323 views
Hello,
following is my aspx page code:

<

 

telerik:GridButtonColumn ButtonType="PushButton" UniqueName="ButtonColumn" ConfirmDialogType ="RadWindow" CommandName="Undo" ButtonCssClass ="button" ConfirmText ="Do you really want to Undo the batch?" ConfirmTitle="Confirmation" Text ="Undo" >

 

 

<HeaderStyle Width="2px"/>

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="ButtonColumn2" ConfirmDialogType="RadWindow" CommandName="Finalize" ButtonCssClass="button" ConfirmText="Do you really want to Finalize the batch?" ConfirmTitle="Confirmation" Text="Finalize" >

 

 

<HeaderStyle Width="3px" />
I am using gridbuttoncolumn for confirmation dilaog box but when box is appeared it is to big.How can I set height of the confirmation box?
Thanks so lot for your help

 

Daniel
Telerik team
 answered on 23 Sep 2010
1 answer
113 views
Hi guys

I am following "Creating A Custom Skin" item in the tutorial for the panelbar.

When I open the css file for the default skin with a view to modifying it to match the target website 
I found the Q2 2010 version is completely diffferent from the example shown in the tutorial.

Is there an updated version of the tutorial that reflects the new css format? The example shown produces the result I want
(but changing the green to blue).

Thanks

Clive
Kamen Bundev
Telerik team
 answered on 23 Sep 2010
4 answers
113 views
Hi,
I have the following control-structure:

<master>
    <radscriptmanager />
    <radajaxmanager />
    <page>
        <radajaxmanagerproxy />
        <tabs_usercontrol>
            <radajaxmanagerproxy />
            <radtabstrip />
            <radmultipage>
                <page_usercontrol1>                    
                    <button />
                </page_usercontrol1>
                <page_usercontrol2>                    
                    <button />
                </page_usercontrol2>
                <page_usercontrol3>
                    <radajaxmanagerproxy>
                        <ajaxsettings />
                    </radajaxmanagerproxy>
                    <radtextbox />
                    <button />
                </page_usercontrol3>
                <page_usercontrol4>                    
                    <button />
                </page_usercontrol4>
            </radmultipage>
        </tabs_usercontrol>
    </page>
</master>

Everything works as expected, with ajax postbacks and updates in page_usercontrol3 being correctly handled.

Niow, I want to add a radajaxmanagerproxy and ajaxsettings to the other page_usercontrols.  But, when I add the proxy and settings to any of the other controls to handle the button click, I get a client-side ajax error that says:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_ContentPlaceHolder1_tabs1_MyContent_txtMyInputPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

This error seems to be pointing to a field on the page_usercontrol3 control, which works perfectly well on it's own, but something goes wrong when handing postbacks on the other multipage contents.

Can you please give me a steer as to what is going on here?

I am not using the loadondemand style multipages.  If I do, I get the same problem but worse, as it happens no matter which tab I go to.

Thanks.
Maria Ilieva
Telerik team
 answered on 23 Sep 2010
1 answer
71 views
I am a user control that has a radio button and I am trying to ajaxyfy the radio button from the main aspx page. The code is as followed:

Control MyControl = (Control)Page.FindControl("WebUserControl1");

RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
Label MyLabel = (Label)MyControl.FindControl(
"Label1");

RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(MyButton, MyLabel, null);

When I debug this, I get object reference error on "RadioButton MyButton = (RadioButton)MyControl.FindControl("rdbFirstOne");
"
line.


Please help. Thanks. 
Pavlina
Telerik team
 answered on 23 Sep 2010
4 answers
242 views
I am using a rad tool tip who's values are set in a user control. I am using an 'OnAjaxupdate' method to load the usercontrol and display the tooltip.

But when i hover the mouse over my image icon (targetcontrol of the radtooltipmanager); i get a pop up window prompting
"radToolTipManager response error. An unknown server error has occured. The status code returned is 500"

Looks like this is happens either if I link a css class in the loaded user control or if I add a style inside user control. Look at my below code inside a user control

<style type="text/css">  
 
     .label  
        {  
            color: Blue;  
            font-familyTahoma;  
            font-size: 1em;  
            font-weight:bold 
        }  
          
     .value  
        {  
            colorblack;  
            font-familyTahoma;  
            font-size: .9em;  
        }  
          
</style> 

<asp:UpdatePanel ID="pnl" runat="server" UpdateMode="Conditional">  
    <ContentTemplate> 
          
        <table border = "0"  align = "center" width = "100%" > 
             
            <tr> 
                <td><asp:Label ID="lblContent" runat="server" Text="Content File:" class = "label"></asp:Label></td>  
                 <td><asp:Label ID="lblContentUrl" runat="server" class = "value"></asp:Label></td>  
            </tr> 
              
            <tr> 
                <td><asp:Label ID="lblTotalLinks" runat="server" Text="Total Links:" class = "label"></asp:Label></td>  
                <td><asp:Label ID="lblTotalLinksValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
             <tr> 
                <td><asp:Label ID="lblVersion" runat="server" Text="Version:"  class = "label"></asp:Label></td>  
                 <td><asp:Label ID="lblVersionValue" runat="server" class = "value"></asp:Label></td>  
            </tr> 
              
            <tr> 
                <td><asp:Label ID="lblCheckedOut" runat="server" Text="Checked Out:" class = "label" ></asp:Label></td>  
                <td><asp:Label ID="lblCheckedOutValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
             
            <tr> 
                <td><asp:Label ID="lblCreatedOn" runat="server" Text="Created On:" class = "label" ></asp:Label></td>  
                <td><asp:Label ID="lblCreatedOnValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
 
            <tr> 
                <td><asp:Label ID="lblLastModifiedOn" runat="server" Text="Last Modified On:" class = "label"></asp:Label></td>  
                <td><asp:Label ID="lblLastModifiedOnValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
        </table> 
         
    </ContentTemplate> 
</asp:UpdatePanel> 


What does the error mean?

My code files are
1.usercontrol.ascx (defined the user control),
2.usercontrol.ascx.cs(defined labels and textboxes as properties whose values are set in the default.aspx.cs page),
3.default.aspx (web page) and
4.default.aspx.cs(code behind having 'OnAjaxUpdate' method used for loading usercontrol and populationg the tooltip with values)

Also i am using an external css file to manage the look of the tooltip. But it has no effect on the tooltip content. Sohow can i change the font-size , color etc of the content inside the tooltip by using CSS or inline styles?

Any help in this is highly appreciated...
parthavi h
Top achievements
Rank 1
 answered on 23 Sep 2010
9 answers
254 views
first time page_load fired when page loaded in the radwindow using closeonreload() .
if I am again opening same form in radwindow page_load not fired and session not refreshed.
Can be any idea or code to rectify the issue?
Thanks
Georgi Tunev
Telerik team
 answered on 23 Sep 2010
1 answer
119 views
Dear Telerik Community,

Currently i am developing an dynamic field initializer where validation expressions are used. Those expressions are set dynamicly in de codebehind attached to a textbox for example. My problem lays in the option that i sometimes don't want to set the validation expression in the regexptextboxsetting for example. When i leave the validationexpression empty the textbox will validate but on the wrong way. It automaticly deletes the value of the textbox and gives an warning sign that it is not correct.

My question is, can i set the validationexpression empty so that no validation is set and that it wont validate the control? In the following code snippit you will see what i have done:

/// <summary>
/// Generates the textual control.
/// </summary>
/// <param name="fieldDefinition">Fielddefinition that holds the data that needs to be set on the control.</param>
/// <returns>A textual control based on a textbox.</returns>
private TextBox textualControl(ServiceObjectFieldDefinition fieldDefinition, RadInputManager inputManager)
{
    string controlId = string.Format("dynamicFieldControl-{0}", fieldDefinition.Id);
    this.dynamicFieldControlSequenceIds.Add(controlId);
 
    RegExpTextBoxSetting textualValidationSetting = new RegExpTextBoxSetting();
    textualValidationSetting.BehaviorID = controlId;
 
    TextBox textualTextbox = new TextBox();
    textualTextbox.ID = controlId;
 
    if (fieldDefinition.Mandatory)
        textualValidationSetting.Validation.IsRequired = true;
    if (fieldDefinition.MaxLength != null)
        textualTextbox.MaxLength = Convert.ToInt32(fieldDefinition.MaxLength);
    if (!string.IsNullOrEmpty(fieldDefinition.DefaultValue))
        textualTextbox.Text = fieldDefinition.DefaultValue;
    if (fieldDefinition.DefaultValueFixed)
        textualTextbox.Enabled = false;
    textualValidationSetting.ValidationExpression = fieldDefinition.MinLength != null ? string.Format("{{0},}", Convert.ToInt32(fieldDefinition.MinLength)) : "{0,}";
 
    TargetInput textualValidationInput = new TargetInput(controlId, true);
    textualValidationSetting.TargetControls.Add(textualValidationInput);
 
    inputManager.InputSettings.Add(textualValidationSetting);
 
    this.dynamicControls.Add(textualTextbox);
 
    return textualTextbox;
}

Maybe my thougts are wrong :-) so can somebody help me?

Kind regards,
Michiel Peeters
Martin
Telerik team
 answered on 23 Sep 2010
5 answers
155 views
Hi,

I have come across different situation when connecting to Sqldatasource to grid.  Most of time i drag a RadGrid on the form and configure the sqldatasource. Everything works fine me.

This time i got a requirement which i am binding my sqldatasource during the page load event. In this way also its working fine, i can able to insert, delete and update the records in  the RadGrid.

But when i am trying to use the following property. I am receiving the error : Cannot find column bound to field 'ProductName'

RadGrid1.Columns.FindByDataField(

"ProductName").Display = False

The grid is displaying the 12 columns where i can able to insert/delete/update. But when i count the columns it displaying only 2.
Radgrid1.Columns.Count.

Please tell me how to access the RadGrid fields.

I have to lot things to do with. Also tell me how to "sum" all columns values with this kind of situation.

Thanks.

Regards
Syed Arshad

 

Maria Ilieva
Telerik team
 answered on 23 Sep 2010
1 answer
194 views
I use popup edit form in RadGrid, how to make a required column label 'bold'?
Princy
Top achievements
Rank 2
 answered on 23 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?