Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi,

We have an issue in IE 7 and onwards in all Telerik releases after 2013.1.417.40.

Two of our pages use a grid with manually calculated footers which are then added in the Footer Event. I have rolled back through various versions of the telerik toolkit and found that the footer works as expected in 2013.1.417.40, but when I run it using all later releases the footer is offset with the manually built values appearing to the right of the grid.

Are there any known issues with this feature in subsequent releases?

It only appears to manifest itself when run through IE - all versions 7 to 11 - but is OK in Firefox and Chrome.

For the moment I have had to roll back to the 2013.1 release to avoid customer complaints.

David Penny
Venelin
Telerik team
 answered on 11 Dec 2013
1 answer
96 views
Hi,

I want to show Sum and Avg at the same time while clicking  custom aggregates in the header Context.

I am able to show the Total Sum and Avg . But how do i calculate the sum and Avg for groupby columns and show in the group Footer item.

Any example or thought on this?

Best regards,
Satz
Eyup
Telerik team
 answered on 11 Dec 2013
1 answer
77 views
I want a binding ICommand to the Click event of a button in ControlPanelitem. But it does not work. And I Binding SelectedValue of RadDatePicker control in ControlPanelItem and it also does not work.
Vasil
Telerik team
 answered on 11 Dec 2013
9 answers
836 views
After upgrading to the latest release, there is a border around all my image buttons inside of Radgrid columns.
Prior to the latest update, I had the following css which worked fine for everything

a img
{
    border: 0px !important;
}
Venelin
Telerik team
 answered on 11 Dec 2013
5 answers
88 views
When I tried using RadSearchBox, I found that the results drop down doesn't appear although the response is received successfully.
After some debugging, I found that the code appends the drop down element to the first FORM element it finds!
Here's the code:

b.DropDown.prototype = {
        initialize: function ()
        {
            a(document.body).find("form").prepend(this._element);
        }

ASP.Net restricts the existence of more than one FORM with runat=server, but I may have as many FORM elements as I want for other client side uses. Why supposing that there's only one FORM, while BODY should have been used for this, because there can't be more than one BODY.
Plamen
Telerik team
 answered on 11 Dec 2013
0 answers
105 views
version: Q3 2012
I'm using context menu in RadGrid control in an iframe. But some items seem to be out of the screen, so I can't click them. Codes for js and RadGrid:
function RowContextMenu(sender, eventArgs) {
                var menu = $find("<%=RadMenu1.ClientID %>");
                var evt = eventArgs.get_domEvent();
 
                if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
                    return;
                }
                var index = eventArgs.get_itemIndexHierarchical();
                //document.getElementById("radGridClickedRowIndex").value = index;
                iSelectRow = index;
 
                radGrid1 = sender;
                var mt = sender.get_masterTableView();
                var row = mt.get_dataItems()[iSelectRow];
                var sStatus = row.findElement("hfStatus").value;
                var item;
                var allItems = menu.get_allItems();
                var childItem = new Telerik.Web.UI.RadMenuItem();
                menu.trackChanges();
                for (var i = allItems.length - 1; i >= 6; i--) {
                    item = allItems[i];
                    menu.get_items().remove(item);
                }
                switch (sStatus) {
                    case "U":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("编辑测试"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("收样"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("暂停"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("取消"); menu.get_items().add(childItem);
                        break;
                    case "V":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("编辑测试"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("结果录入"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("生成工作单"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("完成"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("暂停"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("取消"); menu.get_items().add(childItem);
                        break;
                    case "C":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("编辑测试"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("结果录入"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("认可"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("暂停"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("取消"); menu.get_items().add(childItem);
                        break;
                    case "A":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("激活认可"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("重新采样"); menu.get_items().add(childItem);
                        break;
                    case "S":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("释放暂停"); menu.get_items().add(childItem);
                        break;
                    case "X":
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_isSeparator("True"); menu.get_items().add(childItem);
                        childItem = new Telerik.Web.UI.RadMenuItem();
                        childItem.set_text("恢复取消"); menu.get_items().add(childItem);
                        break;
                    default:
                }
                menu.commitChanges();
                menu.show(evt);
 
                evt.cancelBubble = true;
                evt.returnValue = false;
 
                if (evt.stopPropagation) {
                    evt.stopPropagation();
                    evt.preventDefault();
                }
            }

<telerik:RadGrid ID="rgDatas" runat="server" AllowSorting="True" GridLines="None"
                AllowMultiRowSelection="true" OnSortCommand="rgDatas_SortCommand" OnPreRender="rgDatas_PreRender" ShowStatusBar="True">
                <ClientSettings EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="true"></Selecting>
                    <Resizing AllowColumnResize="True" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    <ClientEvents OnGridCreated="GridCreated" OnRowContextMenu="RowContextMenu" OnRowSelected="RowSelected" />
                </ClientSettings>
                <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                    <Pdf PageTitle="样品列表" DefaultFontFamily="Arial Unicode MS" PageWidth="297mm" PageHeight="210mm" />
                </ExportSettings>
                <MasterTableView AutoGenerateColumns="false">
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="样品代号" DataField="SampleID" SortExpression="SampleID"
                            HeaderStyle-Width="150px" ItemStyle-Width="150px" HeaderTooltip="点击排序" UniqueName="SampleID">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" ImageAlign="Middle" />
                                <asp:LinkButton ID="PKID" runat="server" Text='<%# Eval("SampleID") %>' Font-Underline="true"
                                    ForeColor="Blue" />
                                <asp:HiddenField ID="hfStatus" runat="server" Value='<%# Eval("Status") %>' />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="JobName" HeaderText="任务代号" SortExpression="JobName"
                            HeaderStyle-Width="150px" ItemStyle-Width="150px" HeaderTooltip="点击排序" UniqueName="JobName" />
                        <telerik:GridBoundColumn DataField="SampleName" HeaderText="样品名称" SortExpression="SampleName"
                            HeaderTooltip="点击排序" UniqueName="SampleName" HeaderStyle-Width="150px" />
                        <telerik:GridTemplateColumn HeaderText="状态" DataField="Status" SortExpression="Status"
                            HeaderStyle-Width="80px" ItemStyle-Width="80px" HeaderTooltip="点击排序" UniqueName="Status">
                            <ItemTemplate>
                                <asp:Label ID="Status" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="TemplateID" HeaderText="样品模板代号" SortExpression="TemplateID"
                            HeaderStyle-Width="100px" ItemStyle-Width="100px" HeaderTooltip="点击排序" UniqueName="TemplateID" />
                        <telerik:GridBoundColumn DataField="LoginDate" HeaderText="送样时间" SortExpression="LoginDate"
                            HeaderStyle-Width="130px" ItemStyle-Width="130px" HeaderTooltip="点击排序" UniqueName="LoginDate" />
                    </Columns>
                    <NoRecordsTemplate>
                    </NoRecordsTemplate>
                </MasterTableView>
            </telerik:RadGrid>
Ghost
Top achievements
Rank 1
 asked on 11 Dec 2013
1 answer
75 views

Would you please let me know how to change the Insert and Cancel at the bottom of Edit to be something else

maybe button or image button link







Here is what I want to change



http://www.prikachi.com/images/262/6838262D.jpg



Shinu
Top achievements
Rank 2
 answered on 11 Dec 2013
1 answer
149 views
After upgrading to 2013 Q3 to 2013 Q3 SP1 , something is off with RadTextBox & MultiLine. Code that was working to split the multi lines into an array no longer works and I have to use a standard ASP TextBox. See code as follows.

<asp:TextBox id="AddhocBatchDates2" TextMode="multiline" runat="server" width="100px" Height="400px"/>
<%--<telerik:RadTextBox ID="AddhocBatchDates" Runat="server" width="100px" TextMode="MultiLine" Height="400px"> </telerik:RadTextBox>--%>
//string BatchDates = AddhocBatchDates.Text;
string BatchDates = AddhocBatchDates2.Text;
 
//None of these work on the telerik control, They all work on the standard asp control
//string[] AllBatchDates = BatchDates.Split('\n');
//string[] AllBatchDates = BatchDates.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
string[] AllBatchDates = BatchDates.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);

Princy
Top achievements
Rank 2
 answered on 11 Dec 2013
1 answer
338 views

I have a grid that has a GridButtonColumn in it.  I have a command name set and call the command name on the grid_itemCommand.  I have a hidden field called PKEY that I need to get the value of when the button on that row it clicked.  How can I get the value of that hidden field?  Right now all I get is &nbsp;, but if I set the visibility to True I get the value.

Princy
Top achievements
Rank 2
 answered on 11 Dec 2013
2 answers
80 views
Hey,
     My SplitButton in Ribbonbar has been "Cover" by the RadPane.
How to solve this problem? 

Thanks a lot..
Yo
Top achievements
Rank 1
 answered on 11 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?