Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
178 views
Hello there,
In RAD GRID, 
as i have grid display the Summary ( 5 Fields )  and i want to edit the all details ( + 20 Fields )  
can i have different Data Source for Edit Form different then that for grid? 

also for the ADO.Net Data Services , what is the best practice for binding it with Rad Controls, currently i was trying using ObjectContainerDataSource and it seems working good but do you have better recommendations / concerns ? 
thanks
Sam

Ramjet
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
114 views
Below is the problems when export the data from grid to excel file:
1. Number appear in scientific format
2. If the data contain the "<br/>", it will show in few rows. How to make it show in the same row?


Daniel
Telerik team
 answered on 30 Apr 2010
1 answer
67 views
I am using the following code but the aggregates do not show. I have looked at many examples and cannot discover what it the cause. Any help would be appreciated.

 <telerik:RadGrid ID="grdSalesPersonDetail" runat="server" GridLines="None" AllowPaging="False" 
            GroupingEnabled="true" AutoGenerateColumns="False" Skin="Office2007" ShowFooter="True" 
            OnItemCommand="grdSalesPersonDetail_ItemCommand" OnItemDataBound="grdSalesPersonDetail_ItemDataBound" 
            OnSelectedIndexChanged="grdSalesPersonDetail_SelectedIndexChanged" OnNeedDataSource="grdSalesPersonDetail_NeedDataSource">  
            <MasterTableView DataKeyNames="DLRSTAFF_ID" TableLayout="Fixed">  
                <Columns> 
                 <telerik:GridTemplateColumn DataField="DLRSTAFF_Name" HeaderText="Name">  
                        <ItemTemplate> 
                            <asp:LinkButton ID="lnkDealNum" runat="server" CommandName="OpenSalesPerson" CommandArgument='<%# Eval("DLRSTAFF_Name") %>' 
                                Text='<%#Eval("DLRSTAFF_Name") %>' /> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridNumericColumn DataField="Sales_Gross" HeaderText="Sales Gross" DataType="System.Decimal" 
                        NumericType="Currency" SortExpression="Sales_Gross" UniqueName="Sales_Gross" 
                        Aggregate="Count" /> 
                    <telerik:GridNumericColumn DataField="Avg_Sales_Gross" HeaderText="Avg Sales Gross" NumericType="Currency" 
                        Aggregate="Count" DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="FI_Gross" HeaderText="FI Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Avg_FI_Gross" HeaderText="Avg FI Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Total_Gross" HeaderText="Total Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Avg_Total_Gross" HeaderText="Avg Total Gross" NumericType="Currency" 
                        Aggregate="Count" DataType="System.Decimal" /> 
                </Columns> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </MasterTableView> 
        </telerik:RadGrid> 

Alfred Goldberg
James
Top achievements
Rank 1
 answered on 30 Apr 2010
0 answers
80 views
hi my dear friends:
at first plz see this demo in firefox and ie 8...
http://demos.telerik.com/aspnet-ajax/upload/examples/customizingraduploadui/defaultcs.aspx
why radupload has 2 differences behaviour  when u click on it in firefox and ie8?
============================================================================
i have a customized skin for my radupload , and after that click on it's Select Button became difficult...
when i trying to click Select Button i should try more than one time click on it to get browse window...
how can i solve this?
thanks for your future attention
Majid Darab
Top achievements
Rank 1
 asked on 30 Apr 2010
6 answers
181 views
If you create a global TabTemplate (need to have a close button) any images that are assigned to the tab don't show up unless the tab is hovered over.  The other issue is  the icon (image) shows up in the far right of the tab, not left of the text as expected and documented. 

 

 

 
  <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"   
        Skin="Vista">  
         <TabTemplate> 
            <%# DataBinder.Eval(Container, "Text") %> 
          </TabTemplate> 
         <Tabs> 
            <telerik:RadTab runat="server" Text="Demand" ImageUrl="~/Images/icons/Demand.gif">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Drafts"  ImageUrl="~/Images/icons/Drafts.gif">  
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 

Any idea on how to make the Image show up in the proper place at the proper time (load)?

Daniel
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
78 views
I have a requirement where the command row of the RadGrid must always be at the bottom of the grid. We have implemented code where the grid will be resized to always fit the container it lives in, but when paging is turned on, our page layouts become inconsistent because on some pages the paging row is the last row and on others the command row is the last row. So, I am wondering if there is a way to always make the command row show as the last row (or at least below the paging row) be it by server code or javascript. Anyone have a solution to this?

Thanks.

Jared
Jared Lewis
Top achievements
Rank 1
 answered on 30 Apr 2010
2 answers
85 views
Hi,

Why I can't see the png image (radcombobox) in Internet Explorer, but yes in Chrome?

Thank you for your help.


GUSTAVO RODRIGUEZ NARES
Top achievements
Rank 1
 answered on 30 Apr 2010
8 answers
615 views
Hello chaps,

Quick question:  

I have a RadNumericTextBox with its MinValue property set to 0 and MaxValue property set to 1000.  I've worked out that I can use the ClientEvents-OnError property to call a JavaScript function and display an alert box when the user enters a value outside of the range, but is it possible to also clear the RadNumericTextBox raising the error, rather than have it revert to 1000 if the value entered is bigger and 0 if the value is smaller?

Cheers,

Adam


Martin
Telerik team
 answered on 30 Apr 2010
6 answers
222 views
Hi
can anyone tell me why i am getting this error:
--------------------------------------------------------------
[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +259
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +10
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +73
   Telerik.Web.UI.RadComboBox.PerformSelect() +21
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +515
   Telerik.Web.UI.GridTableView.CreateFilteringItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) +100
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +761
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +495
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +221
   Telerik.Web.UI.GridTableView.Rebind() +48
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +1019
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) +299
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

------------------------------------------------------------------
here is my source code
---------------------------------------------------------------------------
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <table class="style1">
            <tr>
                <td>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True"
                        AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"
                        AllowSorting="True" AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1"
                        GridLines="None" ShowFooter="True">
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="CategoryID"
                            DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"
            DefaultInsertValue="" HeaderText="CategoryID" ReadOnly="True"
            SortExpression="CategoryID" UniqueName="CategoryID">
            <HeaderStyle Width="20%" />
        </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="CategoryName" DataField="CategoryName" HeaderText="Category" HeaderStyle-Width="250px">
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxCategory" Width="250" DataSourceID="SqlDataSource2" DataTextField="CategoryName"
                                DataValueField="CategoryName" Height="400px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("CategoryName").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="CategoryIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

                                <script type="text/javascript">
                                    function CategoryIndexChanged(sender, args) {
                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                                        tableView.filter("CategoryName", args.get_item().get_value(), "EqualTo");
                                    }
                                </script>

                            </telerik:RadScriptBlock>
                        </FilterTemplate>

<HeaderStyle Width="250px"></HeaderStyle>
                    </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                    </telerik:RadGrid>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:OrderSystemConn %>"
        DeleteCommand="DELETE FROM [Category] WHERE [CategoryID] = @CategoryID"
        InsertCommand="INSERT INTO [Category] ([CategoryName]) VALUES (@CategoryName)"
        SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Category] ORDER BY [CategoryName]"
        UpdateCommand="UPDATE [Category] SET [CategoryName] = @CategoryName WHERE [CategoryID] = @CategoryID">
        <DeleteParameters>
            <asp:Parameter Name="CategoryID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="CategoryName" Type="String" />
            <asp:Parameter Name="CategoryID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="CategoryName" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:OrderSystemConn %>"
        SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Category] ORDER BY [CategoryName]">
    </asp:SqlDataSource>
    </form>
--------------------------------------------------------------------------------

Thanks
Mira
Telerik team
 answered on 30 Apr 2010
6 answers
318 views
I'm new at Telerik controls
Has anybody seen this problem before? I'm using a RadDatePicker (Ajax) and everytime i pick a date in the calendar it writes to days date in the indput field. the year changes but the day and month does not.

There is no error and i can change the date in the indput field and the right date gts posted back.

Does anybody have an idea to what could be wrong?

Tina
Pat
Top achievements
Rank 1
 answered on 30 Apr 2010
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?