Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
144 views

I had done out of the box customization for RadGrdi in batch edit mode.

For some reason I had set AllowKeyBoardNavigation = 'false'.

(If I set it as true the horizontal scroll works wired, which i already raised in the forum)

https://www.telerik.com/forums/weird-behavior-of-radgrid's-horizontal-scroll-bar-with-keyboard-navigation-in-ie-browser

 

Now I want that on hitting Esc if is there any cell in Active Edit Mode then it should close the editing for that particular cell only. and I want to achieve this functionality using client-side code.

Smit
Top achievements
Rank 1
 asked on 08 May 2018
0 answers
95 views

Hi,

I've got a chart that has 1 scatter line series plotted on it with dates on the x axis and numbers on the y axis. Every time i zoom in then zoom out, less is visible than was available before. I also have pan enabled and you can't pan up to the hidden values anymore either. Is this a configuration I'm missing? I attached pictures to show, I assure you I tried zooming out as far as it would let me

Zach
Top achievements
Rank 1
 asked on 07 May 2018
0 answers
124 views

I found the inconsistent behavior (Focus moved at a different place) of selecting the cell in Rad grid for IE Browser.

 

 As I had 15 columns displayed in my grid. So, I get horizontal scrollbar definitely.

For selecting any cell of the last column I scroll horizontally and try to select any cell.

As soon as I click on any cell the scroll reset to its default position although the cell would be selected.

PS. This will only happen if I had set property ## AllowKeyboardNavigation="true" ##

Smit
Top achievements
Rank 1
 asked on 07 May 2018
0 answers
86 views

HI,

 

In RAD Grid can we have export to Excel functionality export the data in an .xlsx file instead of a .xls file , because in our application we have to export 180K records , and in xls it is giving out of memory error , we were hoping that if we could export It to .xlsx this error might not come.

 

Thanks

Hemant.

Hemant
Top achievements
Rank 1
 asked on 07 May 2018
1 answer
825 views
I have a problem with batch grid mode.
I have a RadDatePicker in <HeaderTemplate> as the example below:
<telerik:GridTemplateColumn UniqueName="dtLimite" HeaderText="Data Limite" HeaderStyle-Width="90px"
                            Visible="true" AllowFiltering="False" DataField="dtLimite" HeaderStyle-HorizontalAlign="Center"
                            ColumnGroupName="Datas" ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <div>
                                    <asp:Label Text="Limite" runat="server" />
                                </div>
                                <telerik:RadDatePicker ID="dpLimite" runat="server" ToolTip="Alterar Todas" DateInput-DisplayText="Alterar Todas"
                                    Skin="Bootstrap" class="form-control" MinDate="01/01/1910" AutoPostBack="true" Width="150px"
                                    OnSelectedDateChanged="dpLimite_SelectedDateChanged1"  >                                         
                                                    </telerik:RadDatePicker>
                            </HeaderTemplate>
                            <ItemTemplate><telerik:RadDatePicker ID="dpLimite2" runat="server" Skin="Bootstrap" AutoPostBack="false" class="form-control" MinDate="01/01/1910" SelectedDate='<%# Eval("dtLimite") %>'></telerik:RadDatePicker>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadDatePicker ID="dpLimite1" runat="server" Skin="Bootstrap" AutoPostBack="false" class="form-control" MinDate="01/01/1910"></telerik:RadDatePicker>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
      
      
In the OnSelectedDateChanged = "dpLimite_SelectedDateChanged1" component´s event,
I change the value of the cells of all the other lines ( this is working the exchange of dates ),
and I need the grid to recognize that these changes were made and that at the time of saving the batch
all lines are in edit mode, which is not happening.
I need this done not only with the date columns, but also with the Check columns,
as you can see.
The check , uncheck and modify date functionality work, the problem is that the grid does not recognize this change.
There is a possibility?
Eyup
Telerik team
 answered on 07 May 2018
0 answers
64 views

Hello,

 

I found the inconsistent behavior (Focus moved at a different place) of selecting the cell in Rad grid for IE Browser.

 

As I had 15 columns displayed in my grid. So, I get horizontal scrollbar definitely.

For selecting any cell of the last column I scroll horizontally and try to select any cell.

As soon as I click on any cell the scroll reset to its default position although the cell would be selected.

 

PS. This will only happen if I had set property ## AllowKeyboardNavigation="true" ##

Smit
Top achievements
Rank 1
 asked on 07 May 2018
3 answers
302 views

Good afternoon,

I am trying to connect a RadClientDataSource to a web Service but it is not getting called (I know because i am tracing the sql database that it uses and I have tried with breakpoints). At present the code is:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageSingleMenu.Master" AutoEventWireup="true" CodeFile="Grid.aspx.cs" Inherits="Grid" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="styles/grid.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
       <telerik:RadGrid RenderMode="Lightweight" ID="dgSessions" runat="server" AutoGenerateColumns="false"  AllowSorting="true"
              EnableHeaderContextMenu="true"  ClientDataSourceID="RadClientDataSource1" 
          AllowMultiRowSelection="false"  >
           
            <MasterTableView Width="100%" ClientDataKeyNames="SessionKey" DataKeyNames="SessionKey" CommandItemDisplay="None">
                
                <Columns>
                
                    <telerik:GridBoundColumn UniqueName="HorseName" HeaderText="Horse" DataField="HorseName" ReadOnly="True">
                    </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="BT200" HeaderText="BT200" DataField="BT200" ReadOnly="True">
                    </telerik:GridBoundColumn>

                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    <telerik:RadClientDataSource ID="RadClientDataSource1" runat="server">
            <DataSource>
                <WebServiceDataSourceSettings ServiceType="OData" >
                    <Select Url="http://localhost:49833/ETSession.svc/GetSessions" DataType="JSON" />
                </WebServiceDataSourceSettings>
            </DataSource>
            <Schema>
                <Model ID="SessionKey">
                    <telerik:ClientDataSourceModelField FieldName="SessionKey" />
                    <telerik:ClientDataSourceModelField FieldName="HorseName" DataType="String" />
                    <telerik:ClientDataSourceModelField FieldName="BT200" />
                </Model>
            </Schema>
        </telerik:RadClientDataSource>
</asp:Content>

I have tried with a remote web service, also with the web service code file in the same project as the page, but to no avail.

I have also tried the follwing snippet:

<WebServiceDataSourceSettings ServiceType="OData" BaseUrl="http://localhost:49833/ETSession.svc/" >
                    <Select Url="GetSessions" DataType="JSON" />
                </WebServiceDataSourceSettings>

This results in GetSessions giving a Not Found indicator (green squigly line under the name) - that occurs in all three scenarios (remote, local or in-place).

The service works as i have tested it from another project.

Using VS2010 and .Net 4

 

Would welcome any thoughts.

Mary

Mary
Top achievements
Rank 1
 answered on 07 May 2018
0 answers
75 views

Hello,

I need to get the sortorder of the Grid in _NeedDataSource even and nowhere else. However the SortOrder value is always 'Ascending'. How do you get the updated sort order ? I have code below. Thank you.

 

protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
 
...
 
string name = RadGrid1.MasterTableView.SortExpressions[0].FieldName;
                    GridSortOrder order = RadGrid1.MasterTableView.SortExpressions[0].SortOrder;
 
 
}
Darius
Top achievements
Rank 1
 asked on 04 May 2018
3 answers
250 views

Hi All, i'm working on producing a dynamic pie chart that's linked to a Radgrid column and updates as the grid is being filtered  . 

 

I have a Radgrid with the following columns; 

application ids'

Application Status (only 3 status's "accepted/declined/in-progress")

Received date from

Revived date to 

BatchID

 

What i'm trying to achieve;

1) Piechart that's based on the application status column 

2) The Pie chart to recalculate when the applications are being filtered by Received date or batchID

 

Any advise or solutions will be much appreciated.

Marin Bratanov
Telerik team
 answered on 04 May 2018
12 answers
223 views
Hi,

i have a requirement to display grouped items in radlistbox like below

General Action
    Transfer
    Document
    Re-Open
Escalation
    Parts
    Field Involvement
Other Actions
    Marketing
    Owner Advantage

i have to load these items in runtime(server side) because based on some conditions i have to disable/enable listitems.Also i have to differentiate the group name and child by font and space like above.
1.Now i can able to disable items. But i am not able to insert space before the child items. please check the code below which i used to generate these items
2.For group items if i disable it , the foreground color gets changed to grey. which i want it in black color like above.


foreach (var group in CASEACTION_GROUPS)
            {
            RadListBoxItem groupListItem = new RadListBoxItem { Text = group, Enabled = false };
                groupListItem.Font.Bold = true;
                groupListItem.Font.Italic = true;
                groupListItem.ForeColor = Color.Black;
                listBoxCaseActions.Items.Add(groupListItem);
foreach (var caseActon in caseActions)
                {
                    var listItem = new RadListBoxItem { Text = caseActon.EntityName, Value = caseActon.ObjectTypeCode };
  
                    if (!caseActon.HasPrivileges)
                    {
                        listItem.Enabled = false;
                        listItem.Text = string.Concat(caseActon.EntityName, CASEACTION_NO_PRIVILEGES);
                    }
                    else if ((caseActon.ObjectTypeCode.Equals("10022") && !_caseStatus.ToLower().Equals(CASE_STATUS_PENDING_CLOSED))) //Close Case
                    {
                        listItem.Enabled = false;
                        listItem.Text = string.Concat(caseActon.EntityName, string.Format(CASEACTION_NOT_AVAILABLE, _caseStatus));
                    }
                    else if (caseActon.ObjectTypeCode.Equals("10051")) //Re-open Case
                    {
                        if (_caseStatus.ToLower().Equals(CASE_STATUS_CLOSED))
                        {
                            this._caseActionsBusinessComponent = _caseActionsBusinessComponent ?? new CaseActionsBusinessComponent();
                            var role = this._caseActionsBusinessComponent.GetUserSecurityRole();
                            if (CASEACTION_USER_ROLE.Where(r => role.ToLower().Contains(r)).Count() > 0)
                            {
                                listItem.Enabled = true;
                            }
                            else
                            {
                                listItem.Enabled = false;
                                listItem.Text = string.Concat(caseActon.EntityName, CASEACTION_NO_PRIVILEGES);
                            }
                        }
                        else
                        {
                            listItem.Enabled = false;
                            listItem.Text = string.Concat(caseActon.EntityName, string.Format(CASEACTION_NOT_AVAILABLE, _caseStatus));
                        }
                    }
  
                    listBoxCaseActions.Items.Add(listItem);
                }
            }

Am I missing something.Can anybody help me on this issue.

Thanks in advance
Jayaprakash Krishnan
Marin Bratanov
Telerik team
 answered on 04 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?