Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
133 views
Hi,

I'm using 2013.2.611.40 Telerik RadGrid.

I'm trying to use Batch editing mode with a GridTemplateColumn. If I specify ColumnGroup property, when the cell is clicked a JavaScript error is raised in _isColumnEditable (Unable to get property _data of undefined or null reference). If ColumnGroup property is removed all is working fine and edit textbox is shown.

01.<telerik:RadGrid ID="MyGrid" runat="server" AutoGenerateColumns="false"
02.        Skin="Simple"
03.        AllowPaging="False"
04.        AllowSorting="true"
05.        AllowFilteringByColumn="true"
06.        AllowMultiRowSelection="true"
07.        OnPreRender="GridLastPhase_PreRender"
08.        OnNeedDataSource="GridLastPhase_NeedDataSource"
09.        OnItemDataBound="GridLastPhase_ItemDataBound">
10.        <ClientSettings>
11.            <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
12.            <Selecting AllowRowSelect="true" />
13.        </ClientSettings>
14.        <MasterTableView HeaderStyle-HorizontalAlign="Center" Width="99%" EditMode="Batch">
15.            <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
16.            <ColumnGroups>
17.                <telerik:GridColumnGroup Name="LQP1" HeaderText="Last Q Phase 1" HeaderStyle-HorizontalAlign="Center" />
18.            </ColumnGroups>
19.            <Columns>
20.                <telerik:GridTemplateColumn HeaderText="" AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-Width="40px">
21.                    <ItemTemplate>
22.                        <asp:Label ID="lblRowNumber" runat="server"></asp:Label>
23.                    </ItemTemplate>
24.                </telerik:GridTemplateColumn>
25. 
26.                <telerik:GridClientSelectColumn>
27.                    <HeaderStyle Width="40px" HorizontalAlign="Center" />
28.                    <ItemStyle Width="40px" HorizontalAlign="Center" />
29.                </telerik:GridClientSelectColumn>
30. 
31.                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="100%" UniqueName="LQP1_PHASE_DESCRIPTION" HeaderText="Phase" DataType="System.String" DataField="LQP1_PHASE_DESCRIPTION" SortExpression="LQP1_PHASE_DESCRIPTION" ColumnGroupName="LQP1" HeaderStyle-Width="110px" ItemStyle-Width="110px">
32.                    <ItemTemplate>
33.                        <asp:Label ID="lblLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:Label>
34.                    </ItemTemplate>
35.                    <EditItemTemplate>
36.                        <asp:TextBox ID="txtLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:TextBox>
37.                    </EditItemTemplate>
38.                </telerik:GridTemplateColumn>
39.            </Columns>
40.        </MasterTableView>
41. 
42.    </telerik:RadGrid>

Thanks in advance.

Alfonso
Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
1 answer
108 views
Hi,

I'm using 2013.2.611.40 Telerik Radgrid with Batch editing activated.

I have a GridTemplateColumn with ColumnGroup defined. When I click on the cell a JavaScript error is launched in _isColumnEditable (Unable to get property _data of undefined or null reference  in var h=g._data).

If I remove ColumnGroup property from GridTemplateColumn all is working fine and textbox is shown for editing.

 <telerik:RadGrid ID="GridLastPhase" runat="server" AutoGenerateColumns="false"
        Skin="Simple" CssClass="caronte-phase-grid"
        AllowPaging="False"
        AllowSorting="true"
        AllowFilteringByColumn="true"
        AllowMultiRowSelection="true"
        OnPreRender="GridLastPhase_PreRender"
        OnNeedDataSource="GridLastPhase_NeedDataSource"
        OnItemDataBound="GridLastPhase_ItemDataBound">
        <ClientSettings>
            <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <MasterTableView HeaderStyle-HorizontalAlign="Center" Width="99%" EditMode="Batch">
            <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
            <ColumnGroups>
                <telerik:GridColumnGroup Name="LQP1" HeaderText="Last Q Phase 1" HeaderStyle-HorizontalAlign="Center" />
            </ColumnGroups>
            <Columns>
                <telerik:GridTemplateColumn HeaderText="" AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-Width="40px">
                    <ItemTemplate>
                        <asp:Label ID="lblRowNumber" runat="server"></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>           

                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="100%" UniqueName="LQP1_PHASE_DESCRIPTION" HeaderText="Phase" DataType="System.String" DataField="LQP1_PHASE_DESCRIPTION" SortExpression="LQP1_PHASE_DESCRIPTION" ColumnGroupName="LQP1" HeaderStyle-Width="110px" ItemStyle-Width="110px">
                    <ItemTemplate>
                        <asp:Label ID="lblLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtLQP1_PHASE" runat="server" Text='<%#Eval("LQP1_PHASE_DESCRIPTION")%>'></asp:TextBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>

            </Columns>
        </MasterTableView>

    </telerik:RadGrid>

Thanks in advance,

Alfonso
Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
1 answer
228 views
Dear Team,

I save video file in a folder in my project and its path in sql server video file is .avi type file.I want to run this video using telerik Media player. But i can't
run it.i can run .mp4 video on chorme browse.

So Please suggest me how i can run .avi file in media player with out using HTML 5.


Thanks & regards
Akhilesh 
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
228 views
I have plenty of images path of my Rad Editor set to a folder with many sub folders.  Each of those sub folders has dozens of images in it.  On the production server, it takes almost a minute just for the Image Manager dialog to open and show the sub folders.and also taking long time on pagination as well filtration  

I made changes in web.config  as advised like below

<compilation debug="false" strict="false" explicit="true">


Still, I could not find any difference . Please advise , is there any way to improve the performance of the image manager. 
Vessy
Telerik team
 answered on 22 Jul 2014
4 answers
259 views

Hi,

I have “ToolkitScriptManager” in the master page, a lot of Ajax control toolkit controls and “RadAjaxManager”, “RadGrid” in the web application pages.

After adding the “RadGrid” I have this script error “Error: Object doesn't support this property or method”

I’m using the following

  • Microsoft Visual Studio 2008
  • Framework 3.5 SP1
  • "RadControls_for_ASP.NET_AJAX_2008_3_1314_dev" (RadControls for ASPNET AJAX Q3 2008)
  • AjaxControlToolkit.dll, File Version: 3.5.40412.2


Regards,

Hristo Valyavicharski
Telerik team
 answered on 22 Jul 2014
4 answers
1.2K+ views
Hi,
How can I change in js the css or the text color of my cell based on it's content?
The grid is populated by ClientDataSource so I can't change the color on server-side (I think)

This is my column
<telerik:GridBoundColumn UniqueName="GPS" DataField="GpsTxt" HeaderText="GPS" AllowFiltering="false"
                           ItemStyle-HorizontalAlign="Center">
                           <ItemStyle Font-Bold="true" />
                       </telerik:GridBoundColumn>

The DataField "GpsTxt"  value can be "OK" or "ERR"
I would like to show "OK" in green and "ERR" in red

Is it possible?
Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
111 views
Hi,

I've got a seminar registration form, which requires about 10 fields for each participant. However, I don't know how many participants will register. Is there a Telerik control that can provide an "Add new participant" function/button, which when clicked will create a new set of 10 fields for the next participant to complete?
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
513 views
Hi,

There is an ASP button in the Content page of my web application and its ajaxified using the RadAjaxManagerProxy. In the server side click event of the button, I am trying to download a csv file.

When the button is ajaxified, the csv file is not getting downloaded and I noticed that the void Application_Error(object sender, EventArgs e) in Global.asax is firing on putting a break point.  If I remove the ajax from the button, then the code works fine as expected.

Here is a complete sample of my scenario.

Thanks,
Vishnu.
Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
1 answer
152 views
Hi,

I have a problem using Telerik RadGrid.
When I apply a filter on a data column, I use the filter expression as a Linq expression.
So at the server side I parse it with Dynamic Linq in GridNeedDataSource handler.
The problem is that when I specify "Contains" as a filter, I receive the following as "Linq expression":

ColumnName1 = 1227 && (iif(ColumnName2 == null,\"\", ColumnName2).Contains(\"abc\"))

This expression does not get resolved by the OData request.

This issue start coming when I updated the dll to version 2014.2.618.35.
Earlier I was using version 2012.1.215.35 which was working fine for filtering. Filter expression generated by this old dll was as below:

ColumnName1 = 1227 && (ColumnName2.Contains(\"abc\"))


Thanks
Marin
Telerik team
 answered on 22 Jul 2014
1 answer
61 views
Hello,

Is it possible to set the group column count while using the WCF Service Binding? I tried various ways, but its not too obvious how to set the columns in this configuration. GroupColumnCount in the ascx control seems to be ignored.

Any advice is appreciated.

Thanks,
Andy
Plamen
Telerik team
 answered on 22 Jul 2014
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?