Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views

i have a little problem about direction of a specific column in telerik rad grid.
with firebug we can find and change the direction of a table(master or detail) easily.
but there is no any class for a specific column to access.
how can i change direction of a specific column, not entire row or table in telerik radgrid?

thanks in advance

Shinu
Top achievements
Rank 2
 answered on 02 Jul 2012
1 answer
89 views
Hi..

Is there any way to disable all the previous days in a RadCalendar?

Thanks,
Sigma
Princy
Top achievements
Rank 2
 answered on 02 Jul 2012
0 answers
140 views
Dear All,

        We are developing product in asp.net using c sharp in 4-tier architecture namely DataAccessLayer,BusinessLayer,ServiceLayer and PresentationLayer.How to bind multiple Roles and RoleFeaures in RadGrid and here Roles are parent and rolefeature are child when i click or expand roles,list of role feature should be display also Every role have rolefeatures and user can be assign and un-assign role features to particular Role by Checkbox.
    Here i have three methods are selectRoles,selectRoleFeatures and Assign-UnassginRoleFeatures which is allocated to particular user.
how to implement this which kind of grid suitable for this and what is code to aspx and aspx.cs pages..


My aspx page code is
 
 <telerik:RadGrid ID="Roles" runat="server" AutoGenerateColumns="false">
        <MasterTableView DataKeyNames="ID">
        <Columns>
        <telerik:GridTemplateColumn UniqueName="Name" HeaderText="Name">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("Name") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="Description" HeaderText="Description">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("Description") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="StatusName" HeaderText="StatusName">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("StatusName") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="ParentRoleId" HeaderText="ParentRoleId">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("ParentRoleId") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        </Columns>
        </MasterTableView>
        </telerik:RadGrid>
 
         <telerik:RadGrid ID="RoleFeature" runat="server" AutoGenerateColumns="false">
        <MasterTableView DataKeyNames="ID">
        <Columns>
        <telerik:GridTemplateColumn UniqueName="Name" HeaderText="Name">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("Name") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="Description" HeaderText="Description">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("Description") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="StatusName" HeaderText="StatusName">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("StatusName") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn UniqueName="ParentRoleFeatureId" HeaderText="ParentRoleFeatureId">
        <ItemTemplate>
            <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("ParentRoleFeatureId") %>' />
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        </Columns>
        </MasterTableView>
        </telerik:RadGrid>
My aspx.cs code is
protected void Page_Load(object sender, EventArgs e)
      {
          if (!Page.IsPostBack)
          {
              ApplicationProcess a = new ApplicationProcess();
              Roles.DataSource = a.GetRoles();
              Roles.DataBind();
 
              RoleFeature.DataSource = a.GetRoleFeatures(1);
              RoleFeature.DataBind();
          }
 
      }

Thanks in Advance..!
Susi
Top achievements
Rank 1
 asked on 02 Jul 2012
1 answer
203 views
The rblHovered css class get's applied to list items in the listbox when I hover over the list item. How do you remove this effect? I can't seem to override the css :hover.
Princy
Top achievements
Rank 2
 answered on 02 Jul 2012
0 answers
59 views
Hi,

I am using RadGrid control on my web application.
I tried to change hidden field value on server side when changing the grid page index, but the new value is not passed to the client.
I read and found out that I can recognize a page index changed inside the ajax function OnRequestStart.
How can I recognize that the trigger for the OnRequestStart function is really the grid page index change?

Thanks.
Covertix
Top achievements
Rank 1
 asked on 01 Jul 2012
4 answers
330 views

Hi team,

I'm using radgrid to export to excel file. Everything is ok except one thing. I would like to format the value as currency style but when exporting done the style is Accounting

I catch the event

grid_ExcelExportCellFormatting(object source
                               , ExcelExportCellFormattingEventArgs e)

and I handled in this as below

e.Cell.Style["mso-number-format"] = "Currency";

Please help!
Kim.

zorro
Top achievements
Rank 1
 answered on 01 Jul 2012
3 answers
120 views
I have this rad grid, that is custom and it spans off the page. I checked at other solutions here in telerik forums but none have worked so far. Please see here my mark up and a screen shot of the issue

 

 

 

 

 

                          

 

 

 

Screenshot Attached



Edwin
Top achievements
Rank 1
 answered on 30 Jun 2012
2 answers
211 views
Trying to wrap the radgrid as a custom control in an ASCX control file but I'm not having much luck.
I was able to set the datasource, and get data, but I'm trying to customize the columns now, and it  doesn't recognize MasterTableView 

How do I do this?
Thanks,
Simone


<%@ Page Title="" Language="vb" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="test.aspx.vb" Inherits="SMTProMockup.test" %>
<%@ Register TagPrefix="mockup" TagName="CustomRadGrid" Src="CustomRadGrid.ascx" %>

...
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <mockup:CustomRadGrid id="grdPrograms" runat="server" >
    <MasterTableView DataKeyNames="ID" CommandItemDisplay="Bottom" AutoGenerateColumns="False" FilterExpression="Active = true">
            <Columns>
                <telerik:GridCheckBoxColumn DataField="Active" FilterControlAltText="Filter Active column"
                    HeaderText="Active" ItemStyle-Width="50" DefaultInsertValue="true" UniqueName="Active">
                    <ItemStyle Width="50px"></ItemStyle>
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" FilterControlWidth="150"
                    HeaderText="Name" >
                </telerik:GridBoundColumn>
            </Columns>


    </MasterTableView>
</mockup:CustomRadGrid>
</asp:Content>

Edwin
Top achievements
Rank 1
 answered on 30 Jun 2012
1 answer
113 views
Hello,

I have a RadGrid that have 3 command link buttons. the first 2 need to do post back to execute their function, and that is working ok.

However, the third link needs to execute only a javascript function on the client, without doing a post back. Currently, this is the way my link column looks

<telerik:GridTemplateColumn UniqueName="DDE1" ReadOnly="true" AllowFiltering="false" HeaderText="DateEntry1">
	<ItemTemplate>
		<asp:LinkButton ID="link3" runat="server" ToolTip='<%# Eval("NumberOfSeconds1")%>' Text='<%# Eval("NumberOfSeconds1")%>' OnClientClick='<%#Eval("infoPathEntry1", "redirectInfopath(\"{0}\")")%>' />						    
	</ItemTemplate>
	<ItemStyle Font-Size="Large" />
</telerik:GridTemplateColumn>            

The problem is that the onclientclick is executed, but then it does the server trip, refreshes the page and removes the jquery alert I generated.

Any ideas how can I achieve this?
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Jun 2012
1 answer
70 views

Split start with , end with ,
Content Is "Company : New Gene Features : )
split ("Company :","Features :")
How I check Like

Thanks Advance,
Mohamed.
New
Top achievements
Rank 1
 answered on 30 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?