Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
314 views

  Theres a problem with RadGrid template column, at footer theres 3 radnumeric textboxes inside, all three loses values after postback, whats going on?

<telerik:RadGrid ID="grid" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" GridLines="None" Skin="Office2007"
            Width="862px">
<MasterTableView HierarchyLoadMode="Client" Name="master" showfooter="True">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridTemplateColumn HeaderText="Cant"
            UniqueName="cant2">
            <FooterTemplate>
                Unidades &nbsp;&nbsp;
                <br />
                <telerik:RadNumericTextBox ID="CTB_qty" Runat="server" Width="50px"
                    BorderStyle="None" ReadOnly="True">
                    <numberformat decimaldigits="2" />
                </telerik:RadNumericTextBox>
            </FooterTemplate>
            <ItemTemplate>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <telerik:RadNumericTextBox ID="CTB_cant" Runat="server"
                    Culture="English (United States)" LabelCssClass="radLabelCss_Outlook"
                    ontextchanged="RadNumericTextBox1_TextChanged" Skin="Outlook" Value="0"
                    Width="50px">
                </telerik:RadNumericTextBox>
            </ItemTemplate>
            <FooterStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="0px" HorizontalAlign="Center" Height="50px" />
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="unidad" DataType="System.Single" EmptyDataText=""
            HeaderText="Unidad" ReadOnly="True" UniqueName="column1">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Font-Bold="False" HorizontalAlign="Center" Width="50px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="cve_articulo" EmptyDataText=""
            HeaderText="Clave art" ReadOnly="True" UniqueName="clave">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Font-Bold="False" HorizontalAlign="Center"
                Width="50px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="descripcion" EmptyDataText=""
            UniqueName="desc1" HeaderText="Descripción">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="200px" Font-Bold="True" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="descripcion2" Display="False"
            EmptyDataText="&amp;nbsp;" HeaderText="Detalle" UniqueName="desc2">
            <HeaderStyle HorizontalAlign="Center" Width="200px" />
            <ItemStyle Font-Bold="True" Width="200px" />
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn HeaderText="Producto cotizado"
            UniqueName="TemplateColumn2">
            <ItemTemplate>
                Marca:<br />
                <telerik:RadTextBox ID="CTB_Marca" Runat="server"
                    EmptyMessage="Marca del producto" Skin="Outlook" Width="190px">
                </telerik:RadTextBox>
                <br />
                Modelo:<br />
                <telerik:RadTextBox ID="CTB_Modelo" Runat="server"
                    EmptyMessage="Modelo del producto" Skin="Outlook" Width="190px">
                </telerik:RadTextBox>
                <br />
                GarantĆ­a:<br />
                <telerik:RadTextBox ID="CTB_garantia" Runat="server"
                    EmptyMessage="GarantĆ­a del producto" Skin="Outlook" Width="190px">
                </telerik:RadTextBox>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="200px" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Unitario" UniqueName="TemplateColumn">
            <FooterTemplate>
                <asp:Label ID="Label1" runat="server" Text="Subtotal:"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label4" runat="server" Text="Flete:"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label2" runat="server" Text="Impuesto:"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label3" runat="server" Text="Total:"></asp:Label>
            </FooterTemplate>
            <ItemTemplate>
                <telerik:RadNumericTextBox ID="CTB_unitario" Runat="server"
                    Culture="English (United States)" LabelCssClass="radLabelCss_Outlook"
                    Skin="Outlook" Type="Currency" Value="0" Width="85px"
                    ontextchanged="RadNumericTextBox1_TextChanged">
                    <ClientEvents OnValueChanged="OnClientValueChanged" />
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
            </ItemTemplate>
            <FooterStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="90px" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Subtotal" UniqueName="TemplateColumn1" >
            <FooterTemplate>
                <telerik:RadNumericTextBox ID="CTB_subtotal" Runat="server" BackColor="#CCFFCC"
                    ReadOnly="True" Type="Currency" Value="0" Width="85px" Font-Bold="True">
                    <DisabledStyle HorizontalAlign="Right" />
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
                <br />
                <telerik:RadNumericTextBox ID="CTB_flete" Runat="server" Font-Bold="True"
                    LabelCssClass="" Skin="Outlook" Type="Currency" Value="0" Width="85px">
                    <ClientEvents OnValueChanged="OnClientValueChanged" />
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
                <br />
                <telerik:RadNumericTextBox ID="CTB_iva" Runat="server"
                    Skin="Outlook" Type="Currency" Value="0" Width="85px" BackColor="#CCFFCC"
                    Font-Bold="True" LabelCssClass="" ReadOnly="True">
                    <DisabledStyle HorizontalAlign="Right" />
                    <FocusedStyle HorizontalAlign="Right" />
                    <ClientEvents OnValueChanged="OnClientValueChanged" />
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
                <br />
                <telerik:RadNumericTextBox ID="CTB_total" Runat="server" BackColor="#CCFFCC"
                    ReadOnly="True" Type="Currency" Value="0" Width="85px" Font-Bold="True">
                    <DisabledStyle HorizontalAlign="Right" />
                    <clientevents onvaluechanged="OnClientValueChanged" />
                    <EnabledStyle HorizontalAlign="Right" />
                    <disabledstyle horizontalalign="Right" />
                    <enabledstyle horizontalalign="Right" />
                </telerik:RadNumericTextBox>
            </FooterTemplate>
            <ItemTemplate>
                <telerik:RadNumericTextBox ID="CTB_subtotal" Runat="server"
                    Culture="English (United States)" ReadOnly="True" Skin="Outlook"
                    Type="Currency" Value="0" Width="85px" BackColor="White"
                    BorderStyle="None">
                    <DisabledStyle HorizontalAlign="Right" />
                    <ClientEvents OnValueChanged="OnClientValueChanged" />
                    <EnabledStyle HorizontalAlign="Right" />
                </telerik:RadNumericTextBox>
            </ItemTemplate>
            <FooterStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Right" Width="100px" />
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="cant_sol" Display="False"
            EmptyDataText="&amp;nbsp;" UniqueName="cant" />
        </Columns>
</MasterTableView>

<FilterMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
        </telerik:RadGrid>

 
Yavor
Telerik team
 answered on 03 Nov 2008
1 answer
190 views
Have looked on here and there is a fair few posts regarding this issue but they are quite dated and have a lot of different answers. I am wanting to be able to click on a cell in a grid and get not only the value but also a way to know what column and row that cell belongs to.
Any help is greatly appreciated, cheers.
Paul
Princy
Top achievements
Rank 2
 answered on 03 Nov 2008
2 answers
69 views
Which is the best way to define some properties in RadGrid, in special localization propereties, and reuse in other projects?

ps: without the old, famous and not so good: CUT & PASTE.
Vlad
Telerik team
 answered on 03 Nov 2008
1 answer
119 views
Hi everyone,

I am doing some practicals with radgrid. I'm just wondering if there is a way to display different datasources within one radgrid...

For example, I have three tables: products, customers, and order status.
in order to allow administration staff to modify the entries of those tables, I want them to choose one table from the dropdown list (or combobox). Thus, is there any solution available to display coorsponsdent table in the radgrid, like, "products" value has been selected in dropdown list, will the product table appear in the grid?

Vlad
Telerik team
 answered on 03 Nov 2008
1 answer
168 views
Hello All,

I have a stacked bar chart that has both negative and positive values. 

this is what i'm looking for.

For the y-axis it ranges from 0,10,20,... 100, and 0, -10, -20, ... -100,

for the negative axis, i need it to show as positive so it would be 0 to 100 on both positive and negative axis.

is this possible? how do i override the negative label to simply make it appear positive.
Ves
Telerik team
 answered on 03 Nov 2008
2 answers
217 views
Hello
When loading html content from a db. to a radEditor, the radEditor changes  some of the html tags. For example, the <param name="movie"> for a flash file is changed to <p aram=""movie>.I also have some (Commerce Server) Server tags that are changed in a anoying manner. For example <uc: something/> is changed to <uc: something/> </uc:something> which is a serious error because it generates a 500  error on our web site.

Does anyone know how to ' tell 'radEditor to not change the html content ? Thanks


Ivan
Top achievements
Rank 1
 answered on 03 Nov 2008
4 answers
1.1K+ views
Hi everybody,

I'm using two radgrid seaparetly related to two tab. Now If I click tab2 and edit any record of grid 2 then edit popup form open. The scenario starts from here that without touching Update or Cancel button if I click 2nd tab then I need a confirmation message...... I am getting alert mesage through following code..

foreach

(GridDataItem item in radGridTimeBand.MasterTableView.Items)

 

{

 

if (item.ItemType == GridItemType.EditItem)

 

{

RadAjaxManager1.Alert(

"You haven't completed the previous form, data will be lost!!");

 

}

item.Edit =

false;

 

}

radGridTimeBand.Rebind();

Please suggest me how could I display confirm dialog box in place of alert message box.

rajendra
Top achievements
Rank 1
 answered on 03 Nov 2008
4 answers
153 views
Dear All!

I have the following question with the type of StackedBar100
I want the bar without any labels, backgrounds, etc.

Now I have the following chart:
http://www.anda.hu/have.jpg

And I want the following:
http://www.anda.hu/want.jpg

Is it possible? how?

many thx,
alsi
Ves
Telerik team
 answered on 03 Nov 2008
2 answers
119 views

Hi

I have a problem using RadDatePicker control.

When I select a date for example 11/01/2009 (1st Nov 2009) and click away the date control the date resets to 12/01/2009. When I save my page, the actual date saved in the database is 11/01/2009, but some how the control cannot show 11th month of 2009.

Similarly for 2009 I cannot select 2, 4, 6, 7, 9 and 11 as month.

 

Thanks

Vlad
Telerik team
 answered on 03 Nov 2008
19 answers
485 views
The MOSS 2007 guide is very detailed, but for those of us who have never used sharepoint before (like me) and are using WSS 3.0 (like me)  may have difficulty making the guide work for them (like me).

Is there any way we could get a detailed guide on how to use these controls in WSS 3.0? 
Dimo
Telerik team
 answered on 03 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?