Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
101 views
How to translate the "drop files here" message?

Thanks,
Martin
Plamen
Telerik team
 answered on 22 Jun 2012
3 answers
136 views
I want to access controls inside RadGrid's EditFormTemplate from page_load (not from RadGrid1_ItemDataBoundRadGrid1_UpdateCommand or any other "events" ), or something like this  ... is this possible?
Shinu
Top achievements
Rank 2
 answered on 22 Jun 2012
2 answers
155 views
Hi,

I open a RadWindow to display a Radgrid as a modal popup. The Radgrid has a GridDateTimeColumn which displays a calender picker in Insert and Edit modes. The Calender picker does not show up when the grid is placed in the RadWindow popup. It works fine when used in regular .aspx page.
Could you please help?

Thanks
Meera
Meera
Top achievements
Rank 1
 answered on 22 Jun 2012
3 answers
441 views
I am trying to add filters to a RadGrid and am encountering a bug when filtering numeric columns.

Only for columns which are numeric (Int32 for Plant and Demand in this case), the filter does not apply on the first try.  After page load, the first filter on a numeric column simply has no effect.  Any subsequent filter attempt works properly.

This bug does not occur on the date columns nor string columns, as they filter properly.

The data is being loaded by an data object during the NeedDataSource event.  This is the only code behind at the moment. 
I am using the most up to date Telerik with ASP.NET 3.5.

Please see code snippet below:

<telerik:RadGrid runat="server"
    ID="grdOrders" 
    AllowPaging="True"
    AllowSorting="True"
    Skin="Web20"
    onneeddatasource="grdOrders_NeedDataSource"
    GroupingSettings-CaseSensitive="false"
    AllowFilteringByColumn="true"
    >
 
    <MasterTableView AutoGenerateColumns="False"  >
        <Columns>
            <telerik:GridNumericColumn
                DataField="PlantID"
                HeaderText="Plant #"
                AutoPostBackOnFilter="true"
                CurrentFilterFunction="Contains"
                ShowFilterIcon="false"
                SortExpression="PlantID"
                UniqueName="PlantID"
                DataType="System.Int32"
                >
            </telerik:GridNumericColumn>
 
            <telerik:GridBoundColumn
                DataField="Demand"
                HeaderText="Demand"
                AutoPostBackOnFilter="true"
                CurrentFilterFunction="Contains"
                ShowFilterIcon="false"
                SortExpression="Demand"
                UniqueName="Demand"
                DataType="System.Int32"
                >
            </telerik:GridBoundColumn>
 
            <telerik:GridDateTimeColumn
                DataField="OrderEntryDate"
                HeaderText="Order Date"
                CurrentFilterFunction="EqualTo" ShowFilterIcon="false"
                DataFormatString="{0:MM/dd/yyyy}"
                PickerType="DatePicker"
                FilterControlWidth="95px"
                AutoPostBackOnFilter="true"
                SortExpression="OrderEntryDate"
                UniqueName="OrderEntryDate">
            </telerik:GridDateTimeColumn>
 
            <telerik:GridBoundColumn
                DataField="CreatedBy"
                HeaderText="Created By"
                AutoPostBackOnFilter="true"
                CurrentFilterFunction="Contains"
                ShowFilterIcon="false"
                UniqueName="CreatedBy">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
 
    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
    </ClientSettings>
</telerik:RadGrid>

Thanks,
Andy
Shinu
Top achievements
Rank 2
 answered on 22 Jun 2012
4 answers
238 views
Hello Telerik Team,

Being new to this tool, I hava requirement where by I have a Rad Grid and when I submit / click Add new Record button the text boxes to be filled automatically after some calculated values from the previous rows.

Please help in this this issues as ItemCommand is not allowing me to have access to the text boxes.

Regards
SS Bhogal
Sukhbinder
Top achievements
Rank 1
 answered on 22 Jun 2012
6 answers
502 views
Hi I am using the following code to display self referencing heirarchy and it is working fantastic. My problem is when I enable paging and go to the second page or any other page then I cannnot get the datakeyvalue for the row and it crashes.
This is the markup I am using  :
<telerik:RadTreeList runat="server" ID="tvwApp" AllowPaging="true" 
        DataKeyNames="AppID" OnItemCommand="RadTreeList1_ItemCommand" AutoGenerateColumns="false"
        OnPageSizeChanged="RadTreeList1_PageSizeChanged" OnPageIndexChanged="RadTreeList1_PageIndexChanged"
        ParentDataKeyNames="HistoricalappID" Skin="Windows7" EnableEmbeddedSkins="true"
        ItemStyle-Height="30px" AlternatingItemStyle-Height="30px" AllowSorting="true"
        HeaderStyle-Height="30px" AlternatingItemStyle-BackColor="WhiteSmoke" 
            GridLines="Horizontal">
<AlternatingItemStyle BackColor="WhiteSmoke" Height="30px"></AlternatingItemStyle>
  
<ItemStyle Height="30px"></ItemStyle>
        <Columns>
            <telerik:TreeListBoundColumn HeaderText="Reference No" DataField="AppRefNo" >
                <HeaderStyle Width="100px"></HeaderStyle>
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn HeaderText="Applicant" DataField="LOTRPNo" HeaderStyle-Width="35%" >
                  
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn HeaderText="UDA" DataField="ULDA">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn SortExpression="DatePropMade" HeaderText="Date Properly Made"
                DataField="DatePropMade" DataFormatString="{0:d}">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn SortExpression="DateDecision" HeaderText="Decisione Due"
                DataField="DateDecision" DataFormatString="{0:d}">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn SortExpression="StatusName" HeaderText="Status" DataField="StatusName" UniqueName="StatusName">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn SortExpression="IsPNRequired" HeaderText=" " DataField="IsPNRequired" UniqueName="IsPNRequired" HeaderStyle-Width="0px" ItemStyle-Width="0px" ItemStyle-Font-Size="1px">
<HeaderStyle Width="0px"></HeaderStyle>
  
<ItemStyle Font-Size="1px" Width="0px"></ItemStyle>
            </telerik:TreeListBoundColumn>
            <telerik:TreeListTemplateColumn HeaderStyle-Width="60px" HeaderText="Edit">
                <ItemTemplate>
                    <telerik:RadButton ID="SelectButton" runat="server" CommandName="Edit" Text="Edit"
                        ItemStyle-CssClass="edit" Width="50px" />
                </ItemTemplate>
  
<HeaderStyle Width="60px"></HeaderStyle>
            </telerik:TreeListTemplateColumn>
            <telerik:TreeListTemplateColumn HeaderStyle-Width="60px" HeaderText="Copy">
                <ItemTemplate>
                    <telerik:RadButton ID="RadButton1" runat="server" CommandName="Copy" Text="Copy"
                        ItemStyle-CssClass="copy" Width="50px" />
                </ItemTemplate>
  
<HeaderStyle Width="60px"></HeaderStyle>
            </telerik:TreeListTemplateColumn>
        </Columns>
  
<HeaderStyle Height="30px"></HeaderStyle>
    </telerik:RadTreeList>

and the code behind is :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
  
        If Not IsPostBack Then
            tvwApp.DataSource = LoadData(txtSearch.Text)
            tvwApp.DataBind()
            tvwApp.ExpandToLevel(1)
            txtSearch.Focus()
            CreateMenu()
            btnAddNew.Text = "Add New Application"
  
            DisplayAppDetailsHeader()
        End If
  
    End Sub
  
    Public Sub RadTreeList1_ItemCommand(ByVal sender As Object, ByVal e As TreeListCommandEventArgs) Handles tvwApp.ItemCommand
  
        If e.CommandName = RadTreeList.ExpandCollapseCommandName Then
            tvwApp.DataSource = LoadData(txtSearch.Text)
            tvwApp.DataBind()
        End If
  
        If (e.Item.ItemType = TreeListItemType.Item Or e.Item.ItemType = TreeListItemType.AlternatingItem) Then
            Dim item As TreeListDataItem = DirectCast(e.Item, TreeListDataItem)
            Dim APPID As String = item.OwnerTreeList.DataKeyValues(item.DataItemIndex)("AppID").ToString()
  
            If e.CommandName = "Copy" Then
                Response.Redirect(_apppath + "copy.aspx?ID=" & APPID & "&tabId=tab1&Action=PREAPP")
            ElseIf e.CommandName = "Edit" Then
                Response.Redirect(_apppath + "process.aspx?ID=" & APPID & "&tabId=tab1&Action=PREAPP")
            End If
        End If
    End Sub
  
  
Protected Sub RadTreeList1_PageIndexChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.TreeListPageChangedEventArgs)
        tvwApp.CurrentPageIndex = e.NewPageIndex
        tvwApp.DataSource = LoadData(txtSearch.Text)
        tvwApp.DataBind()
    End Sub
    Protected Sub RadTreeList1_PageSizeChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.TreeListPageSizeChangedEventArgs)
        tvwApp.DataSource = LoadData(txtSearch.Text)
        tvwApp.DataBind()
    End Sub

This is the error that get when I go to page 2 or any other page except page 1
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
  
'error occurs on  this line
  Dim APPID As String = item.OwnerTreeList.DataKeyValues(item.DataItemIndex)("AppID").ToString()

any help would be most appreciated.
many thanks
Princy
Top achievements
Rank 2
 answered on 22 Jun 2012
4 answers
167 views
I'm trying to great a megamenu, using the online demo "Mega-menu" dropdown as a guide. That is, my template is a per-item template, not a global one. 

I've created a throwaway project and copied the demo code pretty closely. But it doesn't work like the demo. The RadSiteMap control is rendered immediately, and the parent "Products" menu item is not visible. In the online demo, the template and RadSiteMap doesn't show until the user hovers over the parent menu item.

I'm a Telerik newbie so I'm sure this is some bone-headed move on my part. Can anyone help?

-BillyB

Billy
Top achievements
Rank 1
 answered on 22 Jun 2012
0 answers
62 views

describe below the steps to reproduce the error

1. Add an RadRibbonBar with handlerEvent in Control Click and add a button
2. Add an RadTextBox control with MultiLine property = 10, ID = "txtTetst"
3. in the Load event Add the following code
if (!IsPostBack)     txtTetst.Text = "Hello!."
4. Run
5. Enter a new value txtTest without leaving the focus of control, click the button of RadRibbonBar added

The value is not updated, this happens to me in Chrome and Opera I think Fatal Error

regards

Giancarlo
Top achievements
Rank 1
 asked on 22 Jun 2012
5 answers
419 views
Is there a way to highlight the current date for the user, regardless of Day, Week, or Month view? I saw a previous thread on how to do this for the Month view by overriding the style of rsTodayCell but that doesn't do anything for Day or Week view.

My initial thought was that highlighting of current date was a pretty standard requirement for a schedule/calendar control, so I am assuming there is a simple way to do this.

Thanks for the help!
Seth
Stephan
Top achievements
Rank 1
 answered on 21 Jun 2012
2 answers
158 views
I had been receiving the above error after upgrading a project from 2.0 to 4.0

I modified these portions of my web.config file and the controls worked properly again.
<system.web>
<assemblies>
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
        <add assembly="Telerik.Reporting, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
      </assemblies>
    </compilation>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true" />
    </httpHandlers>
 </system.web>
  

 <system.webServer>
    <handlers>
      <remove name="ChartImage_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode" />
    </handlers>
  
 </system.webServer>

now the above is not the totality of the web config,  I modified the assemblies and httphandlers under system.web and the handlers under system.webserver.

I wanted to post this here in case someone else experianced the same issue.
Yeroon
Top achievements
Rank 2
 answered on 21 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?