| <telerik:RadComboBox ID="customer" runat="server" OnClientDropDownOpened="FirefoxDropDownCorrection" ... |
| function FirefoxDropDownCorrection(sender, eventArgs) |
| { |
| if (!$telerik.isIE) { |
| var dropDownWrapper = sender.get_dropDownElement().parentNode; |
| var sID = sender.get_id(); |
| if ( sID == "customer") { |
| dropDownWrapper.style.top = "63px"; |
| } |
| if (sID == "searchby" || sID == "FindCombo") { |
| dropDownWrapper.style.top = "125px"; |
| } |
| if (sID == "CombinedType") { |
| dropDownWrapper.style.top = "212px"; |
| } |
| } |
| } |
Dear Terelik Support,
Please it's an urgent need.
I want to add a TreeView to the ComboBox and I want to populate the treeview from the code behind. I followed the instructions in the following link
http://www.telerik.com/help/aspnet-ajax/combo_templatesaddingtemplates.html
But when I run the page I treeview did not show up. This is my first time trying to accomplish this task and it's very important to my application. I'm using VS 2008 and VB.NET and most.
I tried to read the available posts about this subject but I couldn't do it.
Please is there is any one can help me to accomplish this task?
Thank you.
I am looking for dynamically adding Tabs in Tabstrip and adding pageView in Multipage and then associate the newly created pageView to Tab (similar to tabs in IE). But I couldn’t find a way to do this from the documentation. Can you please help?
here is the sample code I am trying.
<body>
<script language="javascript" type="text/javascript">
function AddNewTabs() {
var multiPage = $find("<%=RadMultiPage1.ClientID %>");
multiPage.trackChanges();
var pageView = new Telerik.Web.UI.RadPageView();
pageView.set_id("id1");
multiPage.get_pageViews().add(pageView);
pageView.get_element().innerHTML = "PageView1";
//pageView.get_element().id = "id1";
multiPage.commitChanges();
var tabstrip = $find("<%= RadTabStrip1.ClientID %>");
var roottab = new Telerik.Web.UI.RadTab();
roottab.set_text("ReportPageView");
roottab.set_pageViewID("id1");
tabstrip.trackChanges();
tabstrip.get_tabs().add(roottab);
tabstrip.commitChanges();
}
</script>
<form id="form1" runat="server" defaultfocus="Button1">
<asp:ScriptManager ID="ScriptManager" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="AddNewTabs();"/>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
<Tabs>
<telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="CommencePageView"/>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">
<telerik:RadPageView ID="CommencePageView" runat="server">
<div>Comments</div>
</telerik:RadPageView>
</telerik:RadMultiPage>
</form>
</body>
Hello everybody,
I'm building a grid with edit and delete options.
In the edit option i need to show only some of the fields i have available in the grid for update, but i'm having problems achieving this.
I saw several examples in the forum but i can't put it to work in my project
I'm populating the grid on run time this way:
| '. Preencher a Grid |
| rg_shoppinglist.DataSourceID = "SqlDataSource1" |
| SqlDataSource1.SelectParameters.Item("idClient").DefaultValue = "1" |
| rg_shoppinglist.MasterTableView.DataKeyNames = New String() {"idwebchart"} |
| rg_shoppinglist.Width = Unit.Percentage(98) |
| rg_shoppinglist.PageSize = 5 |
| rg_shoppinglist.AllowPaging = True |
| rg_shoppinglist.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric |
| rg_shoppinglist.AutoGenerateColumns = False |
| rg_shoppinglist.AutoGenerateEditColumn = True |
| rg_shoppinglist.AutoGenerateDeleteColumn = False |
| rg_shoppinglist.AllowSorting = True |
| rg_shoppinglist.Skin = "Sunset" |
| rg_shoppinglist.EnableViewState = True |
| '. Configurar |
| Dim boundColumn As GridBoundColumn |
| '. Referência |
| boundColumn = New GridBoundColumn() |
| rg_shoppinglist.MasterTableView.Columns.Add(boundColumn) |
| boundColumn.DataField = "ref" |
| boundColumn.HeaderText = "Referência" |
| boundColumn.EditFormColumnIndex = False |
| Dim myEdit As Boolean = boundColumn.IsEditable |
| '. Designação |
| boundColumn = New GridBoundColumn() |
| rg_shoppinglist.MasterTableView.Columns.Add(boundColumn) |
| boundColumn.DataField = "description" |
| boundColumn.HeaderText = "Designação" '. MORE FIELDS ETC ETC ETC...... |
| Protected Sub rg_shoppinglist_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rg_shoppinglist.ItemCommand |
| Dim val As Object |
| If e.CommandName = "Edit" Then |
| e.Item.Edit = True |
| e.Item.OwnerTableView.Rebind() |
| For i As Integer = 0 To e.Item.Controls.Count - 1 |
| val = e.Item.Controls(i) |
| val = e.Item.Controls(i).ID |
| e.Item.Controls(i).......... several try outs without sucess |
| Next |
| End If |
| End Sub |

Sub
Page_Load()
If Not (Page.IsPostBack) Then
Dim item As RadPanelItem = RadPanelBar1.FindItemByText("Forum")
item.Owner.Items.Remove(item)
End
If
End Sub
Any help would be greatly appreciated.
Jason