or
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

| objWindow = New RadWindow |
| objWindow.ID = "rwSearchShiftNo" |
| objWindow.OpenerElementID = "lnkSearchShiftno" |
| objWindow.NavigateUrl = "search.aspx?searchtype=shiftno&show=yes" |
| objWindow.ClientCallBackFunction = "SearchDialogCallBackFunction" |
| rwmSearchDialog.Windows.Add(objWindow) |
| <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> |

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 |
| function showDialog(Arg) |
| { |
| var oWnd = window.radopen(Arg, "TaskDialog"); |
| } |
| onclientclick="showDialog('../Task/NewEdit.aspx?Mode=1');return false; |
| 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?