Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views

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

Laura
Top achievements
Rank 1
 answered on 18 Oct 2008
0 answers
97 views
Hi
I'm using below function for deleting a tab from a radtabstrip in client side.

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);
   }


By using this function, tab is deleted in client side but when I want to add a deleted tab again to the tabstrip in server side, I encounter with this error:

Two components with the same id 'MyUserControl_userControl_RadNumericTextBox1' can't be added to the application.

I think this tab is deleted in client side but exists in server side. because for example when I use server side event like button click that raise post back, deleting process happens correctly.
Tanx


kian
Top achievements
Rank 1
 asked on 18 Oct 2008
1 answer
129 views
Hello everybody,

I'm wondering if I need to be connected to internet to develop using telerik products or I can work also offline.

Buying one license for developer it's possible to install it on two pc, my desktop workstation and laptop (obviously not at the same time), as I often have to move.

Best regards,

MG
Kevin Babcock
Top achievements
Rank 1
 answered on 18 Oct 2008
2 answers
144 views
hi 
    i need update the scheduler so what is the code for update. 
selvi
Top achievements
Rank 1
 answered on 18 Oct 2008
2 answers
148 views
I know that you can control the height of various child nodes in the RadPanelBar item tree by using the ChildGroupHeight property; for example:

    foreach (RadPanelItem rpi2 in rpbLHNav.Items)
    {
        // set height of second-level items
        if (rpi2.Items.Count > 7)
        {
            rpi2.ChildGroupHeight = Unit.Pixel(250);
        }
        // set height of third-level items
        foreach (RadPanelItem rpi3 in rpi2.Items)
        {
            if (rpi3.Items.Count > 11)
            {
                rpi3.ChildGroupHeight = Unit.Pixel(250);
            }
        }
        ...
    }

Is there a way to control the height of the root items (i.e., those in rpbLHNav.Items) in a similar way?  (The ChildGroupHeight property is missing from the RadPanelBar object.)
Ed
Top achievements
Rank 1
 answered on 18 Oct 2008
2 answers
102 views
sir ,

I tried the below code

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

 

 

Priya
Top achievements
Rank 1
 answered on 18 Oct 2008
2 answers
151 views
I'm looking at using the filtering functionality on the RadComboBox, but there is another function that I need, but did not see.  I need to allow the user to type a value NOT in the list.  Is this doable?
Steve
Top achievements
Rank 2
 answered on 18 Oct 2008
2 answers
125 views
When databinding a grid to a SqlDataSource I'm wondering the best way to get the value of a database column that is not shown in the grid, but that is returned from the database for the corresponding row in the grid. 

I have a Delete GridButtonColumn that I want to show or hide for each row based on a value from the database. This type of column doesn't allow databinding, so I need to programmatically get at the database column value in the RadGrid ItemDataBound event to do the button hiding.
a
Top achievements
Rank 1
 answered on 18 Oct 2008
0 answers
98 views
Hello,

It looks like "Equals()" method always returns false. I'll appreciate any idea how to make it working. I use my own function to compare trees but it would be better to use what we have in the product.

RadTreeNode _selectedNodes;     
// Code to work with _selectedNodes to add few children     
// ...     
// ...     
RadTreeNode ttNodes = _selectedNodes.Clone();     
//ttNodes.Equals(_selectedNodes) is false here!!! 

Please help.

Thanks,
Eugene
Eugene
Top achievements
Rank 1
 asked on 17 Oct 2008
2 answers
216 views
Hey folks.

I have a grid that may contain 0 or more combo boxes in one of the coumns of each row.

What I am trying to do is validate the data held by each combo when the form is submitted.

Originally I had this:

<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> 

I want to change the drop down list to a telerik combo box. Items will inserted into the combo box dynamically.
I'd like to validate the selection using some kind of validator. I saw examples of validating telerik combos using custom validators.

If I use custom validators it seems like I could use one validator where the validator method could simply iterate through the grid looking to see if a combo is enabled in the row and then check to see if it has a valid value; if not it could set the text of a label that sits beside the combo, using find control of the row, to a red * or something.

A nicer implementation might be, I would think, if each combo had it's own custom validator where the validator method can get the client side instance of the telerik combo that it is set to validate; or the combo that is in the same grid row as the validator that is doing the validation. That way if it is invalid the validator will simply show itself as a red *. Can the custom validator get a specific instance of a combo? Is this solution possible?


Thanks.

mat.t.
towpse
Top achievements
Rank 2
 answered on 17 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?