Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Hi,
     I have seen the example of dynamic creation of dock. In my scenario i have to create dynamic dock on button click event which is present in another dock. If i don't put my button in ajax panel postbak occures and the dynamcally generated dock appear in the zone. But I don't want post back so i have put my form design inside Ajax panel. But this time even my code get executed the dynamically generated dock is not appear in the zone.Can anybody give me some suggestion or sample. thanks

sachin.
 
Sophy
Telerik team
 answered on 29 Aug 2008
1 answer
91 views
Ok, first I am going to complain about the website...

Why cant I add an attachment to a post?
How do I submit a support issue? Could you make it more difficult??

Ok, in the past I went back and forth with support, we came to a working version of hosting a ascx file that included a RadCombo with an item template that included 2 RadCalendars.  This basiclly allow for between, <=, ans >= date filters.

I recently upgraded to 2008 version 2 and now when clicking the 'Month' or the 'Year' in the RadCalendar header, the choice list draw behind the control.

I do have a sample but I can no longer attach it to a post???

Thanks

Sebastian
Telerik team
 answered on 29 Aug 2008
2 answers
94 views
hello,
i have a template column in the grid which has a Label it it.

i am adding text on this label in ItemDataBound event on the basis of id geeting from that row.

and now i want to sort this column how can i do it.
i have tried SortExpression which get the field but i am not binding that field therefore it gives me error
'cannot find column Rating'.

Thanks.
altaf
Top achievements
Rank 1
 answered on 29 Aug 2008
1 answer
150 views
I have a following configuration of controls and I can't get the desired result.

ParentPage (aspx)
- RadWindowManager
- RadWindow

Invokes the page below as a RadWindow

PopupWindow (aspx)
- RadWindowManager
- RadWindow

PopupWindow invokes another pick-list window that is supposed to be on
top of PopupWindow but it pops UNDER the PopupWindow instead.

Here's the invocation code:

function OpenPopup2()
        {
            var parentWindow = GetRadWindow().BrowserWindow;
            var windowManager = parentWindow.GetRadWindowManager();
            var objWindow = windowManager.open("/PopupWindow2.aspx", "Popupwindow2");
           
            objWindow.center();
            objWindow.SetActive(true);
           
            return false;
        }

Does this problem have to do with the fact that the popup is being invoked within an IFRAME?

From the parent window I can invoke indefinite number of child windows with correct display Z-order but it seems like I can't do it properly programmatically from a child IFRAME.

Any workaround for this?

Thanks!
Georgi Tunev
Telerik team
 answered on 29 Aug 2008
1 answer
137 views
Hi, I want to validate the radTree, checking if the user has at least selected one node. How can I do that? I tried to create a custom control binding it to a server side validation function but I receive an error saying that the control cannot be validated.

Can you please help me?

Thanks,
Marco
Yana
Telerik team
 answered on 29 Aug 2008
4 answers
188 views
            Dim loRadRotator As New DAREnterprises.Web.UI.clsRadRotator  
            loRadRotator.ID = "rrHome1" 
            loRadRotator.InitialItemIndex = 0 
            loRadRotator.ItemTemplate = New DAREnterprises.Web.clsRadRotatorTemplate  
            loRadRotator.RotatorType = Telerik.Web.UI.RotatorType.SlideShow  
            loRadRotator.SlideShowAnimation.Type = Telerik.Web.UI.Rotator.AnimationType.Fade  
            loRadRotator.FrameDuration = 5000 
            loRadRotator.BackColor = Drawing.Color.Transparent  
            loRadRotator.Height = New Unit(185)  
            loRadRotator.DataSource = loRotatorData1 
            Call loRadRotator.DataBind()  
            Call Me.divRadRotator1.Controls.Add(loRadRotator)  
 
Hi

I am creating my RadRotator programatically as above.

  • InitialItemIndex
  • RotatorType
  • Backcolor

All of the above don't seem to have an effect.

My Template is as below ...

Public Class clsRadRotatorTemplate  
        Implements ITemplate  
 
        Public Sub InstantiateIn(ByVal loContainer As System.Web.UI.Control) Implements System.Web.UI.ITemplate.InstantiateIn  
            Call loContainer.Controls.Clear()  
 
            Dim loControl As New LiteralControl("<table style=""width: 100%; height: 100%""><tr><td>")  
            Call loContainer.Controls.Add(loControl)  
 
            Dim loImage As New Image  
            loImage.Height = New Unit(140)  
            AddHandler loImage.DataBinding, AddressOf img_DataBinding  
            Call loContainer.Controls.Add(loImage)  
 
            loControl = New LiteralControl("<br /></td></tr><tr><td>")  
            Call loContainer.Controls.Add(loControl)  
 
            Dim loText As New Label  
            AddHandler loText.DataBinding, AddressOf lblText_DataBinding  
            Call loContainer.Controls.Add(loText)  
 
            loControl = New LiteralControl("</td></tr></table>")  
            Call loContainer.Controls.Add(loControl)  
        End Sub  
 
        Sub img_DataBinding(ByVal sender As Object, ByVal e As EventArgs)  
            Dim loImage As Image = TryCast(sender, Image)  
            Dim loFrame As Telerik.Web.UI.RadRotatorItem = TryCast(loImage.NamingContainer, Telerik.Web.UI.RadRotatorItem)  
            loImage.ImageUrl = DirectCast(loFrame.DataItem, clsRotator).ImageURL  
            loImage.AlternateText = DirectCast(loFrame.DataItem, clsRotator).AlternateText  
        End Sub  
 
        Sub lblText_DataBinding(ByVal sender As Object, ByVal e As EventArgs)  
            Dim loLabel As Label = TryCast(sender, Label)  
            Dim loFrame As Telerik.Web.UI.RadRotatorItem = TryCast(loLabel.NamingContainer, Telerik.Web.UI.RadRotatorItem)  
            loLabel.Text = DirectCast(loFrame.DataItem, clsRotator).Text  
        End Sub  
 
        Public Sub New()  
            Call MyBase.New()  
        End Sub  
 
    End Class 

If you want to see the problem have a look at http://the-dl-outlet.co.uk

Kind Regards

David
Georgi Tunev
Telerik team
 answered on 29 Aug 2008
1 answer
121 views
Hi,

I was building a proof of concept demo site and wanted to pull off the following scenarios:

1) I have a textbox or any control in the master page and through client-side javascript(on keydown) I want to get a reference to a control that is in a child page and do a post back on that control(more than likely a grid).

2) Do the reverse of scenario 1) and get a reference to a control and  update it  on the master page or another child page using javascript from a child page.

and I need to figure out 1) and 2)  for Webusercontrols also.


I haven't been able to find a good example of how to reference controls through javascript from master pages that are in child pages(or user controls) or the reverse of this situation.

if you could post some links to sample projects/sample code or links to other threads or documentation on this topic.

any help would be appreciated.

thank you.
Bodevain Svensson
Top achievements
Rank 1
 answered on 29 Aug 2008
1 answer
89 views
Hi Guys...
If I put a code like that in my page:

<telerik:RadSplitter ID="RadSplitter1" Width="100%" runat="server"
   <telerik:RadPane ID="RadPane1" runat="server"
   </telerik:RadPane> 
</telerik:RadSplitter> 

And after that or before that I put my own component (Microsoft Ajax enabled as well) I got the follow javascript error:

Line: 4762
Error: Sys.ArgumentTypeException: Object of type 'Function' cannot be converted to type 'String'.
Parameter name: id

This error was throw in funtion : Sys$_Application$findComponent(id, parent) in Microsoft Ajax Framework...

Can you help-me with that?

Thanks


Tsvetie
Telerik team
 answered on 29 Aug 2008
0 answers
94 views
Hello friends, I'm using Telerik Ajax Manager Rating system that works like Microsoft rating system but there is a little difference in that, when i rating the article and click on Post button it shows the rating and feedback in a CSS panel bar but i want that when i rating the article and click on post it will be store in database with ajax technique and after that when i hover in rating bar it display that Thank you for your feedback. or you have already rated this article. I can show you my Post Button code behind: 

Protected Sub btnPostComment_Click(ByVal sender As Object, ByVal e As EventArgs) If Me.lblHiddedStars.Value.Length > 0 Then Me.lblInsertedComment.Text = Me.txtComments.Text Me.lblInstructions.CssClass = "" Me.lblInstructions.Text = "Your feedback:" Me.lblSelectedStars.Text = (Int32.Parse(Me.lblHiddedStars.Value) + 1).ToString() Dim str As String = "CloseToolTip1();" ScriptManager.RegisterClientScriptBlock(Me.Page, GetType(Page), "closeTooltip", str, True) Else Me.lblInstructions.CssClass = "InsertComment" Me.lblInstructions.Text = "Please rate this page first." End If End Sub 

thank you
saquib
saquib
Top achievements
Rank 1
 asked on 29 Aug 2008
1 answer
168 views
hiya,

I need to be able to move files between directories, and I was thinking that the following demo was a step in the right direction:

http://demos.telerik.com/ASPNET/Prometheus/TreeView/Examples/Functionality/DragAndDropNodes/DefaultCS.aspx

I need to be able to  drag and drop  a directory from the right  treeview  (which will represent  the file  system directory) 

When the treeNode is dropped onto the rightHand treeview, the files should be copied from the left hand side treeview node (representing  the directory) to the directory in the right hand side.

I have 2 questions:
1) how do I get the treeview to represent the fileSytem directory of the computer?
2) how do I  assign the "location" of the directory to the treNode, ie, if the directory of the treeNode is "C:\\MyFiles\myDir"  then how do I assign this to the node?

Many thanks, I'm under a bit of a deadline for this one!

yogi
Atanas Korchev
Telerik team
 answered on 29 Aug 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?