Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
I've got a page that looks like this ...
<html xmlns="http://www.w3.org/1999/xhtml" > 
  <head runat="server"> 
    <title>Untitled Page</title> 
  </head> 
  <body> 
    <telerik:RadCodeBlock ID="CodeBlock" runat="server"> 
      <script type="text/javascript"> 
        var editedRow = -1;       
        function RowDblClick(sender, eventArgs) { 
          var masterTable = $find("<%= Grid.MasterTableView.ClientID %>"); 
          if(editedRow != -1) { 
            masterTable.updateItem(editedRow); 
          } 
          editedRow = eventArgs.get_itemIndexHierarchical(); 
          masterTable.editItem(editedRow); 
        } 
      </script> 
    </telerik:RadCodeBlock> 
    <form id="form1" runat="server"> 
      <telerik:RadScriptManager ID="ScriptManager" runat="server"> 
      </telerik:RadScriptManager> 
       
      <telerik:RadAjaxPanel ID="AjaxPanel" runat="server" Height="100%" Width="100%"> 
        <telerik:RadGrid ID="Grid"  
          runat="server"  
          AllowAutomaticUpdates="true"  
          AutoGenerateColumns="false" 
          OnItemUpdated="Grid_ItemUpdated"  
          OnNeedDataSource="Grid_NeedDataSource"  
          Skin="Hay" > 
          <MasterTableView EditMode="InPlace" > 
            <Columns> 
              <telerik:GridBoundColumn DataField="columna" UniqueName="columna" HeaderText="Column A"></telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="columnb" UniqueName="columnb" HeaderText="Column B"></telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="columnc" UniqueName="columnc" HeaderText="Column C"></telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="idx" UniqueName="idx" Visible="false"></telerik:GridBoundColumn> 
            </Columns> 
          </MasterTableView> 
          <ClientSettings> 
            <ClientEvents OnRowDblClick="RowDblClick" /> 
            <Selecting AllowRowSelect="true" /> 
          </ClientSettings> 
        </telerik:RadGrid> 
      </telerik:RadAjaxPanel> 
    </form> 
  </body> 
</html> 

Now, if I've read things right, when I first double click on a row, that row goes into Edit mode. That works.

Now if I double click another row, the first row should be updated and then the 2nd should go into Edit mode. As I understand it, the call to updateItem() should fire the ItemUpdated server-side event. It doesn't. The 2nd row goes in to Edit mode, so something's happening.

What am I missing?

--
Stuart


Yavor
Telerik team
 answered on 01 May 2008
1 answer
140 views
Hi all,

I was wondering if there was a javascript reference for the objects you provide.

in the scheduler events i currently  use
var apt = eventArgs.get_appointment();  
var aptID = apt.get_id(); 

I would now like to access the resources from javascript which i can see exist from code snippets on the forums but can't find which methods and properties i need.

The code snippets show a Resources property on the appointment object but not much more, i would like to beable to get the resource id of the appointment that has just been clicked/drag dropped etc.

As i mentioned above a full javascript object reference would be good but if not any code snippets that can get me the resource id.

Thanks in advance,
OneSHOT
Peter
Telerik team
 answered on 01 May 2008
2 answers
343 views
Hi, I'm having problems trying to get drag and drop working on a simple radgrid. I've based my code on the website demo as follows - cab you help please?

aspx:

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Telerik" OnNeedDataSource="RadGrid1_NeedDataSource" OnRowDrop="RadGrid1_RowDrop" AllowMultiRowSelection="true" >
    <MasterTableView DataKeyNames="id">
    </MasterTableView>
    
<ClientSettings AllowRowsDragDrop="True">
       
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
    </ClientSettings>
</telerik:RadGrid>

VB:

Protected Sub RadGrid1_RowDrop(ByVal sender As Object, ByVal e As GridDragDropEventArgs) Handles RadGrid1.RowDrop

    If String.IsNullOrEmpty(e.HtmlElement) Then
        If e.DestDataItem IsNot Nothing Then
            Dim categoryList As IList(Of category)
            categoryList = categoryStore
            Dim categoryItem As category = GetCategory(categoryList, DirectCast(e.DestDataItem.GetDataKeyValue("id"), Integer))
            Dim destinationIndex As Integer = categoryList.IndexOf(categoryItem)
            Dim categoriesToMove As New List(Of category)()
            For Each draggedItem As GridDataItem In e.DraggedItems
                    Dim tmpcategory As category = GetCategory(categoryList, DirectCast(draggedItem.GetDataKeyValue("id"), Integer))
 
                   If tmpcategory IsNot Nothing Then
                            categoriesToMove.Add(tmpcategory)
 
                   End If
             Next
             For Each categoryToMove As category In categoriesToMove
                    categoryList.Remove(categoryToMove)
                    categoryList.Insert(destinationIndex, categoryToMove)
             Next
             categoryStore = categoryList
             RadGrid1.Rebind()
             e.DestDataItem.Selected =
True
          End If
      End If

End Sub

Protected Property categoryStore() As IList(Of category)
    
Get
        
Try
            Dim obj As Object = Session("categoryList_VB")
            If obj Is Nothing Then
                obj = GetCategories()
                Session(
"categoryList_VB") = obj
            End If
            Return DirectCast(obj, IList(Of category))
        Catch ex As Exception
            Session(
"categoryList_VB") = Nothing
        End Try
        Return New List(Of category)
    End Get

    Set(ByVal value As IList(Of category))
        Session(
"categoryList_VB") = value
    End Set
End Property

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs)
    RadGrid1.DataSource = categoryStore
End Sub

Protected Function GetCategories() As IList(Of category)
    Dim results As IList(Of category) = New List(Of category)()
    Dim dbCon As New SqlConnection("Data Source=SHEP\SQLEXPRESS;Initial Catalog=abelSQL;Integrated Security=True")
    
Dim dbCmd As New SqlCommand
    dbCmd.Connection = dbCon
    dbCmd.CommandText =
"SELECT id, dscrp, seq FROM sitecostsPrimary ORDER BY seq ASC"
    dbCon.Open()
    Dim reader As IDataReader = dbCmd.ExecuteReader()
    While reader.Read()
        Dim id As Integer = DirectCast(reader.GetValue(reader.GetOrdinal("id")), Integer)
        Dim dscrp As String = DirectCast(reader.GetValue(reader.GetOrdinal("dscrp")), String)
        Dim
seq As Integer = DirectCast(reader.GetValue(reader.GetOrdinal("seq")), Integer)
        results.Add(
New category(id, dscrp, seq))
    End While
    results.Add(New category(999, "Test item", 99))
    Return results
End Function

Private Shared Function GetCategory(ByVal ordersToSearchIn As IEnumerable(Of category), ByVal id As Integer) As category
    For Each cat As category In ordersToSearchIn
        If cat.id = id Then
            Return cat
        End If
    Next
    Return Nothing
End Function

Protected Class category
    Private _id As Integer
    Private _dscrp As String
    Private _seq As Integer

    Public Sub New(ByVal id As Integer, ByVal dscrp As String, ByVal seq As Integer)
        _id = id
        _dscrp = dscrp
        _seq = seq
    End Sub

    Public ReadOnly Property id() As Integer
        Get
            Return _id
        End Get
    End Property

    Public ReadOnly Property dscrp() As String
        Get
            Return _dscrp
        End Get
    End Property

    Public ReadOnly Property seq() As String
        Get
            Return _seq
        End Get
    End Property

End Class

Yavor
Telerik team
 answered on 01 May 2008
1 answer
144 views
When I put a RadDecorator on the same page as a RadUpload it also reskins the RadUploads buttons and it makes the Add and Delete buttons invisible until you do a postback or callback of somesort. I would like to use thsi new functionality, but I can't use it as is.

Is there a way to exclude the RadUpload from being skinned? Below is a sample of what I am talking about.

<telerik:RadFormDecorator ID="formDecorator" runat="server" Skin="Web20" /> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
        style="border: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="ajaxPanel" runat="server" Width="100%">  
    <table style="width: 100%;">  
        <tr> 
            <td align="left" valign="top">  
            </td> 
            <td align="left" valign="top">  
                <table style="width: 100%;">  
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            Steps:  
                        </td> 
                        <td align="left" valign="top">  
                            <asp:Label ID="labelStep" runat="server" Text="1. Form(s)" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            <telerik:RadTabStrip ID="tabWizard" runat="server" MultiPageID="multiPageWizard" 
                                Orientation="VerticalLeft" SelectedIndex="0" Skin="Office2007" OnTabClick="tabWizard_TabClick" 
                                CausesValidation="False">  
                                <Tabs> 
                                    <telerik:RadTab runat="server" PageViewID="pageForm" Text="1. Form(s)" Selected="true">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageDescription" Text="2. Details">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageFinish" Text="3. Finish">  
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                        </td> 
                        <td align="left" valign="top">  
                            <telerik:RadMultiPage ID="multiPageWizard" runat="server" SelectedIndex="0">  
                                <telerik:RadPageView ID="pageForm" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <telerik:RadUpload ID="uploadForms" runat="server" /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnFormNext" runat="server" CausesValidation="False"   
                                                    OnClick="btnNext_Click" Text="Next" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageDescription" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Title (Max 255 Chars):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textTitle" runat="server" MaxLength="255">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="valTitle" runat="server" ControlToValidate="textTitle" 
                                                    ErrorMessage="Form Title is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textDescription" runat="server" Height="150px" TextMode="MultiLine">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="textDescription" 
                                                    ErrorMessage="Form Description is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Name:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textOwnerName" runat="server">  
                                                </telerik:RadTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Email:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadMaskedTextBox ID="textOwnerEmail" runat="server">  
                                                </telerik:RadMaskedTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:ValidationSummary ID="valSummary" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailNext" runat="server" Text="Next" OnClick="btnNext_Click" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageFinish" runat="server" Width="100%">  
                                    The following Form(s) is ready to be added:  
                                    <br /> 
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Title:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelTitle" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelDescription" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Form(s):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelForms" runat="server" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                    <br /> 
                                    To add the Form(s), click <span style="font-weight: bold">Finish</span>. To review  
                                    your changes, click <span style="font-weight: bold">Back</span>, or click <span style="font-weight: bold">  
                                        Cancel</span> to return to the Forms homepage.<br /> 
                                        <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryFinish" runat="server" Text="Finish" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryCancel" runat="server" Text="Cancel" /> 
                                            </td> 
                                    </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                            </telerik:RadMultiPage> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxPanel> 
Martin
Telerik team
 answered on 01 May 2008
1 answer
131 views
When I put a RadDecorator on the same page as a RadUpload it also reskins the RadUploads buttons and it makes the Add and Delete buttons invisible until you do a postback or callback of somesort. I would like to use thsi new functionality, but I can't use it as is.

Is there a way to exclude the RadUpload from being skinned? Below is a sample of what I am talking about.

<telerik:RadFormDecorator ID="formDecorator" runat="server" Skin="Web20" /> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
        style="border: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="ajaxPanel" runat="server" Width="100%">  
    <table style="width: 100%;">  
        <tr> 
            <td align="left" valign="top">  
            </td> 
            <td align="left" valign="top">  
                <table style="width: 100%;">  
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            Steps:  
                        </td> 
                        <td align="left" valign="top">  
                            <asp:Label ID="labelStep" runat="server" Text="1. Form(s)" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            <telerik:RadTabStrip ID="tabWizard" runat="server" MultiPageID="multiPageWizard" 
                                Orientation="VerticalLeft" SelectedIndex="0" Skin="Office2007" OnTabClick="tabWizard_TabClick" 
                                CausesValidation="False">  
                                <Tabs> 
                                    <telerik:RadTab runat="server" PageViewID="pageForm" Text="1. Form(s)" Selected="true">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageDescription" Text="2. Details">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageFinish" Text="3. Finish">  
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                        </td> 
                        <td align="left" valign="top">  
                            <telerik:RadMultiPage ID="multiPageWizard" runat="server" SelectedIndex="0">  
                                <telerik:RadPageView ID="pageForm" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <telerik:RadUpload ID="uploadForms" runat="server" /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnFormNext" runat="server" CausesValidation="False"   
                                                    OnClick="btnNext_Click" Text="Next" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageDescription" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Title (Max 255 Chars):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textTitle" runat="server" MaxLength="255">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="valTitle" runat="server" ControlToValidate="textTitle" 
                                                    ErrorMessage="Form Title is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textDescription" runat="server" Height="150px" TextMode="MultiLine">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="textDescription" 
                                                    ErrorMessage="Form Description is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Name:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textOwnerName" runat="server">  
                                                </telerik:RadTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Email:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadMaskedTextBox ID="textOwnerEmail" runat="server">  
                                                </telerik:RadMaskedTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:ValidationSummary ID="valSummary" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailNext" runat="server" Text="Next" OnClick="btnNext_Click" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageFinish" runat="server" Width="100%">  
                                    The following Form(s) is ready to be added:  
                                    <br /> 
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Title:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelTitle" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelDescription" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Form(s):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelForms" runat="server" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                    <br /> 
                                    To add the Form(s), click <span style="font-weight: bold">Finish</span>. To review  
                                    your changes, click <span style="font-weight: bold">Back</span>, or click <span style="font-weight: bold">  
                                        Cancel</span> to return to the Forms homepage.<br /> 
                                        <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryFinish" runat="server" Text="Finish" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryCancel" runat="server" Text="Cancel" /> 
                                            </td> 
                                    </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                            </telerik:RadMultiPage> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxPanel> 
Martin
Telerik team
 answered on 01 May 2008
1 answer
58 views
if using the image properties popup on an image with a hyperlink will move the hyperlink away from the image, thus breaking it:

on this page:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx

make some space on the page.
use the image tool to add an image to canvas.
click on the image and click on the hyperlink tool.
add a hyperlink.
right click over the image, select image properties
set the border to 0 and click ok

the image has now been moved outside of the hyperlink, thus breaking it.


also, is it possible to default image border to zero on all inserts? this is what most often causes our users to see this issue.

rob
Rumen
Telerik team
 answered on 01 May 2008
1 answer
121 views
Hi. I would like to use RadScheduler as holiday editor so:
1) Set SelectedView = ResourceView
2) ShowViewTabs = false

I would like when I double click in a cell, take as a "whole" activity for all the hours inside the cell because now I click in different zones in my cell and I can add multiple "activities"

Is there a way to define a cell as it has one "hour" ?

TIA
Peter
Telerik team
 answered on 01 May 2008
1 answer
148 views
Dear all, I just updated from Prometheus to Q1 2008 AJAX and testing a page with a radgrid received:

Parse Error:
The 'FilterMenu' property cannot be set declaratively

The FilterMenu property in the help shows that it appears to be able to set this correctly declaratively. 

Was there a  note in the release notes about this?

Thanks,
Jason

Yavor
Telerik team
 answered on 01 May 2008
3 answers
137 views
Hi - I have a radgrid that has 3 collumns - one of these is a percentage number (i.e. a number from 0 - 100). The number is displayed as it comes from the db.

But what I want is to have a bar image in the cell with the number with the width of the bar set to the %number.

How do I access the cell that the number is in? I can't seem to access the cell and its contents. I also want to format the text so that, rather than saying just "23", I append a % to it so it says "23%" plus also the bar image.

Any ideas?

Thanks.
John
Top achievements
Rank 1
 answered on 01 May 2008
3 answers
146 views
As this worked in ASP.NET RadControls RadEditor:

...html='<%# Bind("ShortDescription") %>'...

There is no 'html' property of the AJAX RadEditor. Instead you use

<content>
Some stuff....
</content>

So, how do you Bind the editor to ShortDescription as I have previously done with the NON-AJAX RadEditor. You CANNOT do this:

<content>
<%# Bind("ShortDescription") %>
</content>

If code-behind is required, that's flat ridiculous. The examples are wrong and the online help is also incorrect, telling me to use ...content='<%# Bind("ShortDescription") %>'...

There is no content propert of this RadEditor.
Rumen
Telerik team
 answered on 01 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?