Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Is there a way to make all the the detail rows within each master table row the sam color? Is there a setting in the aspx or do I have to do in code?

Thanks  
Shinu
Top achievements
Rank 2
 answered on 24 Dec 2008
3 answers
176 views
After the Q3 upgrade, the routine I got from a blog I was refered too quit working. I need to access the Subject label and change the text, however, I have a java error about the parent control (Parent.Controls(0)). The error occurs at the bottom of this routing, (around line 69) but basically, some of this works and some of this does not.
I want to change subject text to say: "Event Summary". Can you help me?
Thanks,
~bg

    Protected Sub RadScheduler1_FormCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated  
 
        HiddenFieldAppointmentID.Value = e.Container.Appointment.ID  
 
        grdEvent.DataBind()  
 
        If (e.Container.Mode = SchedulerFormMode.AdvancedEdit) OrElse (e.Container.Mode = SchedulerFormMode.AdvancedInsert) Then  
            'Find and hide the advanced control panel:  
            'Dim advancedPanel As Panel = DirectCast(e.Container.FindControl("AdvancedControlsPanel"), Panel)  
            'advancedPanel.Visible = false;  
 
            RadScheduler1.Height = 350 
 
            ''Find the Recurrency checkbox and hide it.  
            Dim recuranceCheckbox As CheckBox = DirectCast(e.Container.FindControl("RecurrentAppointment"), CheckBox)  
            recuranceCheckbox.Visible = False 
 
            ''Find the All Day checkbox and hide it.  
            Dim AllDayEvent As CheckBox = DirectCast(e.Container.FindControl("AllDayEvent"), CheckBox)  
            AllDayEvent.Visible = False 
 
            'Find the Subject textbox and set its Height:  
            Dim subjectTextbox As TextBox = DirectCast(e.Container.FindControl("Subject"), TextBox)  
            subjectTextbox.Height = Unit.Pixel(20)  
            subjectTextbox.MaxLength = 50 
            subjectTextbox.CssClass = "NormalBlack" 
            'subjectTextbox.BackColor = System.Drawing.Color.LemonChiffon  
 
            ''Find the DropDownList for the Room resource and set its SelectedIndex property.   
            ''This is useful if you want to default to a specific resource selection. However,  
            ''you should leave only the AdvancedInsert clause from the if statement above.   
            Dim resEventTypeDDL As DropDownList = DirectCast(e.Container.FindControl("resType"), DropDownList)  
            resEventTypeDDL.Width = 600 
            'resEventTypeDDL.SelectedIndex = 1 
 
            'Find the TextBox for the EventLocation custom attribute and set its properties:  
            Dim attrEventLocationTextbox As TextBox = DirectCast(e.Container.FindControl("AttrEventLocation"), TextBox)  
            'attrEventLocationTextbox.BackColor = System.Drawing.Color.LemonChiffon  
            attrEventLocationTextbox.MaxLength = 255 
            attrEventLocationTextbox.Width = 600 
            attrEventLocationTextbox.CssClass = "NormalBlack" 
 
            Dim attrEventDescriptionTextbox As TextBox = DirectCast(e.Container.FindControl("AttrEventDescription"), TextBox)  
            'attrEventDescriptionTextbox.BackColor = System.Drawing.Color.LemonChiffon  
            attrEventDescriptionTextbox.TextMode = TextBoxMode.MultiLine  
            attrEventDescriptionTextbox.Rows = 4 
            attrEventDescriptionTextbox.Width = 600 
            attrEventDescriptionTextbox.CssClass = "NormalBlack" 
 
            'The description labels for Subject, Resources and Custom Attributes require a different  
            'approach since they are WebControls which dynamically add a label.   
 
            'Change the description for the EventLocation attribute:  
            Dim attrWebcontrol1 As WebControl = DirectCast(e.Container.FindControl("LblAttrEventLocation"), WebControl)  
            Dim attrLabel1 As New Label()  
            attrLabel1.Text = "Location:" 
            attrWebcontrol1.Controls.Clear()  
            attrWebcontrol1.Controls.Add(attrLabel1)  
 
            Dim attrWebcontrol2 As WebControl = DirectCast(e.Container.FindControl("LblAttrEventDescription"), WebControl)  
            Dim attrLabel2 As New Label()  
            attrLabel2.Text = "Description:" 
            attrWebcontrol2.Controls.Clear()  
            attrWebcontrol2.Controls.Add(attrLabel2)  
 
            'Change the description for the Subject. Please, note that since the description control   
            'for Subject does not render an ID, you need to use the first child of the Parent control   
            'of the subject TextBox.  
            Dim subjectDescription As WebControl = DirectCast(subjectTextbox.Parent.Controls(0), WebControl)  
            Dim subjectLabel1 As New Label()  
            subjectLabel1.Text = "Event Summary:" 
            subjectDescription.Controls.Clear()  
 
            subjectDescription.Controls.Add(subjectLabel1)  
        End If  
    End Sub 
Stephen
Top achievements
Rank 2
 answered on 24 Dec 2008
2 answers
156 views
I've set up an initial test ASPX page to experiment with the Radwindow. I've noticed that in Firefox 3 the parent page continues to load...and load... and load as soon as and long after the Radwindow has opened. As soon as the Radwindow opens, the circling "loading" animation begins spinning in the upper right hand corner of Firefox's menu bar, and the little white window opens up down below on the right-hand side of the browser's status bar, but no progress bar appears, and on the left-hand side of the status bar there's a text message "Transferring data from [my localhost]". This behavior continues after I close the Radwindow and persists until I either reload the page or navigate away from it.

On thing I tried was to load a very simple HTML page that has no javascript and only a small amount of text content. This did not resolve the issue.

I've noticed a similar behavior on the Telerik demo page (http://demos.telerik.com/aspnet-ajax/Window/Examples/Default/DefaultCS.aspx), with the difference being that on the Telerik page this behavior only seems to occur when you close the RadWindow. The status bar and the "Transferring data from demos.telerik.com" message don't appear to stay open indefinitely, but the spinning animation in the upper right goes on and on... I've been searching the forums for an answer to this for at least 15 minutes and whenever I click back to the tab with the demo page, the spinning circle is still there... Please not that I have not tested your demo page extensively...

Any ideas on how to resolve this?

Thanks.
Martillo
Top achievements
Rank 2
 answered on 23 Dec 2008
2 answers
146 views
Hi,
I have a user control in SharePoint and i am experiencing a wierd issue.

The first time i click on a "Get Number" button, it does an AJAX postback and i get the data back. But after that all further requests do not fire. 

I also have a radio button that has AutoPOstback set to true. First time it works. But after that it doe snot do anything. Same issue with other controls also.

Anyone experienced this before ?

Thx
H

Richard Arscott
Top achievements
Rank 1
 answered on 23 Dec 2008
0 answers
90 views
Whenever I add this piece of code
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
          <telerik:AjaxSetting AjaxControlID="ddlStudy">  
            <UpdatedControls> 
              <telerik:AjaxUpdatedControl ControlID="lstDataset" /> 
            </UpdatedControls> 
          </telerik:AjaxSetting> 
        </AjaxSettings> 
      </telerik:RadAjaxManagerProxy> 

I get this poping up next to my List Box(lstDataset) - I don't have a lstDatasetPanel within my project.
2715|updatePanel|ctl00_ctl00_ContentPlaceHolder1_lstDatasetPanel

What i'm doing is on change of a drop down I want to populate the list box with the data.  When I try and change the drop down more then once it gives me this error:

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

Thank You
Jerry

jerry
Top achievements
Rank 1
 asked on 23 Dec 2008
10 answers
242 views
hi,

I am using telerik treeview control (asp.net). my requirement is add the context menu at run time. At each node  i  context menu items are different depending on database field. For that i am using nodedatabound event. but that event is not firing, how to make it enable that.

wating for replay.

anand gole
anand
Top achievements
Rank 1
 answered on 23 Dec 2008
0 answers
143 views
Hi !!

just a little comment before Christmas. For my project, I have to translate the scheduler in French, so I've done a .resx file for the fr-CA culture.

When I put the value "aujourd'hui" in the "HeaderToday" field of the resources file, the new text (aujourd'hui) pass under the calendar image. In a perfect world. the image's position should be adjusted depending of the text length.

It's not critical, but it if could be corrected in next version, it would be nice :) !

Bye and merry Christmas to all of you !
Lynda Lafreniere
Top achievements
Rank 1
 asked on 23 Dec 2008
2 answers
107 views
Hello,

On page 52 (pg 40 in print PDF) "Context Menus", I'm doing the lesson on pages 53 - 55, however the context menu does not expand to show all the various options as shown on page 55. 

I copied and pasted the code in my project, but I kept getting a compilation error targeting "Imports Telerik.Web.UI (in red):
"Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)."  

Once I deleted the "Namespace Multipage" keyword structure.  I don't understand why I was getting a compilation error just by using the namespace. ??? 

Here is the code per the lesson (as well as in my project):

 

Protected Sub RadContextMenu1_ItemClick(ByVal sender As Object, ByVal e As  
Telerik.Web.UI.RadMenuEventArgs)  
' look only at child items  
If e.Item.Level = 1 Then  
' find child items under "Colors" parent item  
If (TryCast(e.Item.Parent, RadMenuItem)).Text.Equals("Colors") Then  
' set the color picker preset to the selected preset  
RadColorPicker1.Preset = DirectCast([Enum].Parse(GetType(ColorPreset), e.Item.Text),  
ColorPreset)  
End If  
End If  
End Sub  
End Class 

So my two questions would be:
1. Why is deleting the "Namespace" keyword eliminating the compilation error?  I thought creating and using Namespaces is a way to
"package" classes.  Thus, making them more unique.

2.  Why is the  RadContextMenu control working correctly in my application for the RadColorPicker control?  (All I see when I right-click is the word "Color".  No subitems as shown on page 43.

Thanks,
R2

 

 

 

 

 

R2
Top achievements
Rank 1
 answered on 23 Dec 2008
2 answers
130 views
    I'm new to Telerik controls and trying to do the Getting Started section from the documentation on RadUpload.  The only variant in my code is that the upload control is in the content form for a Master page.  (The master page has the ScriptManager on it.)

    When I click Submit, the files are transferred to the Files folder, but the RadProgressArea never becomes visible.

    I'm executing this code using the default F5 in Visual Studio 2008, which launches the page in the VS's ASP.NET Development Server.  I'm running on WinXP, SP2, and using RadControls for ASPNET AJAX Q3 2008.

    Are there any known issues with this configuration?  Is there something else I should try?

Thanks,
    Andy
Andrew
Top achievements
Rank 1
 answered on 23 Dec 2008
1 answer
98 views
Followed the example exactly. but gettging an error still

Line 452:                if (!object.Equals(this.RadToolTipManager1, null))Line 453:                { Line 454:                    DataRowView currentRow = (DataRowView)e.Item.DataItem;Line 455:                    this.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row["PAR_PartID"].ToString(), true);Line 456:                }
            
            
From the item databound method of 
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)    {        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)        {            Control target = e.Item.FindControl("targetControl");            if (!object.Equals(target, null))            {                if (!object.Equals(this.RadToolTipManager1, null))                {                     DataRowView currentRow = (DataRowView)e.Item.DataItem;                    this.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row["PAR_PartID"].ToString(), true);                }            }        }
            
any help is greatly appreciated.
            
Svetlina Anati
Telerik team
 answered on 23 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?