Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
249 views
Hi there,

I was wondering if you could tell me whether there are any plans to create a panelbar that expands horizontally - my thinking is an accordion-style menu capability where the tabs (vertical) slide the panels out along the x axis such as here:


(I realise that one is flash-based, but you get the idea!)
Boyan Dimitrov
Telerik team
 answered on 09 Feb 2015
2 answers
58 views
Hi mates,

I have a radgrid and a external textbox and button to search specifics rows in the radgrid. Basically I change the SelectCommand of the RadGrid DataSource when I use the search button.
 
The first column of the radgrid is the following:

<telerik:GridTemplateColumn UniqueName="EditarEstado" ItemStyle-HorizontalAlign="Center" AutoPostBackOnFilter="false">
    <HeaderStyle Width="50px" />
    <ItemTemplate>
          <asp:ImageButton ID="btnEditarEstado" CommandName="Edit" runat="server" ImageUrl="~/img/buttons/edit.png"
          CommandArgument='<%# Eval("id") %>' ToolTip="Modificar" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

If I search an specific row using the textbox and the search button, the row is showed successfully in the radgrid. The issue happens if I try to edit that row using the btnEditarEstado ImageButton. When I clic on it, autopostback is executed and the default SelectCommand of the radgrid datasource is set, so, it's like if I try to edit the first row and not the row that I searched.

How could I edit the selected row and not the default first one, please?

Please, let me know if you have any problem to understand my problem.

Thanks a lot in advance.

Cheers.
davortsan
Top achievements
Rank 1
 answered on 09 Feb 2015
1 answer
69 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
101 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
59 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
201 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
226 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
111 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
474 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
60 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?