Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Hi everyone;
My problem is, rad controls is not working inside xmlhttp panel.
How can i fix it? Pls help...
Slav
Telerik team
 answered on 02 Aug 2013
3 answers
68 views
Hi,
i have a grid which renders four columns to the client and  i am binding it on clientside by calling a service.This grid is actually inside a dynamic search control that can show 1,2,3 or 4 columns.i am hiding columns based on the response from the service by calling 
tableView.hideColumn(cindex);  

without postback i will use this grid to show different searches.
Suppose the reponse from service will have 2 column i will hide
column at index 2 and 3, and if response have 1 column then i will 
hide column at index 1,2,3. this is working fine.Problem occurs
when i use this control witout posting back to the server. In
that case scenario is suppose first time i loaded data having column
count 1 it will display one column on the grid. then i again loaded
data from different method having column count 2 i need to actually
show all the columns i have set to hidden by calling hideColumn(index)
for this i am calling showColumn(index) this is giving me 

SCRIPT5007: Unable to get value of the property 'position': object is 
null 
or undefined 

Error Image is attached. Please help.

              
Eyup
Telerik team
 answered on 02 Aug 2013
3 answers
233 views
Hello Everyone,

Has anyone here ever successfully implement the scenario I stated above? I have tried several ways accomplish this starting from using the grid's OnPreRender Event to intercept values down to the more conventional FilterExpression method. Unfortunately Telerik has been extremely rigid in this area. I've scoured (practically) all over the web to find viable solution for this to no avail. It seems that telerik control do have some dead ends.
Eyup
Telerik team
 answered on 02 Aug 2013
1 answer
164 views
I have client-side grid inherited from RadGrid. It was fully functional, but after upgrade to the newest Telerik version it stopped working properly.

For instance, I have a custom pager: it's RadCombobox created like this:
protected override void OnItemEvent(GridItemEventArgs e)
{
    if (e.EventInfo is GridInitializePagerItem && e.Item is GridPagerItem)
    {
        e.Canceled = true;
        B4GridClientPager = new B4GridClientPager((e.EventInfo as GridInitializePagerItem).PagingManager, e.Item.OwnerTableView, Page, MaxNumberOfRows);
        (e.Item as GridPagerItem).PagerContentCell.Controls.Add(B4GridClientPager);
    }
}

This event is fired twice as we all know :) and before it was not a problem, but now after I select value in the pager and SelectedIndexChanged event happens - the values in the combobox are duplicated on page reload! No matter if I turn viewstate on or off, for combobox itself or the grid in common...

More code I previously had to write to make custom paging work:

private void RadGridDebriefitClientPager_Init(object sender, EventArgs e)
{
    var radComboBox = sender as RadComboBox;
 
    if (Page.IsPostBack)
    {
        if (HttpContext.Current.Request.Params["__EVENTTARGET"] != null &&
            HttpContext.Current.Request.Params["__EVENTTARGET"] == radComboBox.ClientID)
        {
            int pageSize;
 
            if (int.TryParse(HttpContext.Current.Request.Params["__EVENTARGUMENT"], out pageSize))
            {
                if (pageSize > 0)
                {
                    _tableView.PageSize = pageSize;
                    _tableView.OwnerGrid.PageSize = pageSize;
                    _tableView.CurrentPageIndex = 0;
                    _tableView.OwnerGrid.CurrentPageIndex = 0;
                    //tableView.Rebind();
                }
            }
        }
    }
}

and it was called by using this:
function RadGridDebriefitClientPager_SelectedIndexChanged(sender, eventArgs) {
    __doPostBack(sender.get_id(), sender.get_value());
}

Autopostback property of combo is set to false, so this event fires only.
Antonio Stoilkov
Telerik team
 answered on 02 Aug 2013
1 answer
78 views
Hi


Is it possible to use a new Dock command to drag and drop the dock control instead of the dock's control tool bar ?

Thanks.
Slav
Telerik team
 answered on 02 Aug 2013
5 answers
250 views
Hi, i'm using 2013.2.717.40

The Expand Collapse Buttons are firing a PostBack even though I believe i've configured the RadGrid to use ClientSide expand/collapse.
What am I doing wrong? I would like the expand and collapse to be handled by the Client.

ASPX:
<code>
<telerik:RadGrid ID="rgInspectionItems" runat="server" Skin="MetroTouch" 
        CellSpacing="0" GridLines="None"
        onneeddatasource="rgInspectionItems_NeedDataSource">
        <ClientSettings AllowGroupExpandCollapse="true" AllowExpandCollapse="true">
        </ClientSettings>
        <MasterTableView HierarchyLoadMode="Client">
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="WorkGroupName" HeaderText="Group" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="WorkGroupName" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="41px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Created="True">
                <HeaderStyle Width="41px" />
            </ExpandCollapseColumn>
        </MasterTableView>
    </telerik:RadGrid>
</code>

ASPX.CS
<code>
 protected void rgInspectionItems_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {             DataTable dt = AppSql.getInspectionItems();
            rgInspectionItems.DataSource = dt;
        }

</code>

Also, what is the Markup needed to Format a Code Snippet?

Thanks,
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Aug 2013
4 answers
166 views
Hi,
I have one telerik radgrid and one next click button on top of the grid(button for go to next page). Grid has some rows with inline editing..If i click the edit button, edit option(text box) will be open, Here if i type anything in that box and click enter button it will go to next button instead of firing edit button..
Can u anyone help me..?

Andrey
Telerik team
 answered on 02 Aug 2013
4 answers
157 views
hi i would like to use a linkbutton from a mastertableview to open detailtables edit form. is this possible? thank you.
<telerik:GridTemplateColumn UniqueName="InsertCommandColumn" HeaderText="">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btn_Insert" runat="server" Text="Add Detail" CommandName="InitInsert" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>

Foram
Top achievements
Rank 1
 answered on 02 Aug 2013
13 answers
1.4K+ views
hello..
Is there any way to disable the close button on top right corner of radwindow?
Shinu
Top achievements
Rank 2
 answered on 02 Aug 2013
4 answers
101 views
Hi,

I want to keep column reordering intact during single session.

If user reorder grid columns on the grid page, navigates to some other page and then come back again on the grid page then he should see the same ordering of columns which he has done during his last visit.

can you please provide some help on this? How can I preserve column reordering in session?

Regards,
Vinayak
Princy
Top achievements
Rank 2
 answered on 02 Aug 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?