Hi
Is it possible to edit the InlineInsertTemplate without losing whats already in it ie the save button etc. I would like to add a drop down to this window but when i add it, it removes all of the buttons and the text area?
Thanks
| Private Sub GenerateTreeView() |
| ' parent node |
| Dim sampleRadTreeNode As RadTreeNode = New RadTreeNode() |
| sampleRadTreeNode.NodeTemplate = New NodeTemplate("Sample 1") |
| ' child node |
| Dim sampleChildRadTreeNode As RadTreeNode = New RadTreeNode() |
| sampleChildRadTreeNode.NodeTemplate = New NodeTemplate("Sample 1 Child 1") |
| sampleRadTreeNode.Nodes.Add(sampleChildRadTreeNode) |
| ' child node |
| sampleChildRadTreeNode = New RadTreeNode() |
| sampleChildRadTreeNode.NodeTemplate = New NodeTemplate("Sample 1 Child 2") |
| sampleRadTreeNode.Nodes.Add(sampleChildRadTreeNode) |
| uxRadTreeView.Nodes.Add(sampleRadTreeNode) |
| ' parent node |
| sampleRadTreeNode = New RadTreeNode() |
| sampleRadTreeNode.NodeTemplate = New NodeTemplate("Sample 2") |
| uxRadTreeView.Nodes.Add(sampleRadTreeNode) |
| uxRadTreeView.DataBind() |
| End Sub |
| Class NodeTemplate |
| Implements ITemplate |
| Public text As String |
| Public level As Integer |
| Public Sub New(ByVal text As String) |
| Me.text = text |
| End Sub |
| Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn |
| Dim table As Table = New Table() |
| table.CssClass = "NodeTemplateCSS" |
| table.CellPadding = 0 |
| table.CellSpacing = 0 |
| Dim tableRow As TableRow = New TableRow() |
| Dim tableTextCell As TableCell = New TableCell() |
| Dim nodeText As Label = New Label() |
| nodeText.ID = "ItemLabel" |
| nodeText.Text = text |
| tableTextCell.Controls.Add(nodeText) |
| Dim checkbox1Cell As TableCell = New TableCell() |
| Dim checkbox1 As CheckBox = New CheckBox() |
| checkbox1.ID = "checkbox1" |
| checkbox1Cell.Controls.Add(checkbox1) |
| Dim checkbox2Cell As TableCell = New TableCell() |
| Dim checkbox2 As CheckBox = New CheckBox() |
| checkbox2.ID = "checkbox2" |
| checkbox2Cell.Controls.Add(checkbox2) |
| tableRow.Cells.Add(tableTextCell) |
| tableRow.Cells.Add(checkbox1Cell) |
| tableRow.Cells.Add(checkbox2Cell) |
| table.Rows.Add(tableRow) |
| container.Controls.Add(table) |
| End Sub |
| End Class |
| targetFolder = _presenter.GetAttachmentsFolder(); |
| FileManagerDialogParameters dlgManagerParameters = new FileManagerDialogParameters |
| {ViewPaths = new string[1] {targetFolder}}; |
| dlgManagerParameters.UploadPaths = dlgManagerParameters.ViewPaths; |
| dlgManagerParameters.DeletePaths = dlgManagerParameters.ViewPaths; |
| dlgManagerParameters.MaxUploadFileSize = 5000000; |
| // If you don't set the following property, the default value will be used |
| dlgManagerParameters.SearchPatterns = |
| ConfigurationManager.AppSettings["allowedDocumentTypes"].Split(",".ToCharArray()); |
| DialogDefinition docManager = new DialogDefinition(typeof(DocumentManagerDialog), |
| dlgManagerParameters) |
| { |
| ClientCallbackFunction = "callBackFnAllegato", |
| Title = "Gestione documenti", |
| Width = Unit.Pixel(694), |
| Height = Unit.Pixel(500) |
| }; |
| docManager.Parameters["ExternalDialogsPath"] = "~/EditorDialogs"; |
| dlgOpener.DialogDefinitions.Add("DialogDocument", docManager); |
| <telerik:RadDialogOpener runat="server" ID="dlgOpener"> |
| </telerik:RadDialogOpener> |
| <asp:ImageButton ID="imgAllegatoManager" runat="server" SkinID="btnAttach" |
| OnClientClick="return ShowDialog('DialogDocument');" /> |
| _loadLinkProperties : function() |
| { |
| var currentLink = this._clientParameters.get_value(); |
| var currentHref = currentLink.getAttribute("href", 2); |
| var anchors = this._clientParameters.documentAnchors; |
| <rad:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
| <AjaxSettings> |
| <rad:AjaxSetting AjaxControlID="Zip"> |
| <UpdatedControls> |
| <rad:AjaxUpdatedControl ControlID="City" /> |
| <rad:AjaxUpdatedControl ControlID="State" /> |
| </UpdatedControls> |
| </rad:AjaxSetting> |
| </AjaxSettings> |
| </rad:RadAjaxManagerProxy> |
| protected void Page_PreRenderComplete(object sender, EventArgs e) |
| { |
| RadMaskedTextBox zip = ApplicationRapidForm.FindControl("Zip") as RadMaskedTextBox; |
| RadComboBox city = ApplicationRapidForm.FindControl("City") as RadComboBox; |
| RadComboBox state = ApplicationRapidForm.FindControl("State") as RadComboBox; |
| RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(zip, city); |
| RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(zip, state); |
| } |
| protected override void OnPreRenderComplete(EventArgs e) |
| { |
| RadMaskedTextBox zip = ApplicationRapidForm.FindControl("Zip") as RadMaskedTextBox; |
| RadComboBox city = ApplicationRapidForm.FindControl("City") as RadComboBox; |
| RadComboBox state = ApplicationRapidForm.FindControl("State") as RadComboBox; |
| RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(zip, city); |
| RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(zip, state); |
| base.OnPreRenderComplete(e); |
| } |
| Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound |
| If (TypeOf e.Item Is GridEditFormInsertItem) AndAlso (e.Item.OwnerTableView.IsItemInserted) Then |
| Dim insertItem As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem) |
| Dim txtbx1 As TextBox = DirectCast(insertItem("Resource_Name").Controls(0), TextBox) |
| txtbx1.Text = RadComboBox1.SelectedValue.ToString |
| Dim txtbx2 As TextBox = DirectCast(insertItem("Resource_Year").Controls(0), TextBox) |
| ' txtbx2.Text = Request.QueryString("Resource_Year").ToString |
| txtbx2.Text = Year(Now) |
| Dim txtbx3 As TextBox = DirectCast(insertItem("Resource_Month").Controls(0), TextBox) |
| 'txtbx3.Text = Request.QueryString("Resource_Month").ToString |
| txtbx3.Text = Month(Now) |
| Dim txtbx4 As TextBox = DirectCast(insertItem("Resource_week").Controls(0), TextBox) |
| txtbx4.Text = Request.QueryString("ResourceVersion").ToString |
| Dim txtbx5 As TextBox = DirectCast(insertItem("Division_ID").Controls(0), TextBox) |
| txtbx5.Text = Request.QueryString("Division_ID").ToString |
| Dim txtbx6 As TextBox = DirectCast(insertItem("Section_ID").Controls(0), TextBox) |
| txtbx6.Text = Request.QueryString("Section_ID").ToString |
| txtbx6.ReadOnly = True |
| RadGrid1.MasterTableView.Columns(6).Visible = False |
| Dim txtbx7 As TextBox = DirectCast(insertItem("sno").Controls(0), TextBox) |
| txtbx1.Enabled = False |
| txtbx2.Enabled = False |
| txtbx3.Enabled = False |
| txtbx4.Enabled = False |
| txtbx5.Enabled = False |
| txtbx6.Enabled = False |
| txtbx7.Enabled = False |
| End If |
| If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then |
| Dim item As GridEditableItem = DirectCast(e.Item, GridEditableItem) |
| Dim txtbx1 As TextBox = DirectCast(item("Resource_Name").Controls(0), TextBox) |
| Dim txtbx2 As TextBox = DirectCast(item("Resource_Year").Controls(0), TextBox) |
| Dim txtbx3 As TextBox = DirectCast(item("Resource_Month").Controls(0), TextBox) |
| Dim txtbx4 As TextBox = DirectCast(item("Resource_week").Controls(0), TextBox) |
| Dim txtbx5 As TextBox = DirectCast(item("Division_ID").Controls(0), TextBox) |
| Dim txtbx6 As TextBox = DirectCast(item("Section_ID").Controls(0), TextBox) |
| Dim txtbx7 As TextBox = DirectCast(item("sno").Controls(0), TextBox) |
| txtbx1.Enabled = False |
| txtbx2.Enabled = False |
| txtbx3.Enabled = False |
| txtbx4.Enabled = False |
| txtbx5.Enabled = False |
| txtbx6.Enabled = False |
| txtbx7.Enabled = False |
| End If |
| End Sub |
You can find attached to this sticky note all available
localizations of RadUpload for ASP.NET AJAX provided by our customers.
If you have any new localizations for RadUpload and would like to share
them with our community, you can send them via the support ticketing
system under your account.
You work will be gladly rewarded.
Here are some useful links relevant to the Localization:
P.S. Please, note that Telerik supports only the provided English (en-US) localizations in the Telerik.Web.UI installation and that the attached here localizations could be incomplete or could have mistakes.
P.S.2. If you want to update any language packs, you can use the following useful tool: http://www.screwturn.eu/(X(1)S(grc2ro551rnpa2eeviiyb5fn))/ResxSync.ashx. It can add new keys to the translated files whenever you have updated the original English files.
Another good diff and merge tool is WinMerge.