I am happy with the tab strip, but need to make the validation a bit more usuable.
Thanks
if (sender.get_id() == '<%=TitleAvailable.ClientID %>')
because the ClientID of the TitleAvailable RadGrid is only known by the UserControl and only after the user has clicked the Edit button to Load the UserControl. Also putting the handler script on the User Control page with the rest of the html markup doesn't work: I get a JScript error saying "'[onRowDropping function name]' is undefined". So I tried emitting the Javascript dynamically from within the Page Load event of the User Control, like so:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim scriptKey As String = "DragDropScript"
If Not Page.ClientScript.IsClientScriptBlockRegistered(scriptKey) Then
Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), scriptKey, GetDragDropScripts(), True)
End If
TitleAvailable.ClientSettings.ClientEvents.OnRowDropping = "onListTitleRowDropping"
End Sub
Private Function GetDragDropScripts() As String
Dim sb As New StringBuilder()
sb.AppendLine("function onListTitleRowDropping(sender, args) {")
sb.AppendLine("}")
Return sb.ToString()
End Function
But if I do that, then right after the UserControl Page_Load event has completed, I again get a JScript error message " 'onListTitleRowDropping' is undefined" from this function of yours:
function Sys$_Application$add_init(handler) {
/// <summary locid="E:J#Sys._Application.init" />
var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
if (e) throw e;
if (this._initialized) {
handler(this, Sys.EventArgs.Empty);
}
else {
this.get_events().addHandler("init", handler);
}
}
Any ideas how to solve this?
<telerik:RadTabStrip ID="tabStripEdit" runat="server"
Skin="Outlook" MultiPageID="multiPage_Details"
Orientation="VerticalLeft" AutoPostBack="True" SelectedIndex="0" >
and also i have applied it on pageLoad method
tabStripEdit.SelectedIndex = 0;
then also it is not working.
RadChart1.PlotArea.XAxis[i].TextBlock.Text = dateTime.ToShortDateString();
But if I get 2 dates the same it plots them next to each other. If I change the autoscale to True it substitutes the dates with incremented numbers (ie 1....20).
Thanks,
Pete Walker.
| <telerik:RadGrid ID="InvoiceLines" runat="server" AllowMultiRowSelection="true" AllowMultiRowEdit="true" |
| Skin="Office2007" OnNeedDataSource="InvoiceLines_NeedDataSource" AutoGenerateColumns="false" |
| OnUpdateCommand="InvoiceLines_UpdateCommand" OnDeleteCommand="InvoiceLines_DeleteCommand" OnInsertCommand="InvoiceLines_InsertCommand"> |
| <ClientSettings> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id" EditMode="InPlace" AutoGenerateColumns="false" CommandItemDisplay="Bottom" InsertItemDisplay="Bottom"> |
| <CommandItemSettings AddNewRecordImageUrl="~/Images/favorites_16.png" AddNewRecordText="Add New Line" RefreshImageUrl="~/Images/document_refresh_16.png" RefreshText="Refresh Lines" /> |
| <Columns> |
| <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="20px" /> |
| <telerik:GridClientDeleteColumn ButtonType="ImageButton" ItemStyle-Width="20px" ImageUrl="~/Images/trash_16.png" DataType="System.Guid" ConfirmText="Delete this item?" /> |
| <telerik:GridBoundColumn DataField="LineNumber" HeaderText="" ReadOnly="true" ItemStyle-Width="20px" /> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description" ColumnEditorID="DescriptionEditor" /> |
| <telerik:GridNumericColumn DataField="Quantity" HeaderText="Qty" UniqueName="Quantity" ItemStyle-Width="50px" ColumnEditorID="QuantityEditor" /> |
| <telerik:GridNumericColumn DataField="PricePerUnit" HeaderText="Price / Rate" UniqueName="PricePerUnit" ItemStyle-Width="50px" ColumnEditorID="PricePerUnitEditor" /> |
| <telerik:GridNumericColumn DataField="TotalPrice" HeaderText="Amount" UniqueName="TotalPrice" ReadOnly="true" ItemStyle-Width="75px" /> |
| <telerik:GridCheckBoxColumn DataField="Taxable" HeaderText="Tax" UniqueName="Taxable" ItemStyle-Width="25px" /> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <telerik:GridTextBoxColumnEditor ID="DescriptionEditor" runat="server"> |
| <TextBoxStyle Width="200px" BackColor="Aqua" /> |
| </telerik:GridTextBoxColumnEditor> |
| <telerik:GridNumericColumnEditor ID="QuantityEditor" runat="server"> |
| <NumericTextBox runat="server" Width="50px" /> |
| </telerik:GridNumericColumnEditor> |
| <telerik:GridNumericColumnEditor ID="PricePerUnitEditor" runat="server"> |
| <NumericTextBox runat="server" Width="50px" BackColor="AliceBlue" /> |
| </telerik:GridNumericColumnEditor> |
Hi,
We have a situation where we are using 3rd party components built against a previous version of the AJAX.NET control toolkit (Arc GIS). However we are using the latest version within our project to maintain compatibility with the Telerik Rad Control Suite of components. Thus so the Arc GIS components throw an error.
Is there any way that we can instruct the AJAX.Net controls to impersonate an older version, thus fixing the compatibility issues I have mentioned?
Kind Regards