Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views
I want the radscheduler to show specified date appointments instead of todays date. I was doing that like this in page_load event.

If

  Not IsPostBack Then
sDate = DateTime.Parse(Request.QueryString("sDate").ToString())
RadScheduler1.DataSource = CreateDataTable()
RadScheduler1.SelectedDate = sDate
End If

But the problem is with rendering of time headers on the lefthand side of the scheduler. I am seeing the incorrect time header on the scheduler. Not sure whats wrong i am doing

Dimitar Milushev
Telerik team
 answered on 15 Apr 2008
1 answer
155 views
Hello.

I put the editor into full-screen mode (by clicking the toolbar button).  I then right-click on an image and go into its properties.  When I return, the scroll bars on the browser window reappear (I'm using Firefox) and I'm able to scroll up the window moving the "full-screen" editor down the page.

Thank you for checking into this.
Rumen
Telerik team
 answered on 15 Apr 2008
2 answers
182 views
Is it possible to change the numeric type through javascript?

Steve
Telerik team
 answered on 15 Apr 2008
8 answers
213 views
I use aradwindowManager on my page. In a "TextChanged" event I want to add a new window to the manager. I use follwing code in code behind:

                    objWindow = New RadWindow  
                    objWindow.ID = "rwSearchShiftNo" 
                    objWindow.OpenerElementID = "lnkSearchShiftno" 
                    objWindow.NavigateUrl = "search.aspx?searchtype=shiftno&show=yes" 
                    objWindow.ClientCallBackFunction = "SearchDialogCallBackFunction" 
                    rwmSearchDialog.Windows.Add(objWindow)  
 

The problem is that when I click nowe on the specified control defined in "OpenerElementId" nothing happens. What am I doing wrong?
Markus
Top achievements
Rank 1
 answered on 15 Apr 2008
1 answer
107 views
Hi all,

When I first load my web page, I use the NeedDataSource event to bind my RadGrid to my data source.  This works fine.  But I now added a start date and end date textbox out side of my radGrid.  I also have a button outside of the radgrid.  I want to key in a start and end date and then click the button and re-populate the radgrid.  How can I do this?   Can I call the NeedDataSource event from the button click event?

Thanks,
Bob
Ves
Telerik team
 answered on 15 Apr 2008
2 answers
260 views
I'm getting an error of "[control].get_value is not a function". I've been trying to hunt down the proper javascript... but everything I've found suggests that the get_value should work.

<script type="text/javascript"> 
 function PreventPostback(sender, eventArgs) 
 { 
    var txtGrossCommission = document.getElementById('<%= radNumCommissionValue0.ClientID %>'); 
    var txtTypeValue = document.getElementById('<%= radNumCommissionValue.ClientID %>_text'); 
    var ddlType = document.getElementById('<%= radComboType.ClientID %>_ClientState'); 
    var txtCommission = document.getElementById('<%= radNumCommissionAmount.ClientID %>'); 
             
    var re1 = new RegExp(".+\"value\":\""); 
    var re2 = new RegExp("\",\"text\".+"); 
     
    var clientValue = ddlType.value.replace(re1, "").replace(re2, ""); 
 
    alert(sender.get_value()); 
    alert(txtGrossCommission.get_value()); 
 
    if(clientValue == "percent") 
    { 
        txtCommission.set_value(txtGrossCommission.get_editValue() * txtTypeValue.get_editValue()/100); 
    } 
    else if(clientValue == "flatrate") 
    { 
        txtCommission.set_value(txtTypeValue.get_editValue()); 
    } 
 } 
</script> 

The first alert works fine; the second alert fails. The Firefox Error Console gives me the error - "txtGrossCommission.get_value is not a function".

I'm obviously missing something - No idea what though. Any help would be great.
Baatezu
Top achievements
Rank 2
 answered on 15 Apr 2008
3 answers
95 views
Telerik support,

We have a visual problem that I'm able to recreate on ours and others prometheus editors.  When we choose the spellchecker, it inserts the yellow section above the text body.  The designer and html view icon at the bottom of the editor gets pushed down beyond the frame.  This then creates a visual inconsistency because the icons are floating past it's allocated space.  The control has a fixed height and doesn't modify the height when the additional spellchecker information is inserted.  Is there a fix in the future?  If you require, I could send you a screen shot.

Thank you.
Rumen
Telerik team
 answered on 15 Apr 2008
3 answers
271 views

I have a List(Of Customer) and part of the Customer object is a List(Of Order).  I programmatically bind the Customers, using RadGrid1.Datasource = CustomerList.  I want a DetailTable under each Customer row with all Orders.  The examples I've seen use table data sources.  I would expect something like...

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As   
Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
If e.Item.ItemType = GridItemType.Item Or e.Item.ItemType =   
GridItemType.AlternatingItem Or e.Item.ItemType = GridItemType.SelectedItem Then   
Dim myCustomer As Customer = e.Item.DataItem  
If myCustomer.hasOrders Then 
'The following is pseudo-code  
e.Item.DetailTable.DataSource = myCustomer.Orders  
e.Item.DataBind()  
End If 
End If 
End Sub 

But that doesn't seem to be how to crack this nut.  Any help is appreciated.
Sebastian
Telerik team
 answered on 15 Apr 2008
8 answers
339 views
First of all, Prometheus is a great product that will change how the world works, well done.
I have resolved most of the problems in using the product though past posts, however, there are still a small problem that couldn't be seems to solve easily.

i have managed to show the dialog with a simple JS
function showDialog(Arg)  
{                      
 var oWnd = window.radopen(Arg, "TaskDialog");  
}  
 
onclientclick="showDialog('../Task/NewEdit.aspx?Mode=1');return false; 

however, when i actually want to post selected ref number from the grid
i use a server side js injection
ScriptPlaceholder.Text = "showDialog('../Task/NewEdit.aspx?Mode=1&ActNo=" + DirectCast(GridAct.SelectedItems(0), GridDataItem)("ActID").Text + "');" 

And the browser shows "_1c has no properites" after postback
do you have an idea?

Leon
Top achievements
Rank 1
 answered on 15 Apr 2008
2 answers
169 views
Does Telerik.Web.UI.dll only work with Version=3.5.0.0 of System.Web.Extensions? Or are there different versions of Telerik.Web.UI.dll?
Todd Anglin
Top achievements
Rank 2
 answered on 15 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?