Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
310 views
Hi,

Is it possible to sort aggregateField in Server-side.

I tried to add PivotGridSortExpression but that doesn't work.

var aggregateField = new PivotGridAggregateField();
rpgCA.Fields.Add(aggregateField);
aggregateField.DataField = "CA";
aggregateField.UniqueName = "CA";
aggregateField.DataFormatString = "{0:C0}";
aggregateField.TotalFormatString = "{0:C0}";
aggregateField.GrandTotalAggregateFormatString="{0:C0}";
aggregateField.TotalFormatString = "{0:C0}";
 
 
rpgCA.Rebind();

Thank you for your reply

Simon Chamaillard
Andrey
Telerik team
 answered on 10 Oct 2012
16 answers
591 views
Hello!

We've implemented custom paging but the next and previous button only work after a postback has already happened.  For example, I load the grid, click next and nothing happens.  But if I page to a page number, and then click the next button, it works.

<telerik:RadGrid ID="RadGridTicketDetails" runat="server" ActiveItemStyle-BackColor="Green"
            HeaderStyle-BackColor="#00597A" Skin="Metro" ShowGroupPanel="True" EnableLinqExpressions="False"
            OnInit="RadGridTicketDetails_OnInit" OnNeedDataSource="RadGridTicketDetails_OnNeedDataSource"
            Width="100%" CellSpacing="0" GridLines="None" OnItemCommand="RadGridTicketDetails_OnItemCommand">
            <MasterTableView TableLayout="Fixed" AllowPaging="true" AllowCustomPaging="true"
                AllowSorting="true" AllowFilteringByColumn="true" GroupsDefaultExpanded="true"
                PageSize="10" AutoGenerateColumns="false" EnableViewState="true">
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True">
                </PagerStyle>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
                <HeaderStyle CssClass="RadGridHeader"></HeaderStyle>
                <FooterStyle CssClass="FooterStyle"></FooterStyle>
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" UniqueName="Id" HeaderText="#"
                        AutoPostBackOnFilter="false" />
                    <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name"
                        AutoPostBackOnFilter="false" Display="false"  />
                    <!-- etc... -->
                </Columns>
            </MasterTableView>
            <GroupingSettings ShowUnGroupButton="true" CaseSensitive="false" />
            <ClientSettings EnableRowHoverStyle="true" AllowDragToGroup="True" EnablePostBackOnRowClick="false"
                AllowGroupExpandCollapse="True" AllowColumnsReorder="true">
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowClick="RowClick" />
            </ClientSettings>
            <HeaderStyle BackColor="#00597A" />
            <ActiveItemStyle BackColor="Green" />
            <PagerStyle AlwaysVisible="True" />
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>

On the first visit, the HTML of the button is
<input type="submit" class="rgPageNext" title="Next Page" value=" " name="ctl00$ctl23$g_b6bc5c7c_8c99_4d92_93de_27af5146203d$ctl00$RadGridTicketDetails$ctl00$ctl03$ctl01$ctl28">

But on the second load after an action (postback) the output is
<input type="button" class="rgPageNext" title="Next Page" onclick="javascript:__doPostBack('ctl00$ctl23$g_b6bc5c7c_8c99_4d92_93de_27af5146203d$ctl00$RadGridTicketDetails$ctl00$ctl03$ctl01$ctl28','')" value=" " name="ctl00$ctl23$g_b6bc5c7c_8c99_4d92_93de_27af5146203d$ctl00$RadGridTicketDetails$ctl00$ctl03$ctl01$ctl28">

which fires the itemcommand as it should.

Can anyone help?
Andrey
Telerik team
 answered on 10 Oct 2012
5 answers
353 views
Hi, I have a very annoying problem with my app and cant find any similar topic. I have a Page with a RadAjaxPanel containing 2 RadPanes (1 for Menu and 1 for Page content). The Page also have a second RadAjaxPanel containing some RadComboBoxes. On some predefined conditions, selecting an item in the mentionned RadComboBoxes should trigger a postback refresh on the Page content pane mentioned. Everything works but approx 10% of the time, the postback seems not be firing. When it happens I simply select something else in my RadComboBoxes and then it works. Cant find any pattern to replicate as it seems totally random.

Panel with comboboxes
<telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server">
           
               <div class="EnterpriseNodes1">
                    <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="WebBlue" MarkFirstMatch="true" Visible="false" AllowCustomText="true" Filter="StartsWith" CssClass="combo1" NoWrap="True" OnItemDataBound="RadComboBox1_ItemDataBound" AutoPostBack="True" OnSelectedIndexChanged="RadComboBox1_OnSelectedIndexChanged" OnClientDropDownOpened="ShowEmptyMessage" OnClientDropDownClosed="HideEmptyMessage" >
                    </telerik:RadComboBox>
                    <br />
                    <telerik:RadComboBox ID="RadComboBox2" runat="server" Skin="WebBlue" MarkFirstMatch="true" Visible="false" AllowCustomText="true" Filter="StartsWith" CssClass="combo2" NoWrap="True" OnItemDataBound="RadComboBox2_ItemDataBound" AutoPostBack="True" OnSelectedIndexChanged="RadComboBox2_OnSelectedIndexChanged" OnClientDropDownOpened="ShowEmptyMessage" OnClientDropDownClosed="HideEmptyMessage">
                    </telerik:RadComboBox>
                    <br />
                    <telerik:RadComboBox ID="RadComboBox3" runat="server" Skin="WebBlue" MarkFirstMatch="true" Visible="false" AllowCustomText="true" Filter="StartsWith" CssClass="combo3" NoWrap="True" OnItemDataBound="RadComboBox3_ItemDataBound" AutoPostBack="True" OnSelectedIndexChanged="RadComboBox3_OnSelectedIndexChanged" OnClientDropDownOpened="ShowEmptyMessage" OnClientDropDownClosed="HideEmptyMessage">
                    </telerik:RadComboBox>
                 </div>
 </telerik:RadAjaxPanel>

Panel with 2 panes
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%">
          
            <telerik:RadSplitter ID="RadSplitter1" PanesBorderSize="0" BorderSize="0" runat="server" Orientation="Vertical" Width="99%" Height="109%">
                 
                <telerik:RadPane ID="RadPane1" runat="server" CssClass="MenuPane" MinWidth="220" Width="220px" Height="100%">
 
                    <telerik:RadSplitter ID="RadSplitter2" PanesBorderSize="0" BorderSize="0"  runat="server" ResizeWithParentPane="false" Orientation="Horizontal" Width="100%" Height="100%">
                 
                        <telerik:RadPane ID="RadPane3" runat="server" CssClass="MenuPane2" Width="100%" Height="50%">
              
                             <telerik:RadMenu ID="RadMenu2" runat="server" Visible="false" CssClass="menu3" OnItemClick="RadMenu_ItemClick" EnableImageSprites="true" BorderStyle="None" Flow="Vertical">
                
                             </telerik:RadMenu>
 
                         </telerik:RadPane>
 
 
                         <telerik:RadPane ID="RadPane4" runat="server" CssClass="MenuPane2" Width="100%" Height="50%">
 
                        <telerik:RadMenu ID="RadMenu3" runat="server" Visible="false" CssClass="menu3" OnItemClick="RadMenu_ItemClick" EnableImageSprites="true" BorderStyle="None" Flow="Vertical">
                              
                                 </telerik:RadMenu>
 
                          </telerik:RadPane>
 
                       </telerik:RadSplitter>
                 
                </telerik:RadPane>
 
              
                <telerik:RadPane ID="RadPane2" runat="server" CssClass="ContentPane" ContentUrl="Test.aspx">
                </telerik:RadPane>
                
            </telerik:RadSplitter>
        </telerik:RadAjaxPanel>


The function doing the magic is this one:
public void RefreshPanel(ref RadAjaxPanel rapPanel, ref RadPane rpPane, string strUrl, string strQuerystring)
        {
            rpPane.ContentUrl = strUrl + strQuerystring;
 
            WriteLog(rpPane.ContentUrl); //logging to check if code is called with right parameters
 
            rapPanel.RaisePostBackEvent(null);
        }

Everytime I check my log file (when refresh seemed to not occur), RaisePostBackEvent was called and ContentUrl of rpPane has the right value.

Is there a better way to do this, or any other property of rpPane/rapPanel I can check to find what could be wrong? Please help, this is killing me.

UPDATE: Can it be because im running the demo of the control (and sometimes get the "Thank you for using the Trial Version of RadControls for ASP.NET AJAX ..." message) and affect the post backs?

TIA
Maria Ilieva
Telerik team
 answered on 10 Oct 2012
1 answer
151 views
Greetings,

Is it possible to add the Grid Filter in the Header Section of the Grid instead of below the header in its own row?

IF that is not possible, is it possible to create a filter exactly like the one used in the Filter Row section? A filer that has the button with all the filtering options (Contains, Equals, Not Equal, etc....)

Or is it possible to eliminate the Header all together and just put the header in the Filter Section ?
Kostadin
Telerik team
 answered on 10 Oct 2012
4 answers
130 views
Hi,

Please take a look at the attaced pic, I can only display the percentage value (which is from the column "AverageScore" in the DataTable) on the column bar. I would like to add in some description label for each column (which is from the column "Description" in the same DataTable).

Is it possible to do it with HTMLChart? If not, What's about RadChart, is it possible to do so?

Thanks

Lamk
Rob
Top achievements
Rank 1
 answered on 10 Oct 2012
3 answers
107 views
Hi!!!

I Will explain this with your demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/validation/defaultcs.aspx
in this,
1.click on the add new record button.(don't close and don't enter any values)
2.After that edit any one of the items in the Grid.
3.try to update the edited item.
here it will not update that row,instead it will show the " required field " for the add new record template.

this is my problem,how to overcome from this ......

I want to close the add new template form ,when we clicked on edit button.

please help me i am new to rad controls....

thanks...
Eyup
Telerik team
 answered on 10 Oct 2012
10 answers
699 views
Hi,

How do you change the row colour on a mouse over - as per the Office2007 skin?

Thanks

Indy
Sajida
Top achievements
Rank 1
 answered on 10 Oct 2012
10 answers
245 views
this is a strange case i have.

i have a textbox an ajaxpanel with the textchanged event fired when the textbox is filled through code.

the strange thing is that it works fine, but if i use validation, and the validator fails, then the next textchange will not fire the ajaxpanel!!! i even tried calling the ajaxRequest explicitly, and still it didnt fire nor called the ClientEvents-OnRequestStart event, if however i re-change the textbox again to another value without validating again, it fires normally !!!!

i tried to trace this for to no avail.

unfortunatly, i cannot post code here, but i can provide you with a link (PRIVATLY) so that you can see what i mean.

Phil
Top achievements
Rank 1
 answered on 10 Oct 2012
1 answer
96 views
Hi Guys,

I am facing one strange issue , my client requirement please let me know this is possible or not

in tree grid below one sample

A - Node
   A1 Subnode of A
       A1  Items
       A1  items
   A items 1
   A items 2
  A2 Subnode of A
       A2 items
In the above example
A has A1 and A2 subnode
A has two items

If a folder(A) has subfolders… the items associated with the folder(A) show up BELOW the subfolder

My client need tree like below

A - Node
   A items 1
   A items 2
   A1 Subnode of A
       A1  Items
       A1  items
  A2 Subnode of A
       A2 items

means all items of A should come below A node and all sub node should come next to A node items
Is this possible?

Karthik.K
Eyup
Telerik team
 answered on 10 Oct 2012
1 answer
54 views
Hi Telerik Support Team,

Can we enable Rad Editor Toolbar in HTML view? Please get back to me on this.

Thanks,
Vimlesh
Rumen
Telerik team
 answered on 10 Oct 2012
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?