Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
341 views
I am working on some charts that need to have the x-axis labels angled at a -45 degrees.  When I do this the labels are centered on the tick marks.  I was wondering if there is a way to adjust the position of the labels to where the end of the label will line up with the tick marks instead of the label being centered on the tick marks.
Danail Vasilev
Telerik team
 answered on 18 Apr 2013
4 answers
150 views
Hi,
     when my radgrid is in edit mode , On pressing a button in the particular row (not a Update or Cancel) I need to fetch a cell value . Also I need to disable the edit mode. Wat i am using is

Aspx.cs
------------

 

protected

 

void btn_Click(object sender, EventArgs e)

{

Button btn = (Button)sender;

GridDataItem item = (GridDataItem)btn.NamingContainer;

TableCell cell = (TableCell)item["Id"];

string ID = cell.Text;

Label lbStatus = (Label)item.FindControl("lblStatus");

string Status = lbStatus.Text;
:
:
}
using this code i can fetch the status (lblStatus) value but the id value i got is &nbsp. How can i fetch the correct value of the cell "Id" & disable the edit mode pls help with a code. Thanx in advance..


Siva
Top achievements
Rank 1
 answered on 18 Apr 2013
3 answers
156 views

1.    Recently, our project upgraded from 2010.1.415.40 of Telerik to 2013.1.220.40 and features like Sorting, Pagination doesn’t seem to be work on IE 8/9 or Mozilla browsers. Is there anything that we are missing? The existing Telerik version works fine on IE 8 and Mozilla. We did this upgrade to make our application compatible with IE 9.

Angel Petrov
Telerik team
 answered on 18 Apr 2013
1 answer
127 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
101 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
168 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
362 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
157 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
775 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
111 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
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?