Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
486 views
I can't seem how to figure out how to get correct decimal values in my footer aggregate using Avg as the aggregate method. Here is the column for the aggregate

<telerik:GridBoundColumn Aggregate="Avg" FooterAggregateFormatString="Avg: {0:0.00}" DataFormatString="{0:0}" HeaderText="Age" HeaderStyle-Wrap="false" UniqueName="age" DataField="age" SortExpression="age" Groupable="false"
    <ItemStyle Wrap="false" /> 
</telerik:GridBoundColumn> 

The values that are being averaged are 24, 10, 7, 14. The average comes out as 13.00 when it should come out as 13.75. If I change the FooterAggregateFormatString="Avg: {0:0.00}" to FooterAggregateFormatString="Avg: {0:0}", it rounds down to 13 instead of up to 14.

Can you tell me how to get an accurate average using this method. Thanks.


Jonathan
Top achievements
Rank 1
 answered on 02 Sep 2012
1 answer
207 views
Hi, is it possible to have the treeview similar to what you have for WPF
http://www.telerik.com/community/forums/wpf/treeview/multicolumn-treeview.aspx

I tried using node templates, but the alignment i can't get it right. any tricks/solutions ?



arslanz
Top achievements
Rank 1
 answered on 01 Sep 2012
1 answer
142 views
I am using Radgrid for displaying data & which uses filter columns at the top.
The problem I am having is, some of the column types is "DateTime" & it shows a Calendar control but sometimes the textbox field where DateTime has to be entered or displayed (in case date picked up from Calendar) shows very very small size where users hardly see 1 or 2 digits.

Can somebody throw some light on this? Whats the reason getting the filter box small size for DateTime column? All other filter boxes (with no calendar input) were of normal size at the same time. This happens only for datetime filter on probably specpfic occasions.

Thank you
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Sep 2012
1 answer
78 views
I guess I should know this, but... I have a grid where every control does not auto-postback. It allows mult-row edit, has dropdowns, date and time pickers, etc. If one of the fields is invalid, like text in a datepicker, I want to disable the Update button. I believe all of this needs to be done on the client side. And I believe I need to funnel all validation through one JavaScript method that determines if there are any validation issues (btn.enabled=allControlsValid;).

But I want to do this in the most performant manner, which rules out server-side validation. ( ? ) There could be a 100 rows in this grid with 30 columns, and maybe 10 of them are editable. I think the user would perceive a delay if I checked 1000 cells on every cell edit. So I'm guessing the check should only be made when focus moves from one row to another.
Can someone guide me in the right direction?

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Sep 2012
13 answers
282 views
Hi Friends,

I am new to this forum i am working on a project. where A Button click("Show Activity Button") should open a Rad window . In that Rad Window there are four checkBoxes which come from DataBase if we check "Development"( Attached File img1.png) It should go back to the parent page and display what it is there in the attached file "img2.png". If we multi check the Check boxes it should display the fields accordingly. And when we click on Submit button in the parent page it should send it to the database .

Please help me out.

Prashanth
Top achievements
Rank 1
 answered on 01 Sep 2012
1 answer
85 views
Hi Every one.

  I am binding the REST based webservices data(it will return JSON format) to Radgrid from client side using  javascript, now  i have to do Client side sorting & paging  for radGrid but am not able to do that one..if any body as idea or code please post  here that would be great......!!!!!!!!


Thanks
vijay kumar N
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Sep 2012
5 answers
1.0K+ views
How can I select a single row in Radgrid using checkbox? I am using gridtemplate column to show checkbox in the grid as below. 
<telerik:GridTemplateColumn AllowFiltering="false">
                                            <ItemTemplate>
                                             <asp:CheckBox runat="server" ID="CheckBoxColumn" OnCheckedChanged="CheckBoxColumn_CheckedChanged" AutoPostBack="true" />
                                            </ItemTemplate>
                                            </telerik:GridTemplateColumn>

But here I need to select only a single row in the grid.While checking a checkbox,I need to uncheck the previously checked checkbox in grid.

Please help me on this.
 Thanks,
Soumya

Soumya
Top achievements
Rank 1
 answered on 01 Sep 2012
1 answer
115 views
In the past I've successfully used a single RadWindow on a page.  It works fine.

Now I need to have one RadWindow appear on top of another RadWindow.  Reading through Telerik's documentation I've learned that I need to introduce the RadWindowManager.  I did so but encountered this error: http://www.telerik.com/support/kb/aspnet-ajax/window/cannot-unregister-updatepanel-with-id-updatepanelid-since-it-was-not-registered-with-the-scriptmanager.aspx

There is NO WAY I can get rid of the UpdatePanel in my RadWindow.  It must stay.

So reading the 1st suggested workaround I tried doing this:

<telerik:RadWindowManager ID="rwManager" runat="server" /><br><telerik:RadWindow ID="rwNewMuckpile" runat="server" Behaviors="Move" EnableShadow="true" VisibleStatusbar="false" VisibleTitlebar="false" AutoSize="true" Modal="true"><br>  <ContentTemplate><br>    <asp:UpdatePanel ID="UpdatePanel2" runat="server"><br>      <ContentTemplate><br>        <div class="dialogHeader"><br>          Move Muck<br>        </div><br>        .<br>        .<br>        .<br>

But it just produced another error: "Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_Mucking_rwNewMuckpile' can't be added to the application."

So what should I do?

Robert



Robert
Top achievements
Rank 1
 answered on 31 Aug 2012
1 answer
64 views
I am using v2012.1.411.35 and having an issue with the numerictextbox and spin buttons. I have the spin buttons turned on and no other attributes set other than skin.
<telerik:RadNumericTextBox ID="RadNumericTextBox1" ShowSpinButtons="true" runat="server" Skin="Web20"></telerik:RadNumericTextBox>

In IE (7,8,9), the spin buttons appear below the textbox no matter the width set on the control. Is there a css class that could have been overridden somewhere that could be affecting the control?

Any suggestions?
Dave
Top achievements
Rank 1
 answered on 31 Aug 2012
2 answers
92 views
I have radgride in my aspx page but when i show my page in browser can not see row selection i don't know why
note : property AllowMultiRowSelection="true" 
- I use VS2010 Frameworke 4 ,VB.net

<telerik:RadGrid ID="RadGrid1" ShowGroupPanel="True" ShowStatusBar="true"
       runat="server" DataSourceID="SqlDataSource1" Width="95%" AutoGenerateColumns="False"
       PageSize="15" AllowSorting="True" AllowMultiRowSelection="true" AllowPaging="True" GridLines="None" AllowFilteringByColumn="true">
       <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
       <MasterTableView Width="100%" DataSourceID="SqlDataSource1" DataKeyNames="Class_ID" AllowMultiColumnSorting="True">
           <DetailTables>
               <telerik:GridTableView DataKeyNames="Client_id" DataSourceID="SqlDataSource2" Width="100%" runat="server">
                   <ParentTableRelation>
                       <telerik:GridRelationFields DetailKeyField="Class_ID" MasterKeyField="Class_ID" />
                   </ParentTableRelation>
                   <DetailTables>
                       <telerik:GridTableView DataKeyNames="Client_id" DataSourceID="SqlDataSource3" Width="100%" runat="server">
                           <ParentTableRelation>
                               <telerik:GridRelationFields DetailKeyField="Client_id" MasterKeyField="Client_id" />
                           </ParentTableRelation>
                           <Columns>
                               <telerik:GridBoundColumn SortExpression="Class_ID" HeaderText="Class_ID" DataField="Class_ID" UniqueName="Class_ID">
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Course_Name" HeaderText="Course_Name" DataField="Course_Name" UniqueName="Course_Arabic_Name">
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Client_id" HeaderText="Client_id" DataField="Client_id" UniqueName="Client_id">
                               </telerik:GridBoundColumn>
                           </Columns>
                           <SortExpressions>
                               <telerik:GridSortExpression FieldName="Client_id" SortOrder="Descending"></telerik:GridSortExpression>
                           </SortExpressions>
                       </telerik:GridTableView>
                   </DetailTables>
                   <Columns>
                       <telerik:GridBoundColumn SortExpression="Full_Arb_Nmae" HeaderText="Full_Arb_Nmae" DataField="Full_Arb_Nmae" UniqueName="Full_Arb_Nmae">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn SortExpression="Client_id" HeaderText="Client_id" DataField="Client_id" UniqueName="Client_id">
                       </telerik:GridBoundColumn>
                   </Columns>
                   <SortExpressions>
                       <telerik:GridSortExpression FieldName="Client_id"></telerik:GridSortExpression>
                   </SortExpressions>
               </telerik:GridTableView>
           </DetailTables>
           <Columns>
               <telerik:GridBoundColumn SortExpression="Employee_Name" HeaderText="Employee_Name" DataField="Employee_Name" UniqueName="CustomerID">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn SortExpression="Course_Name" HeaderText="Course_Name" DataField="Course_Name" UniqueName="Course_Name 
"
>
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn SortExpression="Start_Date" HeaderText="Start_Date" DataField="Start_Date" UniqueName="Start_Date">
               </telerik:GridBoundColumn>
           </Columns>
           <SortExpressions>
               <telerik:GridSortExpression FieldName="Course_Arabic_Name"></telerik:GridSortExpression>
           </SortExpressions>
       </MasterTableView>
       <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
           <Resizing AllowRowResize="True" AllowColumnResize="True"></Resizing>
       </ClientSettings>
   </telerik:RadGrid>

any one can help me
Abdulaziz
Top achievements
Rank 1
 answered on 31 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?