Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
129 views
Hi,
I got a problem with radcombox like here:
addReportDocByVTHS.ascx
<
telerik:RadComboBox ID="ddltype" runat="server" Label="Doc Type: " Width="200px">
</telerik:RadComboBox>
and in my parent usercontrol i call addReportDocByVTHS.ascx like this:
UserControl_ReportDoc_addReportDocByVTHS control = (UserControl_ReportDoc_addReportDocByVTHS)this.Page.LoadControl("~/Usercontrol/ReportDoc/addReportDocByVTHS.ascx");
        if (control != null)
        {         
            control.modalContainer = pnlInsert_ModalPopupExtender.ID.ToString();
            control.AfterClickLuu += new EventHandler(btsearch_Click);
            if (!pnlInsert_child.Controls.Contains(control))
            {
                pnlInsert_child.Controls.Add(control);
                pnlInsert_ModalPopupExtender.Show();
            }
            Session["action"] = "insert";
        }
//load dropdownlist
ddltype.DataSource = F_DocType.GetList();
        ddltype.DataTextField = "DOC_TYPENAME";
        ddltype.DataValueField = "DOC_TYPE";
        ddltype.DataBind();
here is my parent usercontrol.ascx like:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<asp:HiddenField ID="hdfMacv" runat="server" />   
<asp:ModalPopupExtender ID="pnlInsert_ModalPopupExtender" runat="server"
     Enabled="True" TargetControlID="hdfMacv" PopupControlID="pnlInsert"
    BackgroundCssClass="modalBackground" 
    ></asp:ModalPopupExtender>
    
<asp:Panel ID="pnlInsert" runat="server" CssClass="ModalWindow"  style="display:none">   
        <asp:PlaceHolder ID="pnlInsert_child" runat="server" EnableViewState="false">
        </asp:PlaceHolder>
</asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel

My combobox can't shown down when i click, i only can press "up" and "down" keyboard to choose.
would I miss anything.please tell me. thanks

trunghth
Top achievements
Rank 1
 answered on 18 Jul 2013
5 answers
167 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
581 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
66 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
121 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
270 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
88 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
102 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
235 views
Hello,

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

Thanks in advance!
Kostadin
Telerik team
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?