Hi,
I have a GridDropDownColumn inside a radgrid. When i go to edit mode of the gird, the items text(say the text is 'Discrepancy Hours found'. Here the text is displayed in 3 lines) are wrapped which is fine. But when i move the cursor to select a wrapped item, only the first line (in the example above, only Discrepancy) is getting highlighted. How to solve this?
Regards
Jack
function deleteTab(tabText)
{
var tabStrip = $find("<%= RadTabID.ClientID %>");
var multiPage = $find("<%= MultiPgID.ClientID %>");
var tab = tabStrip.findTabByText(tabText);
var pageView = tab.get_pageView();
var tabToSelect = tab.get_nextTab();
if (!tabToSelect)
tabToSelect = tab.get_previousTab();
tabStrip.trackChanges();
tabStrip.get_tabs().remove(tab);
tabStrip.commitChanges();
multiPage.trackChanges();
multiPage.get_pageViews().remove(pageView);
multiPage.commitChanges();
if (tabToSelect)
tabToSelect.set_selected(true);}
Function
CreateJavaScriptFunctionCall(ByVal dock As RadDock) As String
Dim dockHandleID As String = ""
For Each contrl As Control In dock.ContentContainer.Controls
If TypeOf contrl Is LiteralControl Then
d
ockHandleID = contrl.ClientID
End If
n
ext
Return "changeRadDockHandle('" + dock.ClientID + "','" + dockHandleID + "')"
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim smExists As Boolean = False
For Each contrl As Control In Page.Form.Controls
If TypeOf contrl Is ScriptManager Then
smExists = True
Exit For
End If
Next
If Not (smExists) Then
Dim sm As New ScriptManager()
Page.Form.Controls.Add(sm)
Page.Header.Controls.Add(
New LiteralControl("<script language='javascript'> function changeRadDockHandle(dockID,handleID){var dock = $find(dockID)dock.set_handle(document.getElementById(handleID))} </script>"))
End If
Dim layout As New RadDockLayout()
layout.ID =
"layout"
Page.Form.Controls.Add(layout)
Dim zone As New RadDockZone()
layout.Controls.Add(zone)
Dim zone2 As New RadDockZone()
layout.Controls.Add(zone2)
Dim UpdatePanl As New UpdatePanel()
UpdatePanl.ID =
"UpdatePanel1"
layout.Controls.Add(UpdatePanl)
zone.ID = "zone"
zone2.ID = "zone2"
Dim dock As New RadDock()
dock.ID = "dock"
dock.ContentContainer.Controls.Add(New LiteralControl("blahblah"))
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None
dock.DockHandle = DockHandle.None
dock.OnClientInitialize = CreateJavaScriptFunctionCall(dock)
zone.Controls.Add(dock)
End Sub
But its not working,simply showing the literal control only and a javascript error
Object Expected
Thanks
| RadTreeNode _selectedNodes; |
| // Code to work with _selectedNodes to add few children |
| // ... |
| // ... |
| RadTreeNode ttNodes = _selectedNodes.Clone(); |
| //ttNodes.Equals(_selectedNodes) is false here!!! |
| <telerik:GridTemplateColumn UniqueName="DataValue" DataField="DataValue" SortExpression="DataValue" HeaderText="<%$ Resources:Default, DATA_VALUE_HEADER_TEXT %>"> |
| <EditItemTemplate> |
| <asp:TextBox ID="txtDataValue" |
| runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.DataValue") %>' |
| Width="150px"> |
| </asp:TextBox> |
| <asp:RequiredFieldValidator |
| ID="rf_txtDataValue" |
| runat="server" |
| ErrorMessage = "You must enter a value" |
| Text = "*" |
| Enabled="false" |
| Visible= "true" |
| ControlToValidate="txtDataValue" |
| Display="Dynamic"/> |
| <asp:DropDownList ID="ddlDataValue" |
| runat="server" |
| Width="155px"></asp:DropDownList> |
| <asp:RequiredFieldValidator ID="rf_ddlDataValue" |
| runat="server" |
| ErrorMessage = "You must select a value" |
| Text = "*" |
| Enabled="false" |
| Visible= "true" |
| InitialValue ="<%$ Resources:Default, DEFAULT_LIST_ITEM_VALUE %>" |
| ControlToValidate="ddlDataValue" |
| Display="Dynamic" /> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |