Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
Hi

I have a table of data the first 2 columns are Manufacturer and model as varchars.

ie
Manufacturer    Model
Man 1                Mod1
Man 1                Mod 2
Man 1                Mod 3
Man 2                Mod 4
Man 3                Mod 5

Can this be bound such that the top level of the tree shows
Man 1
Man 2
Man 3

And expaned to show the models.

I get an error saying 'This constraint cannort be enabled as not all values have a corresponding parent.
Andy
Andy Green
Top achievements
Rank 2
 answered on 22 May 2012
1 answer
235 views
Hello,

I am assigning a radcombobox's datasource property a List(of Person) and then databinding it.  I have the Autopost property set to true so when a selection is made it will post back.  Unfortunately, the radcombobox's datasource property is nothing when the postback occurs.  Is there something I need to do to keep the datasource from being left to nothing?  Since I can't attach a zip file I am providing code snippets.
Imports Telerik.Web.UI
Imports System.Linq
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
        If Not Page.IsPostBack Then
            Dim people = {New Person With {.Name = "Craig", .UserId = "Wil1"}, New Person With {.Name = "Kaitlyn", .UserId = "Wil2"}, New Person With {.Name = "Ben", .UserId = "Wil3"}}.ToList
 
            radCbo.DataTextField = "Name" : radCbo.DataValueField = "UserId"
            radCbo.DataSource = people
            radCbo.DataBind()
        End If
 
    End Sub
 
    Private Sub radCbo_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles radCbo.SelectedIndexChanged
        Dim ds = radCbo.DataSource
        Dim i = radCbo.SelectedItem.DataItem
    End Sub
End Class
 
 
Public Class Person
    Public Property Name As String
    Public Property UserId As String
End Class

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebAppComboTest._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
    <telerik:RadComboBox runat="server" ID="radCbo" AutoPostBack="true" EnableViewState="true"></telerik:RadComboBox>
    </div>
    </form>
</body>
</html>
Ivana
Telerik team
 answered on 22 May 2012
1 answer
77 views
Hi,

How to apply alternating row color using FormDecorator? I am using asp.net gridview with FormDecorator.

Thanks
Niko
Telerik team
 answered on 22 May 2012
1 answer
103 views
I'm trying to update the headertext to include the primary percent complete, but the text never updates even after a postback?
Jerk
Top achievements
Rank 1
 answered on 22 May 2012
1 answer
81 views
hi,

we are using the ajax scheduler in an mvc project. Looking great, good functionality, all that.
But we are encountering a serious problem.

The scheduler requires web service binding to work in an mvc page. Appointments are fed by the web service. Collecting appointments takes some time delving through the database. 

All goes well until the web-service receives a request from another user requesting for appointments while it is still working on collecting appointments for the first user. The result is that the second user will receive both the appointments for the first user and her own appointments. Which is in a multi user scenario with high demands on privacy of course absolutely inappropriate.

This scenario takes some effort to reproduce. We found the proof by adding one "debug" appointment in the GetAppointments implementation of the service. The appointment was labeled with the requesting users identification. I case of heavy load an appointment mix containing two different "debug" appoints show up in the web page. Ruling out any bugs in our appointment collecting.

At the moment I'm studying on a workaround where the OnPopulating scheduler script event will make an ajaxcall to the service to raise a Mutex. The mutex will be lowered in get appointments. Quite a freaky way to solve things, provided it will even work. For now I don't see an alternative yet.

Any help is greatly appreciated.

kind regards

Peter

Peter
Top achievements
Rank 1
 answered on 22 May 2012
3 answers
547 views
Hi,

I'm working w/ the radgrid. The grid has a column that contains special characters such as

'< 5 MMBtu'
'>130hp'

during filtering, the grid will fail to filter any values that contain '>', '<', and '='

...I'm using the filter clause 'Contains', 'Starts with', 'Equal to'

please advise.

thanks,
Minh Bui
Pavlina
Telerik team
 answered on 22 May 2012
1 answer
702 views
Hai,
     I have a radgrid where filtering is enabled. I have added a button in the commanditemtemplate and tried to clear the filtered textbox value on the button click but its not working. Can anybody suggest where i went wrong and come up with some idea to implement this effectively.
Ryan
Princy
Top achievements
Rank 2
 answered on 22 May 2012
3 answers
106 views
How  to center the Chart into my PloatArea?  I try

radChart1.PloatArea.Appearence.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Center;

This way don't work.
Petar Kirov
Telerik team
 answered on 22 May 2012
1 answer
79 views
hi ,

i want to use jplayer as the default media player for the media Manager  ,
what is the best approach to do so ?
 
1. using filter .
2. customize the built-in manager Dialog .
3. is there a better way? 

thanks
ido
 
Rumen
Telerik team
 answered on 22 May 2012
1 answer
113 views
Hello,
I was on Telerik's site looking at some demos of the TreeList when I saw, under the "What's New" section, the ability to reorder columns. I decided to build a test and see how this new functionality worked when I stumbled across a problem. If I enable reordering (i.e. AllowColumnsReorder = "true") I cannot insert a root level node (insert template appears but I can't type in any textboxes). I say stumble because I can add items at any other level without issue. I took my testing a step further and realized that when using the built-in "In-line editing mode" I can reorder columns while the insert template is displayed. Not that I was necessarily looking for this, but I noticed that the associated editors (ex. textbox) does not follow the reordered columns. I went ahead and added a button to my page which, server side, toggles the reorder properties of the treelist. If I toggle the reorder properties to false I can insert without issue.

My question, how do I insert a root node when reordering is enabled? Should/can I toggle the reorder properties client side when an insert or edit mode is entered?
Marin
Telerik team
 answered on 22 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?