Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hi,
    can any one tell me , How can i rebind grid when i click on Edit Button in Rad grid?
Shinu
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
1.2K+ views
hi,

i have  a textbox were if i enter text as "&#", my web app crashes with the message "

A potentially dangerous Request.Form value was detected from the client". 

i could easily fix this issue by adding "
<pages validateRequest="false" , however i want to check if there is any other way to fix this issue. 

Princy
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
93 views
Hi all members
I create a server control  which inherits from RadGrid .In OnInit method server control add 2 columns to mastertableview , So , When I set Use staticheader  to true ,frozen Column Count to a number bigger of 0 ,  frozen not working ?
please help to me for resolve problem
Pavlina
Telerik team
 answered on 21 Mar 2013
1 answer
88 views
Hi,
    Can any one tell me , How can i Validate the Record in grid during Edit Mode (Inline).   Note, I am not using Template Edit Form
   I am creating everything in Code Behind even BoundColumn .

Thanks
J
Top achievements
Rank 1
 answered on 21 Mar 2013
2 answers
128 views
I would liek to know if there are any tutorial do help populate a comboBox in a column filter with values listed on the radGrid only.
I have a radGrid where is populated with RadGrid.Datasource. and works fine. If I try to use a ObjectDataSource to populate the comboBox I get some errors.
So how can I popluate a comboBox using the distinct RadGrid listed values?

Thank you.
Paulo
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
78 views
I have my grid's GroupsChanging event handler set up so when the use right-clicks and selects "group by" on a DateTime column, the grid groups instead on a hidden column which contains only the date. This works great.

But when I right-click on select "ungroup" on the same column, the GroupsChanging event never fires! I assume that is because that column is not actually grouped by, but it's problematic. How do I ungroup on this custom, hidden column? Perhaps there is a way I can intercept the ungroup some other way (maybe even client-side)?

FYI: If I display the date-only column, and ungroup on that, it works!
Jeanne
Top achievements
Rank 1
 answered on 21 Mar 2013
7 answers
481 views
Hi,

I have a RadGrid with a Master table (imagine that ;) ) and two levels of nested tables, so there are three levels in all. Each of the three tables has a GridTemplateColumn with asp:checkBox and some other stuff. When user checks the checkbox in Master table I would like to check the checkboxes of all its children (both levels).

I think the best way to go about it would be to get the GridDataItem in which the clicked checkbox resides, and then use get_nestedViews to get access to children etc. The only problem is I don't know how to get the GridDataItem in the first place.

Thank you for your help,
Andreja
Wbc
Top achievements
Rank 1
 answered on 20 Mar 2013
1 answer
132 views
I have a FileExplorer component I have placed inside a JQuery Collapsible Accordion (Width to Content and Auto Height).  When the component renders the sliding of the splitter produces odd width setting on the details grid on the right.  The following is the behavior I have identified.

1) The component appears to render and size properly to the fixed width and height I specify when the page initially loads. 
2) When the splitter is slide the details grid reduces in size from around 400 px to about 3 px. 

The results are similar to the screen shown in this thread:
http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/set-height-to-100-problem.aspx

I am using JQuery UI 1.10.1 components

What I have tried to resolve it
1) Played with the width settings (percentage and px)
2) Played with writing javascript to force the width of the details grid - don't really like this solution.

Thanks
Jeff Swisher
Vessy
Telerik team
 answered on 20 Mar 2013
1 answer
192 views
I have a grid setup so that I can select multiple rows using a GridClientSelectColumn... however, if I select several columns and post back to the server, when I access the selectedItems property of my radgrid, its empty.

Here is the definition of my grid and the server side code that I'm using to access the selected items.

<asp:Panel runat="server" ID="PPAContracts" >
    <br/>
    <telerik:RadComboBox ID="ppaPackages" DataSourceID="eSignPackagesListSql" DataTextField="epkgName"
                         runat="server" EmptyMessage="Choose a package" MarkFirstMatch="True"
                         EnableLoadOnDemand="True" DataValueField="epkgId"/>
 
    <telerik:RadButton ID="addPPAContract" runat="server" Text="Add Contract" OnClientClicked="CheckSelectedPackage()"
                       onclick="addPPAContractButton_Click" />
    <asp:Label runat="server" ID="errorMessage" ForeColor="Red" Text="" Visible="False"/>
    <br/>
    <br/>
    <telerik:RadGrid ID="ppaGrid" runat="server" AutoGenerateEditColumn="True"
        CellSpacing="0" GridLines="None" Skin="Hay" AllowMultiRowSelection="True" ShowFooter="True"
        OnNeedDataSource="ppaGrid_NeedDataSource" OnUpdateCommand="ppaGrid_UpdateCommand">
        <ClientSettings>
            <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"/>
            <Scrolling AllowScroll="True" ScrollHeight="600px" SaveScrollPosition="True" UseStaticHeaders="True"/>
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed" DataKeyNames="ppaId,idorg,oid" AllowFilteringByColumn="True" >
            <Columns>
                <telerik:GridClientSelectColumn Reorderable="False" Resizable="False" UniqueName="selectCol"
                                                HeaderStyle-Width="35px" ItemStyle-Width="35px"/>
                

here is the server side code...
protected void addPPAContractButton_Click(object sender, EventArgs e)
{
 
    var pkgId = Convert.ToInt32(ppaPackages.SelectedValue);
 
    if (ppaGrid.SelectedItems.Count > 0)
    {
        foreach (GridDataItem item in ppaGrid.SelectedItems)
        {
            var merged = item["mergedCb"].Text;
            var oid = Convert.ToInt32(item["oid"].Text);
            var did = Convert.ToInt32(item["did"].Text);
            var email = item["DocEmail"].Text;
            item.Selected = false;
        }
    }
 
}

I'm at a loss on why these selected items are not showing up.. any assistance would be greatly appreciated.
Barry
Top achievements
Rank 1
 answered on 20 Mar 2013
2 answers
172 views
Hi,

I have a RadGrid that sits inside an asp.net user control, with support for updating items via the grid.  This all works perfectly when I add the grid in markup, however, when I add the user control programmatically to a form, the item updated event does not fire, and I am therefore unable to persist any user changes from the grid.

There are no differences other than how the grid is initially declared.  Is this an asp.net issue related to user controls, or is there a known issue for RadGrids?

Thanks
Mathew
Top achievements
Rank 1
 answered on 20 Mar 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?