Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
I am adding a table of detail in each row that appears, add it to programming. The problem is, when you expand the line, you see all the tables in detail all items.
'What may be missing?

this is my code for add a table of detail in each row:

DataTable datTabDatosDetalle = new DataTable();
                    if (ViewState["OrdCompraProdDetallesSub" + IdOrdenCompra + Skucode] == null)
                    {
                        datTabDatosDetalle = CCSMovimientoProductos.BuscarProdDetOrdenCompra_CEDIS(IdOrdenCompra, Skucode).Tables[0];
                        ViewState.Add("OrdCompraProdDetallesSub" + IdOrdenCompra + Skucode, datTabDatosDetalle);
                    }
                    else
                        datTabDatosDetalle = (DataTable)ViewState["OrdCompraProdDetallesSub" + IdOrdenCompra + Skucode];
  
                    Telerik.Web.UI.GridTableView detailTable = new Telerik.Web.UI.GridTableView(radGriOrdComDetalles);
                    radGriOrdComDetalles.MasterTableView.DetailTables.Add(detailTable);
  
                    detailTable.Name = "tabDetail" + IdOrdenCompra + Skucode;
                    detailTable.DataKeyNames = new string[] { "Id", "prodSkucode" };
                    detailTable.EnableViewState = true;
                    detailTable.NoDetailRecordsText = "Sin registros.";
                    detailTable.Caption = "Detalle del producto Sku " + Skucode;
                    detailTable.EditMode = Telerik.Web.UI.GridEditMode.InPlace;
  
                    foreach (DataColumn dc in datTabDatosDetalle.Columns)
                    {
                        Telerik.Web.UI.GridBoundColumn campo = new Telerik.Web.UI.GridBoundColumn();
                        detailTable.Columns.Add(campo);
                        campo.UniqueName = "col" + dc.ColumnName;
                        campo.HeaderText = "[ " + dc.ColumnName + " ]";
                        campo.HeaderStyle.Font.Bold = true;
                        campo.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
                        campo.DataField = dc.ColumnName;
  
                        if (dc.ColumnName == "Id")
                            campo.Visible = false;
                        if (dc.ColumnName == "prodSkucode")
                            campo.Visible = false;
                        if (dc.ColumnName == "Talla")
                            campo.ReadOnly = true;
                    }
  
                    Telerik.Web.UI.GridEditCommandColumn campoEdit = new Telerik.Web.UI.GridEditCommandColumn();
                    campoEdit.UniqueName = "colEdit";
                    campoEdit.ButtonType = Telerik.Web.UI.GridButtonColumnType.ImageButton;
                    campoEdit.EditText = "Editar";
                    campoEdit.UpdateText = "Actualizar";
                    campoEdit.CancelText = "Cancelar";
                    detailTable.Columns.Add(campoEdit);
                    detailTable.DataSource = datTabDatosDetalle;
  
                    detailTable.Rebind();
                    radGriOrdComDetalles.Rebind();

Carlos Rodriguez
Top achievements
Rank 1
 answered on 04 Apr 2011
0 answers
104 views

I have a Telerik Tab strip control on a master page as follows.

<telerik:RadTabStrip ID="rtsOrders" runat="server" 

            Width="350px"

             Skin="Outlook"

            Align="Justify" >

            <Tabs>

                <telerik:RadTab Text="Manage Groups" Width="100" Visible="false" NavigateUrl="~/Group/GroupMembers.aspx" />

                <telerik:RadTab Text="Manage Orders" Width="100" Visible="false" NavigateUrl="~/Manager/ManageOrders.aspx" />

                <telerik:RadTab Text="My Orders" Width="100" NavigateUrl="~/Order/MyOrders.aspx" />

            </Tabs>

       </telerik:RadTabStrip>

 

All above tab navigation URLs are  content pages. When I click on the tab, I do see flicker and complete page loading even though I did not set Autopostback to true for Radtabstrip.

 

I put a breakpoint on page load of master page. It does come there on every tab click and when I check for  ?page.Request.Params.Get("__EVENTTARGET") It comes as nothing.

 

I really don’t know why page behaves like this?

 

Thanks!

A K
Top achievements
Rank 1
 asked on 04 Apr 2011
2 answers
113 views
Hi all,
i'm using a RadGrid and i'm managing the operations of insert / update / delete operations by automatically provided by the grid.
When you are in edit / insert i need that buttons of confirmation / cancellation are positioned not only in bottom position but also at top of the form.

Here my code:

<EditFormSettings ColumnNumber="3" CaptionDataField="codice_Astuccio"
    CaptionFormatString="Modifica le caratteristiche del codice astuccio: {0}"
    InsertCaption="Nuovo astuccio">                                                        
   <FormTableItemStyle Wrap="False"></FormTableItemStyle>
    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
        Width="1024px" />
    <FormTableStyle CellSpacing="0" CellPadding="2" Width="330px" Height="110px" BackColor="White" />
    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
    <EditColumn ButtonType="ImageButton" InsertText="Inserisci astuccio" UpdateText="Modifica astuccio"
        UniqueName="EditCommandColumn1" CancelText="Cancella le modifiche">
    </EditColumn>
    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
</EditFormSettings>

Thank in advance at all,

DrGiorgini
Top achievements
Rank 1
 answered on 04 Apr 2011
2 answers
69 views
Hi !

Some actions in Undo/Redo list are shown not localized. I can say for sure about Justify group (JustifyLeft, JustifyRight and so on).

Phrases with translation are present in resx file. Looks like they had been picked up but not shown in UI.

Is this an issue or I do something wrong here?
Michael
Top achievements
Rank 1
 answered on 04 Apr 2011
1 answer
68 views
When i double click a row, it turns to edit mode. After editing the row and click out side any other row, the grid is automatically updating.

i want to sort the grid based on the field "unit price".  how can i do this ?

here is the code i used

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="Label1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" DataSourceID="SessionDataSource1" Width="97%"
            ShowStatusBar="True" AllowSorting="True" PageSize="7" GridLines="None" AllowPaging="True"
            runat="server" AllowAutomaticUpdates="True" OnItemUpdated="RadGrid1_ItemUpdated" AutoGenerateColumns="False" OnDataBound="RadGrid1_DataBound">
            <MasterTableView TableLayout="Fixed" DataKeyNames="ProductID" EditMode="InPlace">
              <Columns>
                <telerik:GridBoundColumn UniqueName="ProductID" DataField="ProductID" HeaderText="ProductID" ReadOnly="True" HeaderStyle-Width="10%" />
                <telerik:GridBoundColumn UniqueName="ProductName" DataField="ProductName" HeaderText="Product name"
                 HeaderStyle-Width="25%" ColumnEditorID="GridTextBoxColumnEditor1" />
                <telerik:GridBoundColumn UniqueName="QuantityPerUnit" DataField="QuantityPerUnit" HeaderText="Quantity"
                 HeaderStyle-Width="20%" />
                <telerik:GridNumericColumn UniqueName="UnitPrice" DataField="UnitPrice" HeaderText="UnitPrice" HeaderStyle-Width="10%" ColumnEditorID="GridNumericColumnEditor1" />

</Columns>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick"
                    OnGridCreated="GridCreated" OnCommand="GridCommand" />
            </ClientSettings>
        </telerik:RadGrid>
        <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="180px" />


Arun
Top achievements
Rank 1
 answered on 04 Apr 2011
2 answers
121 views
Hello,
In my website I'm using the Radeditor. When I'm inserting an image with ImageManager, I'd like to automatically set the style "vertical-align: top;", so I don't have to change the alignement-property for every inserted image. Is it possible to do this?
 Thanks for your reply!
David De Backer
Top achievements
Rank 1
 answered on 04 Apr 2011
1 answer
168 views
hi,
i want to set child node selected in page_load.

i used load on demand (Page method).

http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/loadondemandmodes/defaultcs.aspx

thanks in advance
Nikolay Tsenkov
Telerik team
 answered on 04 Apr 2011
1 answer
161 views
Hello using the RadGrid control, trying to have multiple subtotal results group (conditional totals) appear in either the Group Header or Footer Preferred. I can only seem to do one total per group per column using ,<GroupByExpressions>. Given a simple dataset of
Group Color Value
1    Red    5
1    Red    2
1    Blue   3
2    Red    4
2    Green 4
2    Green 5

I would like the Grid to Output with the following "Conditional" subtotals in the Group Footer(ideal) or Header and can the RadGrid display Group Totals with more than 1 line, all examples show just output on a single line?

Group Color Value
1    Red    5
1    Red    2
1    Blue   3
-----
Group 1 Color: Red Count: 2 Value 7
Group 1 Color: Blue Count:1 Value 3
-----
2    Red    4
2    Green 4
2    Green 5
----
Group 2 Color: Red Count: 1 Value 4
Group 2 Color: Green Count: 2 Value 9
----

Possible with RadGrid??
Tim
Mira
Telerik team
 answered on 04 Apr 2011
1 answer
110 views
Hi,

I need to create a read only form to view a selected item in my radgrid. If i set the columns to read only then they are not displayed in the edit form. I need to display all read only columns.
I tried to create a template but am not sure how to call the corresponding values in say a read only text box - or just as text

Thanks in advance

Martin
Top achievements
Rank 1
 answered on 04 Apr 2011
1 answer
96 views
Hi,

I need to create a read only form to view a selected item in my radgrid. If i set the columns to read only then they are not displayed in the edit form. I need to display all read only columns.
I tried to create a template but am not sure how to call the corresponding values in say a read only text box - or just as text

Thanks in advance

Martin
Top achievements
Rank 1
 answered on 04 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?