Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 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
302 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
211 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
97 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
206 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
179 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
10 answers
315 views
Hi,

I have the following challenge ;-), I have a radgrid and editing using Editform  I have a radbinary image and radasyncupload in the editform. I am able to store the image in the data base after the "update command". But after selecting I only see the filename but not the selected image.  it is NOT user friendly NOT showing the selected image when clicking on the radasyncupload. Question is how to display the selected value in the radbinary image  using asyncupload.in the edit template.

Thanks,

Henk
Konstantin Dikov
Telerik team
 answered on 04 Sep 2014
1 answer
269 views
Hi, I am using

<MasterTableView AutoGenerateColumns="true" AllowFilteringByColumn="True"

to auto generate columns in grid and allow filtering, I would like to allow user to press enter to apply filter, and limit each filter by to 50px only for their width.

I was using this when i used to predefine the columns :

<telerik:GridBoundColumn FilterControlWidth="50px" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo"

how to do this with auto generated columns?  Thanks.

Regards,
Alex
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Sep 2014
6 answers
264 views
I have two asp panels with ID's Panelcombo and PanelGrid .Panelcombo contains 6 comboxes and Panel Grid contains 1 radgrid. After filling all comboboxes I am showing Radgrid.I have RadAjaxManger with the following setting
<telerik:RadAjaxManager ID="ajman" runat="server">
 
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Panelcombo">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panelcombo"/>
                  <telerik:AjaxUpdatedControl ControlID="PanelGrid"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
 </AjaxSettings>
</telerik:RadAjaxManager>
                   Radgrid contains RadNumerictextbox which has Client event as follows
<ClientEvents OnValueChanged="ValueChanged" />
    which is not firing
Konstantin Dikov
Telerik team
 answered on 04 Sep 2014
7 answers
172 views
Hi,
When I set the hierarchyloadmode to client I am having a strange issue. The first row is supposed to have one detail table row but it has over 50 blank ones. The problem only seems to happen for the first row of the master table, the rest are fine. When I set the mode back to default, the issue is not there. Has anyone else seen this?
Angel Petrov
Telerik team
 answered on 04 Sep 2014
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?