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

I have a RadGrid  with height=300px, it does not  adjust it's height when groups are collapsed. I would like it's height  to be 300px or less and show scrollbars when needed. When groups are collapsed, it shows whitespace as seen in given image to fill grid height. How can I adjust grid height when groups are collapsed?


I want grid height to adjust like in this demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/grouping/defaultcs.aspx

Thanks,
Prava
Pavlina
Telerik team
 answered on 09 Feb 2015
1 answer
105 views
I have a RadRating on a page that if clicked runs javascript that opens a modal.  The modal pop-up contains a "separate" RadRating module.  Everything work fine until the form on the modal popup is submitted.  This asp:Button-based submission saves to db; generates a postback; and runs javascript that hides the modal.  

What javascript do I need to use to reload my RadRating after postback from a Foundation 5 reveal modal popup? (more about modal http://foundation.zurb.com/docs/components/reveal.html)


var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
      // What do I put here to re-initialize the RadRating on the main page? 
});
Slav
Telerik team
 answered on 09 Feb 2015
2 answers
61 views
We're trying to work around a possible network/browser issue at a client site. Occasionally the on demand web service call is failing. The request the browser  makes is completely empty. Any subsequent call succeeds. Is there any way to retry the web service call up to 3 times before returning an error? It's easy enough in jQuery, but I can't find how to manage the calls myself with the RadComboBox

Thanks.
Fadi
Top achievements
Rank 1
Veteran
 answered on 09 Feb 2015
3 answers
206 views
For the love of HTML5 and push for mobile compatibility please modify radnumerictextbox to allow for HTML 5 numeric input type. For years I have seen all the responses from Telerik to just use the RadTextBox. The radnumerictextbox has better support for numbers, yet lacks the most basic COOL feature for mobile. Inputtype = number.
Maria Ilieva
Telerik team
 answered on 09 Feb 2015
3 answers
233 views
1. How to add Caption or Title, when user export to excel.
2. Display row count for aggregated rows along with aggregate value.

Attached is the sample snapshot for further clarification.
Maria Ilieva
Telerik team
 answered on 09 Feb 2015
1 answer
115 views
Hi,

i have a problem with picking up Check Box values from the Data Grid, where the option sorting, paging, etc. is allowed.

My ASPX code is shown below:

<telerik:RadGrid ID="gvUsers" EnableViewState="true" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" CellSpacing="0" OnSortCommand="gvUsers_SortCommand" OnGroupsChanging="gvUsers_GroupsChanging"
    OnPageIndexChanged="gvUsers_PageIndexChanged" OnPreRender="gvUsers_PreRender" ShowGroupPanel="True" OnPageSizeChanged="gvUsers_PageSizeChanged" PageSize="2" ShowFooter="True" Skin="Sunset" style="table-layout:fixed;" AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="gvUsers_NeedDataSource">
    <ClientSettings AllowDragToGroup="True">
    </ClientSettings>
    <GroupingSettings CaseSensitive="false" />
    <GroupPanel Text="<%$Resources:localization, lblGroupingText%>"></GroupPanel>
    <MasterTableView DataKeyNames="UserID" AutoGenerateColumns="False" ClientDataKeyNames="UserID" Width="100%">
        <Columns>
            <telerik:GridTemplateColumn UniqueName="cbSelect" AllowFiltering="false" ShowFilterIcon="false">
                <ItemTemplate>
                  <asp:CheckBox ID="cbSelectUser" runat="server" OnCheckedChanged="cbSelectUser_CheckedChange"
                    AutoPostBack="True" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>                                                    
            <telerik:GridBoundColumn DataField="UserID" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="UserID" UniqueName="UserID" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" ShowFilterIcon="false" HeaderStyle-Width="30px" FilterControlWidth="30px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FullName" FilterControlAltText="Filter Full name column" HeaderText="<%$Resources:localization, lblUserFullName%>" SortExpression="FullName" UniqueName="FullName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false" HeaderStyle-Width="150px" FilterControlWidth="145px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter email" HeaderText="<%$Resources:localization, lblEmail%>" SortExpression="Email" UniqueName="Email" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false" HeaderStyle-Width="150px" FilterControlWidth="145px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RoleName" FilterControlAltText="Filter role column" HeaderText="<%$Resources:localization, lblUserRole%>" SortExpression="RoleName" UniqueName="RoleName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"  HeaderStyle-Width="200px" FilterControlWidth="230px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="StatusDescription" FilterControlAltText="Filter Status column" HeaderText="<%$Resources:localization, lblStatus%>" SortExpression="StatusDescription" UniqueName="StatusDescription" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"  HeaderStyle-Width="100px" FilterControlWidth="80px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Created" FilterControlAltText="Filter date created column" HeaderText="<%$Resources:localization, lblDateCreated%>" SortExpression="Created" UniqueName="Created" AllowFiltering="false" AutoPostBackOnFilter="true" ShowFilterIcon="false"  HeaderStyle-Width="100px" FilterControlWidth="80px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Modified" FilterControlAltText="Filter date modified column" HeaderText="<%$Resources:localization, lblDateModified%>" SortExpression="Modified" UniqueName="Modified" AllowFiltering="false" AutoPostBackOnFilter="true" ShowFilterIcon="false"  HeaderStyle-Width="100px" FilterControlWidth="80px"></telerik:GridBoundColumn>
        </Columns>
        <PagerStyle AlwaysVisible="True"/>
    </MasterTableView>
</telerik:RadGrid>

Because the paging does not persist the checked Check Box values, i have additional two methods which stores  and sets the checked values on page change: PreRender and OnCheckedChange:

protected void cbSelectUser_CheckedChange(object sender, EventArgs e)
{
    ArrayList selectedItems;
 
    if (Session[Constants.SelectedGridItems] == null)
    {
        selectedItems = new ArrayList();
    }
    else
    {
        selectedItems = (ArrayList)Session[Constants.SelectedGridItems];
    }
 
    foreach (GridDataItem item in gvUsers.MasterTableView.Items)
    {
        CheckBox chkSelected = (CheckBox)item.FindControl("cbSelectUser");
        String Id = item["UserID"].Text;
 
        if (chkSelected.Checked)
        {
            if (!selectedItems.Contains(Id))
            {
                selectedItems.Add(Id);
            }
            Session[Constants.SelectedGridItems] = selectedItems;
        }
        else
        {
            selectedItems.Remove(Id);
            Session[Constants.SelectedGridItems] = selectedItems;
        }
    }
}

 and

protected void gvUsers_PreRender(object sender, EventArgs e)
{
    if (Session[Constants.SelectedGridItems] != null)
    {
        ArrayList selectedItems = (ArrayList)Session[Constants.SelectedGridItems];
        Int16 stackIndex;
        for (stackIndex = 0; stackIndex <= selectedItems.Count - 1; stackIndex++)
        {
            string curItem = selectedItems[stackIndex].ToString();
 
            foreach (GridDataItem item in gvUsers.MasterTableView.Items)
            {
                CheckBox box = (CheckBox)item["cbSelect"].Controls[1];
 
                if (curItem.Equals(item.OwnerTableView.DataKeyValues[item.ItemIndex]["UserID"].ToString()))
                {
                    box.Checked = true;
                }
            }
        }
    }
}

On the Page, i also have an Button which is outside the Grid. On the Button_Click it should pick up all Check Box values from the grid, not only those from current page. I tried it with "AllowPaging = false" and Rebind(), but after the rebind method is executed, no one Check box is checked...

How to get it work?

Thanks, Adnan
Adnan
Top achievements
Rank 1
 answered on 09 Feb 2015
4 answers
480 views
I'm currently using Q3 2014. I use clientdatasource as my datasource for my radgrid. If i'm editing a record client side, all works. However, when I'm inserting the first record inside the grid rebind() won't fire. I would have to manually refresh the page. 

Is there still some bugs inside Q3 that needs ironing or no one has experienced this problem?

Could anyone assist please?

Thank you.
Konstantin Dikov
Telerik team
 answered on 09 Feb 2015
4 answers
61 views
Hi, i'm having trouble ajaxing a page with details and summary tags on it.

After the ajax postbacks, the detail portion would disappear.

What kind of compatibility with those two tags are the telerik ajax controls?

Thanks,
rad
Maria Ilieva
Telerik team
 answered on 09 Feb 2015
1 answer
338 views
never run itto something more frustrating on telerik controls.  I have a linkbutton right after my RadAutoComplete box, but it always wants to move it under the autocomplete box, no matter if I have in table, div whatever.  I inline-Block works somewhat to get the link button to be on same line as autocomplete box but then it will not center in the div, no matter.  used many differenet display types but it always messes up the autocompete box or moves the linkbutton to next line.  Just a frustrating experience that you cannot override the css on a autocomplete box or that it does this in first place.

This method get it centered on div, but not matter how I try to get the link button to line up with the autocomplete box its messes it up.

.alignSearcher{
    margin:0 auto;
}
 
 
 <div class="table100">
            <h3 style="text-align:center">Add Personnel or Change Time</h3>
            <telerik:RadAutoCompleteBox ID="txtName" runat="server" Width="280px" CssClass="alignSearcher" OnClientRequesting="requesting" DropDownPosition="Automatic" DropDownWidth="270px" AllowCustomEntry="true" EmptyMessage="Enter Last Name First Name to Search"  InputType="Text"
                    HighlightFirstMatch="true" TextSettings-SelectionMode="Single" IsCaseSensitive="false" >
                    <WebServiceSettings Path="../AutoComplete.asmx" Method="GetSrp" />
            </telerik:RadAutoCompleteBox>  <asp:LinkButton ID="lnkSearch" runat="server" CausesValidation="false" Text="Add Personnel"></asp:LinkButton>
        </div>
Magdalena
Telerik team
 answered on 09 Feb 2015
2 answers
109 views
Hi guys,

I have a only one DetailTable in a RadGrid. This DetailTable shows the AddNewRecord button but if I pressed it, the FormTemplate in the EditFormSettings is not showed. In that DetailTable, I have a GridTemplateColumn with a LinkButton to edit the specific row. Using this LinkButton, the FormTemplate is showed successfully but not when I click on the AddNewRecord button.

Where could it be the problem, please?

Thanks a lot in advance.

Cheers.

David Ortega.
Eyup
Telerik team
 answered on 09 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?