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

I am having a problem with the column selection feature of the header context menu in IE10.

The menu shows the list of available columns but it is not possible to check or uncheck any of the items in the list.  The underlying columns are hidden and shown but its rather an uncomfortable user experience.

It seems to work fine in Chrome, Safari, Firefox and also IE10 in compatibility mode.

If you activate the menu in your demo you can reproduce the problem.

Any ideas?
Thanks

Bob
Bob Fenton
Top achievements
Rank 1
 answered on 02 Aug 2013
4 answers
958 views

Hello,

my problem it's like here:
http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-old-amp-new-values-in-itemupdated-iteminserted-and-itemdeleted.aspx

How can I get the old values ​​in all input refill, if I get a exception on ItemUpdated?
I try here the code:

protected void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e)
        {
            if (e.Exception != null)
            {
 
                e.KeepInEditMode = true;
                e.ExceptionHandled = true;
                flag = 1;
 
                GridEditFormItem editedItem = (GridEditFormItem)e.Item;
                Hashtable new_values = new Hashtable();
                Hashtable old_values = new Hashtable();
                e.Item.OwnerTableView.ExtractValuesFromItem(new_values, editedItem);
                old_values = (Hashtable)editedItem.SavedOldValues;
 
                foreach (Object key in new_values.Keys)
                {
                    string value = old_values[key].ToString(); // Here I get a error! With: Object reference not set to an instance of an object.
                }
            }
}


Any ideas? Im still a beginner (;
Thanks..

Eyup
Telerik team
 answered on 02 Aug 2013
2 answers
292 views
Hi, 

Is there a way to attach client event to textbox inside RadSearchBox control?
I want to attach keypress event and check whether user press "Enter" key or not.

Thanks in advanced,
Robin


Robin
Top achievements
Rank 2
 answered on 02 Aug 2013
9 answers
492 views
Hi,

I want to allow my users to insert HTML tables in the content they generate, but I don't want them to be able to fully control styles and formatting for the inserted table.  The only control users should have is over the number of rows and columns in the table.  We do this to preserve look-n-feel consistency through our content. 

The InsertTable tool in RadEditor is great except we want to hide the Table Wizard and Table Properties options from the drop-down (which give "full-control" over table properties).  Is there a way to achieve this?  Is InsertTable a Tool Strip that we could modify?

Alternatively, we could build our own tool strip from the "primary" buttons that show up on that drop-down, but I wasn't able to find the corresponding tool for the interactive "table grid" that you drag across to specify the number of columns and rows.  Thanks,

Stefan
Ianko
Telerik team
 answered on 02 Aug 2013
1 answer
110 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
85 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
246 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
183 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
93 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
266 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?