Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
807 views
I've got a RadScheduler and after postback, the SelectedDate gets set somewhere, somehow, back to the current date. The problem is, if the user navigates to another month than the current one, then causes a postback, instead of staying on the current month, it goes back to the initial SelectedDate (today's date).

Thanks for any feedback.

-Bob
Plamen
Telerik team
 answered on 05 Sep 2014
1 answer
124 views
The functionalities listed below are officially not supported with multicolumn headers:
•Frozen Columns;
•Show/Hide on the client;
Is there any solution to achieve these functionalities?
Eyup
Telerik team
 answered on 05 Sep 2014
3 answers
141 views
Hello,

I am working on a project with a RadListBox.
The RadListBoxItems can be Dragged and Dropped.
The RadListBox has a vertical scroll-bar.
After the user scrolls down, dragging a RadListBoxItem shows the arrow indicator on the left at the wrong place.

Here is a video link that shows the problem:[Video Link]

 How to solve this?
 

Thank you,
Daniel.
Nencho
Telerik team
 answered on 05 Sep 2014
2 answers
119 views
Hello,

I took a screenshot of the page, so if you look at it, you will understand me better.

I have a radgrid that is bind to the database using SQL Datasource.

One of the columns (Price from) is not bound to the datasource, it displays data depending on the values of the details grid.

My question: I want to filter the grid on this column (price from), since it's value is not coming from the datasource, is it possible to do filtering on it.

Thanks in advance

Bary
Top achievements
Rank 1
 answered on 05 Sep 2014
2 answers
108 views
How do you turn off the capitalization of the grid headings when using Glow or Silk skins?  I'm sure that I have seen this before but can't seem to find the setting again.

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 04 Sep 2014
2 answers
292 views

Hi,

I am doing a quick investigation regarding the saving of a controls state. Mainly a Grid control.

What i am after is information about a user changing the column order, sort order, hiding/showing columns, etc. And then having these changes saved somewhere (locally most likely) so when they return to the page, these changes persist.

This is in regards to the Grid control for ASPX, Silverlight and HTML5 (Kendo UI).

We currently are using the Silverlight controls, but are looking at also swapping to Telerik for our ASPX system and using Kendo UI when we start developing in HTML5.

Thanks for your help.

Simon Gould

Thai
Top achievements
Rank 1
 answered on 04 Sep 2014
1 answer
207 views
I have a RadMenu on a page. When I set EnableEmbeddedSkins to TRUE and set Skin to Metro, it works (see Menu1.png).

However, when I set EnableEmbeddedSkins to FALSE and Skin to Metro, it doesn't work (see Menu2.png). This is what I did to set that up:
  1. Create a folder in Styles called Metro
  2. Copied Menu.Metro.css into that folder.
  3. Copied the .../Telerik/.../Skins/Metro/Menu folder into Styles/Metro
 
I even copied the Common folder into Styles/Metro.

What am I missing?
Brad
Top achievements
Rank 1
 answered on 04 Sep 2014
1 answer
86 views
Hi,
I have a rad grid displaying on the screen with some rows.When Expand each row i am presenting with three tabs(Detals,compartments,products).See attachment
When I click on Compartmrents tab need to display the grid based on the LoadId.
Presently i am displaying this grid based on shipment id but i need this grid based on the LoadId.

I am facing issue in pasing loadId value to storedprocedure for displaying this grid.

aspx File
GetDischargeDetailWSListByDischargeId(dischargeID);
<telerik:RadPane ID="LoadingPane" runat="server" CssClass="noOverflow" >
                        <div id="LoadingPanelHeader" class="paneHeader">
                            <span class="headerPaneText">
                                <asp:Label ID="lbl_LoadingHeader" runat="server"></asp:Label></span>
                        </div>
                        <!------------------------------------
                           ---------LOADING SECTION -----------
                           ------------------------------------->
                        <telerik:RadAjaxPanel ID="LoadingPanel" runat="server" CssClass="radPaneContent TransferHeader">
                                                    </telerik:RadAjaxPanel>
                        <telerik:RadGrid ID="LoadingRadGrid" OnItemDataBound="LoadingRadGridFormat_OnItemDataBound"
                            runat="server" AutoGenerateColumns="false" CssClass="TransferGridPanel" Height="275px"
                            Width="375px" OnNeedDataSource="LoadingRadGrid_NeedDataSource">
                            <MasterTableView ShowHeadersWhenNoRecords="true">
                           
                                <NestedViewTemplate>
                                
                                    <telerik:RadTabStrip runat="server" ID="LoadTabStip" MultiPageID="LoadMultipage"
                                        SelectedIndex="0" OnTabClick="LoadTabStip_TabClick" Orientation="HorizontalTop">
                                        <Tabs runat="server">
                                            <telerik:RadTab runat="server" Text="Details" PageViewID="RadPageViewDetails">
                                            </telerik:RadTab>
                                            <telerik:RadTab runat="server" Text="Compartments" PageViewID="RadPageViewCompartments">
                                            </telerik:RadTab>
                                            <telerik:RadTab runat="server" Text="Products" PageViewID="RadPageViewProducts">
                                            </telerik:RadTab>
                                        </Tabs>
                                    </telerik:RadTabStrip>
                                    <telerik:RadMultiPage runat="server" ID="LoadMultipage" SelectedIndex="0" RenderSelectedPageOnly="false">
                                   
                                        <telerik:RadPageView runat="server" ID="RadPageViewDetails">
                                       
                                            <div class="contactWrap">
                                                <table cellpadding="0" cellspacing="0">
                                                    <tr>
                                                       <td><asp:Label ID="lbl_TerminalId" runat="server" Text='Terminal Id:' Font-Bold="true"></asp:Label></td>
                                                       <td><asp:Label ID="lbl_TerminalIdValue" runat="server"></asp:Label> </td> 
                                                    </tr>
                                                    <tr>
                                                        <td><asp:Label ID="lbl_TerminalName" runat="server" Text='TerminalName:' Font-Bold="true"></asp:Label></td>
                                                        <td><asp:Label ID="lbl_TerminalNameValue" runat="server"></asp:Label> </td>
                                                       
                                                    </tr>
                                                </table>
                                            </div>
                                        </telerik:RadPageView>
                                        <telerik:RadPageView runat="server" ID="RadPageViewCompartments">
                                       
                                            <telerik:RadGrid ID="LoadTabRadGrid" runat="server" AutoGenerateColumns="false" CssClass="TransferGridPanel"
                                                Height="233px" Width="475px" >
                                                <MasterTableView ShowHeadersWhenNoRecords="true">                                               
                                                    <Columns>
                                                        <telerik:GridBoundColumn UniqueName="CompNo" DataField="CompartmentIndex" HeaderText="Comp No.">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn UniqueName="PlannedLoadProd" DataField="PlannedProductName" HeaderText="Planned Product">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn UniqueName="ActualLoadProd" DataField="ActualProductName" HeaderText="Actual Product">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn UniqueName="PlannedLoadQty" DataField="PlannedQuantity" HeaderText="Planned Quantity">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn UniqueName="ActualLoadQty" DataField="ActualQuantity" HeaderText="Actual Quantity">
                                                        </telerik:GridBoundColumn>
                                                    </Columns>
                                                </MasterTableView>
                                            </telerik:RadGrid>
                                           
                                        </telerik:RadPageView>
                                    </telerik:RadMultiPage>
                                 
                                </NestedViewTemplate>
                               
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="LoadId" DataField="Loading_ID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="TerminalId" DataField="Plant_ID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="TerminalName" DataField="TerminalName">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="LoadingStartTime" DataField="LoadingStartTime">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="LoadingEndTime" DataField="LoadingEndTime">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" />
                            </ClientSettings>
                        </telerik:RadGrid>
                      
                    </telerik:RadPane>

aspx.cs file:

protected void LoadTabStip_TabClick(object sender, RadTabStripEventArgs e)
    {
        //AddPageView(e.Tab.Text);
        e.Tab.PageView.Selected = true;
        string selectedtabindex = e.Tab.Text;
        Int64 shipmentID = Convert.ToInt64(ShiftTreeView.SelectedNode.Value);
        switch (selectedtabindex)
        {
            case "Details":
                {
                        break;
                }
            case "Compartments":
                {
                    RadPageView page = (RadPageView)e.Tab.PageView;
                    RadGrid grdLoad = (RadGrid)page.FindControl("LoadTabRadGrid");
                    List<LoadingDetailExtraEntity> loadingTabListinstance = new List<LoadingDetailExtraEntity>();
                    loadingTabListinstance = loadingDetailManager.GetLoadingDetailExtraListByShipmentId(shipmentID);
                    grdLoad.DataSource = loadingTabListinstance;
                    grdLoad.DataBind();
                    //e.Tab.Controls.Add(grdLoad);
                    break;
                }
            case "Products":
                {
                    break;
                }
        }
    }
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Sep 2014
1 answer
198 views
I am using WebUserControls (ascx files) for editing a rad grid in two cases (Product Items and Order detail rows)

I would appreciate if someone can give me an idea on why in the fisrt case the Public Property DataItem() contains a DataRowView object, while in the second case the Public Property DataItem() contains a DynamicClass1 type with the values of the row fields {field1 = value1, field2 = value2...} (as exaclty works in the Telerik example)

In the DataBinding event...

in the first case I am accessing the values of the edited row as:  CType(editedItem.DataItem, DataRowView).Item(#) (!!)
in the second case I am accessing the values of the edited row as:  editedItem.DataItem.field1  (as exaclty works in the Telerik example)

I show you some relative code:

-----------------------
first case
-----------------------
ascx.vb
Imports System.Data.SqlClient
Imports System
Imports System.Data
Imports System.Collections
Imports System.Web.UI
Imports Telerik.Web.UI

Namespace EditFormItemDetails

  Class ItemDetails
    Inherits System.Web.UI.UserControl

    Private _dataItem As Object = Nothing


#Region "Web Form Designer generated code"

    Protected Overrides Sub OnInit(ByVal e As EventArgs)
      InitializeComponent()
      MyBase.OnInit(e)
    End Sub

    Private Sub InitializeComponent()
      AddHandler DataBinding, AddressOf Me.ItemDetails_DataBinding
    End Sub

#End Region

    Protected Sub Page_Load(sender As Object, e As EventArgs)
    End Sub

    Public Property DataItem() As Object
      Get
        Return Me._dataItem
      End Get
      Set(ByVal value As Object)
        Me._dataItem = value
      End Set
    End Property

ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ItemDetails.ascx.vb"
  Inherits="EditFormItemDetails.ItemDetails" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

aspx

<telerik:RadGrid ID="grdItems"
....
    <EditFormSettings UserControlName="ItemDetails.ascx"
              EditFormType="WebUserControl">
              <EditColumn ButtonType="ImageButton"/>   
              <PopUpSettings Width="1228px" Modal="true"/>
    </EditFormSettings>

-----------------------
second case
-----------------------
ascx.vb
Imports System.Data.SqlClient
Imports System
Imports System.Data
Imports System.Collections
Imports System.Web.UI
Imports Telerik.Web.UI

Namespace EditFormOrderDetails

  Class OrderDetails
    Inherits System.Web.UI.UserControl

    Private _dataItem As Object = Nothing


#Region "Web Form Designer generated code"

    Protected Overrides Sub OnInit(ByVal e As EventArgs)
      InitializeComponent()
      MyBase.OnInit(e)
    End Sub

    Private Sub InitializeComponent()
      AddHandler DataBinding, AddressOf Me.OrderDetails_DataBinding
    End Sub

#End Region

    Protected Sub Page_Load(sender As Object, e As EventArgs)
    End Sub

    Public Property DataItem() As Object
      Get
        Return Me._dataItem
      End Get
      Set(ByVal value As Object)
        Me._dataItem = value
      End Set
    End Property

ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OrderDetails.ascx.vb"
  Inherits="EditFormOrderDetails.OrderDetails" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

aspx

<telerik:RadGrid ID="grdItems"
....
    <EditFormSettings UserControlName="OrderDetails.ascx"
              EditFormType="WebUserControl">
              <EditColumn ButtonType="ImageButton"/>   
              <PopUpSettings Width="800px" Modal="true"/>
    </EditFormSettings>


I would appreciate if someone understands the reason of the dataitem difference.

(I am not really sure which other part of my code is relative. Please ask me to post whatever is useful.)

Thanks








Eyup
Telerik team
 answered on 04 Sep 2014
4 answers
170 views
this is my updatecommand code , i get new values but i want old value also how can i get it

GridEditableItem EditItem = e.Item as GridEditableItem;
            RadTextBox txtTestName = (RadTextBox)EditItem["ActiVityName"].FindControl("txtTestName");
            Hashtable newValues = new Hashtable();
            e.Item.OwnerTableView.ExtractValuesFromItem(newValues, EditItem);
            string NewActivityName = newValues["ActivityName"].ToString();
//WANT OLD VALUE HERE
Thanks
Pavlina
Telerik team
 answered on 04 Sep 2014
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?