Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
214 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
226 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
95 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
123 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
163 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
1 answer
56 views
Hi,
I have a Rad Grid, Button1 and a User control  in a page. I want  to set Button1 (from Page) and  Button2  (from User control) as trigger control to RadGrid . On clicking any of these buttons RadGrid should be updated. I want to use Rad Ajax manager  to set the Updated Control and Ajaxified Control.

I found couple of samples where control in UserControl updates  updates a textbox in parentpage or a control in parent page updates a label in user control but couldnot find any example where  two different controls in parent page and user control act as a trigger to update a single control.   How can I implement the above objective?

Sincerely,
Prava
Mira
Telerik team
 answered on 23 Sep 2010
1 answer
57 views
As topic.

Thx
Pero
Telerik team
 answered on 23 Sep 2010
2 answers
312 views
Hi all

please, have you some suggestion about how to disable special days in the raddatepicker?

Must be iterative. I mean, for example, I want for each month, each year, to get enabled only the 1st day and the 15th day of each month.

Can be do it?

Thank you all

Regards
Fabio
Top achievements
Rank 1
 answered on 23 Sep 2010
1 answer
73 views
I have a page with two RadGrid. When i enter number in my first RadGrid i want the second grid to update because it calculed some number and show me the total in the second grid.
How do i get the second grid to update without having to update the page.
I am working with the double click edit RadGrid.
In aspx i use to do Nameofthegrid.update or refresh. But doesn't work with RadGrid.

thank you 
Gaétanne 
Pavlina
Telerik team
 answered on 23 Sep 2010
1 answer
237 views
Hello,

I have a RadGrid that I'm attempting to use in form editing on. I'm currently using the following GridTemplateColumn. The problem is that what I really need is an InsertItemTemplate like what asp:DetailsView has. This is because I want the Status field to be editable in a RadComboBox on insert, but, non-editable and displayed in a label on edit. Does anyone know if this is possible in RadGrid? I'm assuming that I'll probably have to handle an event and adjust the visibility of fields based on whether it's in insert or edit mode? The problem is that I don't know what event I should use to do this and I also don't know how to lookup the control. I'm assuming I'll probably have to use FindControl() and maybe use the RowIndex to find the proper row in the grid or something. Any help would be greatly appreciated.

 

 

<telerik:GridTemplateColumn HeaderText="Status" SortExpression="Status">

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="StatusRadComboBox" runat="server" SelectedValue='<%# Bind("Status") %>'>

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Text="" Value=""></telerik:RadComboBoxItem>

 

 

 

<telerik:RadComboBoxItem Text="Assigned" Value="Assigned"></telerik:RadComboBoxItem>

 

 

 

<telerik:RadComboBoxItem Text="Lost" Value="Lost"></telerik:RadComboBoxItem>

 

 

 

<telerik:RadComboBoxItem Text="Returned" Value="Returned"></telerik:RadComboBoxItem>

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Value is required"

 

 

 

ControlToValidate="StatusRadComboBox"></asp:RequiredFieldValidator>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="Label1" runat="server" Text='<%# Bind("Status") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 




Jon
Marin
Telerik team
 answered on 23 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?