Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
162 views
Hello,
I need to have information on loading speed records in a grid.
 it is better to load the data with a webserviceor use a simple databinding or for example a databinding to datareader or arrylist?
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
11 answers
576 views
Hello,

We had created a support ticket - 664435.

We have posted this,

Currently, we need  Telerik grid to allow data loding on demand. i.e we have huge data set that we are trying to assign to grid but then we get 'MaxJSONLength' error. The telerik grid allows to do custom paging by setting VirtualItemCount but then the data fetching has to be handled by the user. Also, the sorting and filtering can not work as we bind only current page data to the grid. We need support so that we can bind data on demand to the telerik grid and it should be able to work with sorting and filtering.

We got reply as below,

Currently the RadGrid provides virtual scrolling mechanism which could properly work with paging and sorting and not a clean built in load on demand. See the online demo below for more information on this matter:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx

But if you check above link, sorting is working on just current page's data and not on Entire dataset.  So is it possible that sorting and filtering work for entire data, along with facility of loading grid data on demand?
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
1 answer
64 views
We have a RadTextBox in multiline textmode  is displaying odd behaviour in IE8.  When the text reaches the lower part of the textbox and new lines are needed the RadTextBox scrolls back to the top on every key stroke. Causing the entire text to in the control to jump up and down like a Jack Russell Terrier.

Any help is greatly appreciated.
Eyup
Telerik team
 answered on 18 Jul 2013
1 answer
118 views
I've one gridview and that contains checkbox template field with checkedchaged event. I have 29 static rows in the gridview. If I select checkbox in any record in the gridview, gridview is getting refresh and it is going to first position (still checkbox is showin as checked this is correct only). Here my problem is once I selct any checkbox record, gridview position should show same position instead of showing first position. 
Eyup
Telerik team
 answered on 18 Jul 2013
7 answers
3.2K+ views
How to add a Custom Button to the CommandItem TableRow of my RadGrid control which is inside an updatepanel and enable it to have a Click event and full postback?

Thanks,
Vasil
Telerik team
 answered on 18 Jul 2013
6 answers
259 views
Hello,

I have created few custom controls and have added it to the RadAjaxManagerProxy control. We implement some logic when the control's visible property is set. What I noticed is after adding my control 'txtFirstName' to the RadAjaxManagerProxy, the visible property is set to 'false'. This is causing some undesired actions in our app. The visible property is not set by the code. I have attached the stacktrace for reference. Please assist.

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSubmit">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="txtFirstName" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Thanks
Rohit Kamble
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
1 answer
87 views
I have a RadGrid with a NestedViewTemplate shoving more details of the item as in this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx

I would like to extend this with the possibility to update the item and insert new item. Is this possible?

Anders
Eyup
Telerik team
 answered on 18 Jul 2013
1 answer
101 views
Hey Guys,

I have a RadGrid with a few Template Columns that is basically doing the same as the ButtonColumn, but I prefer to use the TemplateColumn type. When I click on the button inside this column, everything works as it should BUT NOT IN INTERNET EXPLORER 10. The error IE10 throws is this:

SCRIPT5022: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '

<!DOCTYPE html>'. 

When I switch my browser mode to Internet Explorer 9 (or earlier), then it works 100%. The problem is, we're using Telerik 2012.3.1308.40 and my client is using Internet Explorer 10, on Windows 8 (same as me). It is VITAL that the controls works in IE10. Any suggestions on why this error is happening?

The Grid layout:

<telerik:RadGrid ID="RadGridPolicies" runat="server" AllowSorting="true" DataSourceID="sqlPolicies" EnableEmbeddedSkins="false" Skin="DimsRed" OnItemCommand="RadGridPolicies_ItemCommand" OnItemDataBound="RadGridPolicies_ItemDataBound">
                        <ClientSettings EnableRowHoverStyle="true"></ClientSettings>
                        <MasterTableView AutoGenerateColumns="false" CellSpacing="-1" AllowPaging="false" DataKeyNames="groupID, groupName, groupIsActive" DataSourceID="sqlPolicies">
                            <Columns>
                                <telerik:GridBoundColumn DataField="groupID" HeaderText="groupID" UniqueName="groupID" SortExpression="groupID" Visible="false"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="groupName" HeaderText="Group Name" UniqueName="groupName" SortExpression="groupName"></telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="Status">
                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="imgStatusGroup" runat="server" ImageUrl="Images/imgNoCancel.png" CommandName="StatusGroup" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Configure">
                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="imgConfigureGroup" runat="server" ImageUrl="Images/imgConfigure.png" CommandName="ConfigureGroup" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Edit">
                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="imgEditGroup" runat="server" ImageUrl="Images/imgEdit.png" CommandName="EditGroup" OnClientClick="OpenPopup('ModalWindow');" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Purge">
                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="imgPurgeGroup" runat="server" ImageUrl="Images/imgDelete.png" CommandName="DeleteGroup" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>


The code behind:

protected void RadGridPolicies_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "StatusGroup")
        {
            int groupID = NecHelper.ParseInteger(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupID"].ToString());
            bool isActive = NecHelper.ParseBoolean(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupIsActive"].ToString());
            if (isActive)
                taPermissionGroups.UpdateGroupStatus(false, groupID);
            else
                taPermissionGroups.UpdateGroupStatus(true, groupID);
 
            RadGridPolicies.Rebind();
        }
        if (e.CommandName == "ConfigureGroup")
        {
            btnCreatePolicy.Style.Add("display", "none");
            hfCurrentPolicyID.Value = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupID"].ToString();
            lblActivePolicy.Style.Remove("display");
            lblActivePolicy.Text = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupName"].ToString();
            btnUpdatePolicy.Style.Remove("display");
            btnCancelPolicyEdit.Style.Remove("display");
 
            treeViewActive.Nodes.Clear();
            treeViewInactive.Nodes.Clear();
 
            PopulateViews(NecHelper.ParseInteger(hfCurrentPolicyID.Value));
        }
        if (e.CommandName == "EditGroup")
        {
            string groupID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupID"].ToString();
            litModalTitle.Text = "Edit Permission Group";
 
            taPermissionGroups.FillByGroupID(ds.AccessPermissionGroups, NecHelper.ParseInteger(groupID));
            DataRow dr = ds.AccessPermissionGroups.Rows[0];
 
            txtGroupName.Text = dr["groupName"].ToString();
            txtGroupDescription.Text = dr["groupDescription"].ToString();
        }
        if (e.CommandName == "PurgeGroup")
        {
            int groupID = NecHelper.ParseInteger(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupID"].ToString());
            taPermissionGroups.PurgeGroup(true, groupID);
            RadGridPolicies.Rebind();
        }
    }
 
    protected void RadGridPolicies_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
        {
            ImageButton imgStatusGroup = (ImageButton)e.Item.FindControl("imgStatusGroup");
            bool isActive = NecHelper.ParseBoolean(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["groupIsActive"].ToString());
            if (isActive)
                imgStatusGroup.ImageUrl = "Images/imgYesOK.png";
        }
    }
Kostadin
Telerik team
 answered on 18 Jul 2013
4 answers
232 views
Hello,

how to expand/collapse one or several rows/colums in codebehind?

Thanks in advance!
Kostadin
Telerik team
 answered on 18 Jul 2013
1 answer
114 views
Is it possible to have the NumericTextBox control work ONLY with the buttons? To disallow typing in the TextBox portion?
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?