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

I can not read from the documentation for the Gridview: http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx
if it is possible to style the collapse / expand buttom in a nested grid.

Is it possible to use a image or html feature like "button" instead of the >

Example
Shinu
Top achievements
Rank 2
 answered on 18 Apr 2013
0 answers
95 views
I have webpart in sharepoint 2010
and i have grid view with edit form , one of the template control is radupload. 
when I click add new record , the rad page view crashes it should be on right side of page , it go to left and will take action when click. 
and the radupload control is not loaded. i tried the asyUploadControl ,, the same issue. 
I replace it with normal ASP.NET upload contorl . every thing went perfect... 

any idea how to solve this?
Mohammad
Top achievements
Rank 1
 asked on 18 Apr 2013
4 answers
151 views

using the release 2013.1.220.45, we experienced this in two different environments and wondering if anyone else did.

Windows 8 / Visual Studio 2012 Ultimate on traditional laptop
Windows 7 Enterprise / Visual Studio 2012 Professional in a VM

In both environments - different machines this would crash visual studio every time for us:

Any project - existing or brand new empty, webform projects.

Select radgrid in design view, right click scroll and choose properties
In the properties explorer, scroll down to MasterTableView and click the plus sign to the left of it -Visual Studio Crashes

The dumps from each machine had different errors, but both consistently blew up Visual Studio. Didn't keep the dump files as we were too pressed to get returned to operational status. We had to uninstall and then re-install rolled back to 2012.3 1480 jan 8 and everything works fine.

Anyone else experience this?

Andrey
Telerik team
 answered on 18 Apr 2013
5 answers
341 views
Hi!

I wanted to know how I can make insensitive accent filtering ?

Example:

"Men" should find "Ménard"

How can I achieve this?

Thanks.
Eyup
Telerik team
 answered on 18 Apr 2013
2 answers
148 views
I have looked at probably all of the previous articles that return in a search fr this issue but none of them are quite like my problem so I am posting a new thread on it. In my thread found HERE , I was having an issue getting a new window to open using a GridButtonColumn. I used ItemCommand to get some data from my radgrid and store it in session. Then to open the new window I added the OnItemDataBound event. Once I added OnItemDataBound, the ItemCommand event no longer fires. If I remove OnItemDataBound, the ItemCommand even will fire again as expected. I need to have this functionality so it is my understanding that I need them both, any ideas?

Telerik version:
2012.2.912.40


<telerik:RadGrid ID="policeGrid" runat="server" AllowSorting="false" Skin="Default" OnNeedDataSource="LoadPoliceTable" OnItemCommand="policeGrid_ItemCommand"
               GridLines="Both" AutoGenerateColumns="False" ShowFooter="false" AllowPaging="true"  AllowFilteringByColumn="true"
               PageSize="25" PagerStyle-AlwaysVisible="true" OnUpdateCommand="policeGrid_UpdateCommand" OnInsertCommand="policeGrid_InsertCommand"
               EnableLinqExpressions="false" OnDeleteCommand="policeGrid_DeleteCommand" GroupingEnabled="True" ShowGroupPanel="True" OnItemDataBound="policeGrid_ItemDataBound"
               GroupPanel-Enabled="True">
               <ClientSettings AllowDragToGroup="True"/>
               <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" />
               <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top" DataKeyNames="station_id"
                   NoMasterRecordsText="No current police." TableLayout="Fixed" CommandItemSettings-ShowRefreshButton="False">
                   <RowIndicatorColumn Visible="False">
                       <HeaderStyle Width="20px"></HeaderStyle>
                   </RowIndicatorColumn>
                   <Columns>
                       <telerik:GridEditCommandColumn UniqueName="btnEdit" ButtonType="ImageButton" EditText="Edit" Resizable="False" >
                           <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                           <HeaderStyle Width="15px" />
                       </telerik:GridEditCommandColumn>
                       <telerik:GridButtonColumn UniqueName="infoPolice" ButtonType="ImageButton" ImageUrl="../../RadControls/Grid/Skins/info.png" CommandName="Select" Text="Info">
                           <HeaderStyle Width="15px" />
                       </telerik:GridButtonColumn>
                       <telerik:GridBoundColumn DataField="STATION_ID" HeaderText="STATION_ID" UniqueName="STATION_ID"
                           AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" >
                           <HeaderStyle Width="50px" />
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="PRIMARY_CONTACT_ID" HeaderText="PRIMARY_CONTACT_ID" UniqueName="PRIMARY_CONTACT_ID"
                           AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" >
                           <HeaderStyle Width="50px" />
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="STATE_NAME" HeaderText="STATE_NAME" UniqueName="STATE_NAME"
                           AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" >
                           <HeaderStyle Width="75px" />
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="TROOP" UniqueName="TROOP" HeaderText="TROOP"
                           AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                           <HeaderStyle Width="75" />
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="PH_HAZMAT" HeaderText="PH_HAZMAT" UniqueName="PH_HAZMAT"
                           AllowFiltering="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">
                           <HeaderStyle Width="75px" />
                       </telerik:GridBoundColumn>
                       <telerik:GridButtonColumn ConfirmText="Delete this group?" ConfirmDialogType="RadWindow"
                           ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                           UniqueName="DeleteColumngroups" Visible="true">
                           <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                           <HeaderStyle Width="50px" />
                       </telerik:GridButtonColumn>
                   </Columns>
                   <EditFormSettings UserControlName="EditPolice.ascx" EditFormType="WebUserControl">
                       <EditColumn UniqueName="EditCommandColumn1">
                       </EditColumn>
                   </EditFormSettings>
               </MasterTableView>
           </telerik:RadGrid>

protected void policeGrid_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "Select")
            {
               var stationId = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["station_id"];
               Session["station_id"] = stationId;             
            }           
        }
 
        protected void policeGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                ImageButton link = (ImageButton)item["infoPolice"].Controls[0];
                link.OnClientClick = "Open();return false;";
            }
        }

Shinu
Top achievements
Rank 2
 answered on 18 Apr 2013
7 answers
752 views
Hi all,
I have some problem with Telerik RadGrid
I want to get control on EditFormSettings.FormTemplate from C# code to can manipulate FormSettings items.
Tanks.
Priya
Top achievements
Rank 1
 answered on 18 Apr 2013
1 answer
92 views
Hi Telerik,

Will there be any issue if I use radajaxpanel along with the radxmlhttppanel? I got some doubts whether the ajax partial updates
are triggered properly if I combine these two?

Thankyou,
JC
Princy
Top achievements
Rank 2
 answered on 18 Apr 2013
1 answer
108 views
Hi Telerik,

I believe the radajaxpanel and radxmlhttppanel somewhat serves the same purpose. When performance is considered, which control is
preferred especially when dealing with client side data loading?

Thankyou,
JC
Princy
Top achievements
Rank 2
 answered on 18 Apr 2013
2 answers
151 views
I am trying to get values when inserting from an Edit Form (with Multiple Columns) in preparation for writing a record to the database.  I'm sure it's something simple t o get this working.  However when I try to retrieve the value for a field in the InsertCommand handler it looks like the textbox can't be located.  I'm not sure what I should cast e.item to in the handler.  I've seen and tried three different types unsuccessfully: GridEditFormInsertItem, GridEditFormItem and GridEditableItem. 

<telerik:RadGrid ID="rgLocations" runat="server" Width="100%"  AutoGenerateColumns="false"
        Skin="Office2010Black"  ItemStyle-BackColor="#ffe394" BorderColor="White"
        ShowFooter="false"  OnNeedDataSource="rgLocations_NeedDataSource" OnInsertCommand="rgLocations_InsertCommand">
        <AlternatingItemStyle BackColor="White" />
        <FooterStyle BackColor="#cccccc" />
        <HeaderStyle ForeColor="White" />
        <PagerStyle AlwaysVisible="true" Position="TopAndBottom" ForeColor="White"   />
         <MasterTableView  CommandItemDisplay="Top" DataKeyNames="ClientLocationID" >
            <Columns>
                <telerik:GridBoundColumn DataField="ClientLocationID" Visible="false"  ReadOnly="true"/>
                <telerik:GridTemplateColumn HeaderText="Edit">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnEdit" ImageUrl="~/images/silk/pencil_go.png" CommandName="Edit"
                            runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="ClientID" HeaderText="Client" Visible="false"  ReadOnly="true" />
                <telerik:GridBoundColumn DataField="LocationName" HeaderText="Location" EditFormColumnIndex="0" />
                <telerik:GridBoundColumn DataField="PublicIPs" HeaderText="Public IPs" EditFormColumnIndex="0"/>
                <telerik:GridBoundColumn DataField="PrivateIPs" HeaderText="Private IPs"  EditFormColumnIndex="0" />
                <telerik:GridBoundColumn DataField="Address1" HeaderText="Address1" EditFormColumnIndex="1" />
                <telerik:GridBoundColumn DataField="Address2" HeaderText="Address2" EditFormColumnIndex="1" />
                <telerik:GridBoundColumn DataField="City" HeaderText="City" EditFormColumnIndex="2" />
                <telerik:GridBoundColumn DataField="State" HeaderText="State" EditFormColumnIndex="2" />
                <telerik:GridBoundColumn DataField="Zip" HeaderText="Zip"  EditFormColumnIndex="2" />
                
                <telerik:GridTemplateColumn  ReadOnly="true" HeaderText="Delete" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnDelete" CommandName="Delete" runat="server" ImageUrl="images/1263447248_cross.png" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <EditFormSettings ColumnNumber="3" CaptionFormatString="Edit details for Notification {0}" CaptionDataField="LocationName">
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="5" Width="200" />
                <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="5" CssClass="module"  Height="110px" Width="100%"></FormTableStyle>
                <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>




Protected Sub rgLocations_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs)
    Dim ClientID As String = Session("ClientID")
    Dim oCLientLocations As clsClientLocations = New clsClientLocations(ClientID)
    rgLocations.DataSource = oCLientLocations.DataTable
End Sub
 
Protected Sub rgLocations_InsertCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs)
    Dim editedItem As GridEditFormItem = CType(e.Item, GridEditableItem)
     
    Dim LocationName As String = CType(editedItem("LocationName").FindControl(0), TextBox).Text
End Sub
 
In the ItemCOmmand handler, the LocationName does not get set.  I the error message: "Object reference not set to an instance of an object."  WHich is because editItem("LocationName").FindControl(0) is "Nothing".

Thanks in advance for any help on this.
Hunter
Top achievements
Rank 1
 answered on 18 Apr 2013
2 answers
107 views
Hello,

I am using rad Grid with Auto generated columns.
I am adding Link Button at ItemDatabound Event.  so rows will generated as link button cell.
Now Problem is that  When I click on linkbutton that does not fire ItemCommand Event and convert cell in Normal Cell.
Link button removed after click on it.
So What is problem?
 and
Please Give me Solution.

Thanks....
Ajay
Top achievements
Rank 1
 answered on 18 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?