Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
119 views
I am using this article http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
I am looking for a way so I can read all the selected value at server side!


Thanks,
Shakti
Shakti SIngh Dulawat
Top achievements
Rank 1
 answered on 20 Jul 2012
1 answer
117 views
Hai


I am going to create a new application with MVC architecture with Razor Syntax. And i want to use the telerik control in my application. Which control i can use for it. Is it possible to work with Asp.net Ajax controls?  or i should go for MVC Controls..


Tell me which is the best control to work with Razor Controls?


Thanks

Zdravko
Telerik team
 answered on 20 Jul 2012
8 answers
315 views
Using the sample code below, the datepicker gets rendered with a span that has a style of "width: 100%; display: block;".  Why does it not get a width of 100px?  If I remove the meta tag that is forcing it to use the latest IE rendering engine, it works fine.  Please help, thanks!

Telerik.Web.UI.dll version:  2012.2.607.40

<!doctype html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <telerik:RadDatePicker runat="server" ID="txtBirthDate" Width="100px" />
    </div>
    </form>
</body>
</html>

Michael
Top achievements
Rank 1
 answered on 20 Jul 2012
1 answer
123 views
I have a GridNumericColumn with the values designated as right aligned.  The values overlap the border of the next column to the right of it in edit mode and in display mode.  I have checked to make sure the width is specified on all columns in the grid and that the total of the percentages does not exceed 100%.  I have also attempted to add a CellPadding property, but nothing seems to rectify the problem.

Can anyone provide me with any help on what to look at to resolve the issue?
Eyup
Telerik team
 answered on 20 Jul 2012
4 answers
201 views
I have implemented the date range filter template with two raddatepicker controls to filter records between a startdate and an enddate.
My table contains records from 2001 til 2012. How can I effectively setup defaults so that initially only records from say 2011-2012 are shown ? I have set the startdate control to 01-01-2011 but of course the date range values are only added to the filterexpression when a user selects a different date value.

Regards,
Robert
Eyup
Telerik team
 answered on 20 Jul 2012
3 answers
117 views
Anyone figure out how to pull the value out of the object? I need to set the value of the label based on what level the footer is in... ie root would be "Total: 24323" then the first grouping footer would be "Year: 2343"  and so on... I have everything except how to get the sum of the group from this object.

Eyup
Telerik team
 answered on 20 Jul 2012
8 answers
229 views
Thanks 
Daniel
Telerik team
 answered on 20 Jul 2012
2 answers
131 views

Hi all,

My problem is this: when I move a working radChart to a master/content page scenario the chart shows me the message 'there is no or empty series'. The same code works ok when I place it in a regular aspx page. I tried adding the RadScriptManager to the masterpage but that didn't work. I went through this forum and found a lot of posts on the masterpage problem but no solution to my problem, unfortunately. Here is the code

aspx page

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/masterpages/ControlHolder.master" CodeBehind="test2.aspx.cs" Inherits="TestLme2" %> 
<%@ MasterType virtualpath="~/masterpages/ControlHolder.Master" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %>
 
<asp:Content ID="ContentMain" ContentPlaceHolderID="cntControl" Runat="Server">
      
<telerik:RadChart ID="radChart1" runat="server" Width="700px" AutoLayout="True" 
        Skin="Default2006">
              
        <Series>
<telerik:ChartSeries Name="Series 1">
    <Appearance>
        <FillStyle MainColor="150, 150, 150" SecondColor="194, 194, 194">
        </FillStyle>
        <Border Color="Silver" />
    </Appearance>
            </telerik:ChartSeries>
<telerik:ChartSeries Name="Series 2">
    <Appearance>
        <FillStyle MainColor="215, 215, 214" SecondColor="241, 241, 241">
        </FillStyle>
        <Border Color="Silver" />
    </Appearance>
            </telerik:ChartSeries>
</Series>
        <PlotArea>
            <XAxis>
                <Appearance Color="Silver" MajorTick-Color="Silver">
                    <MajorGridLines Color="Silver" />
                </Appearance>
            </XAxis>
            <YAxis>
                <Appearance Color="Silver" MajorTick-Color="Silver" 
                    MinorTick-Color="Silver">
                    <MajorGridLines Color="Silver" />
                    <MinorGridLines Color="224, 224, 224" />
                </Appearance>
            </YAxis>
            <Appearance Dimensions-Margins="18%, 22%, 12%, 10%">
                <FillStyle MainColor="White" SecondColor="White" FillType="Solid">
                </FillStyle>
                <Border Color="Silver" />
            </Appearance>
        </PlotArea>
        <Appearance>
            <FillStyle MainColor="WhiteSmoke">
            </FillStyle>
            <Border Color="Silver" />
        </Appearance>
        <ChartTitle>
            <Appearance Position-AlignedPosition="Top">
            </Appearance>
            <TextBlock>
                <Appearance TextProperties-Color="Gray">
                </Appearance>
            </TextBlock>
        </ChartTitle>
        <Legend>
            <Appearance Dimensions-Margins="18%, 1%, 1px, 1px">
                <Border Color="Silver" />
            </Appearance>
        </Legend>
              
        </telerik:RadChart>
        <br />
        <br />
  
    </asp:Content>

and the aspx.cs page:

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
  
                DataTable tbl = new DataTable();
                DataColumn col = new DataColumn("Value");
                col.DataType = typeof(int);
                tbl.Columns.Add(col);
                col = new DataColumn("Date");
                col.DataType = typeof(double);
                tbl.Columns.Add(col);
  
                tbl.Rows.Add(new object[] { 5, DateTime.Today.ToOADate() });
                tbl.Rows.Add(new object[] { 4, DateTime.Today.AddDays(1).ToOADate() });
                tbl.Rows.Add(new object[] { 3, DateTime.Today.AddDays(2).ToOADate() });
                tbl.Rows.Add(new object[] { 6, DateTime.Today.AddDays(3).ToOADate() });
                tbl.Rows.Add(new object[] { 3, DateTime.Today.AddDays(4).ToOADate() });
                tbl.Rows.Add(new object[] { 6, DateTime.Today.AddDays(5).ToOADate() });
  
                ChartSeries ser = new ChartSeries("Value");
                ser.DataYColumn = "Value";
                ser.DataXColumn = "Date";
                radChart1.Series.Add(ser);
  
                radChart1.PlotArea.XAxis.IsZeroBased = false;
                radChart1.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.ShortDate;
  
                radChart1.DataSource = tbl;
                radChart1.DataBind();
            }
        }

Anyone have any ideas why this is happening?

Thanks,

Peter

Peter
Top achievements
Rank 1
 answered on 20 Jul 2012
1 answer
98 views
I have implemented a RadTabStrip and connected RadMultiPage.  The contents of each MultiPage are similar but have different purposes. 
For example purposes, let's say that the page contains the shopping list of a household for a given day where: Tab 0 = Fruit , Tab 1 = Vegetables, and Tab 2 = Dairy.

Each day the user will go onto the appropriate tab pages to enter the quantities of items purchased.  Some days all 3 tab pages will have data entered, other days there'll just be 2 of the 3 used, and still other days only 1 of the 3 will have anything recorded.

I've introduced logic so that the first of the 3 tab pages with any data on it will be preset when the user returns to review the data.  My initial investigation suggests that I must set the SelectedIndex property of BOTH the TabStrip AND the MultiPage, as in this example:

          RadTabStrip1.SelectedIndex = initialActiveTab;
          RadMultiPage1.SelectedIndex = initialActiveTab;

I wouldn't have thought that I need to do this as I thought the TabStrip and MultiPage were internally connected in a sense.  But I wanted to double-check here on the Telerik forums to be sure.

Robert
Kate
Telerik team
 answered on 20 Jul 2012
2 answers
106 views


<telerik:RadGrid ID="UserTicketGrid" runat="server" AllowSorting="True"<br>                                        AllowPaging="True" PageSize="5" CellSpacing="0"  <br>                                         Width="600px"   OnUpdateCommand="UserTicketGrid_UpdateCommand" AllowAutomaticUpdates="false"><br>                                          <br>                                            <ClientSettings><br>                                            <br>                                            <Selecting AllowRowSelect="true"/><br>                                            <ClientEvents OnRowClick="rowClick" OnCommand="oncommand" /><br>                                            </ClientSettings><br>                                           <MasterTableView EditMode="InPlace" AutoGenerateColumns="false"><br>                                          <br>                                           <Columns><br>                                         <telerik:GridEditCommandColumn  UniqueName="EDIT" HeaderText="<%$Resources:Resource,edit  %>" ButtonType="ImageButton" EditImageUrl="App_Themes/WebPortalTheme/images/edit_icon.png"/><br>                                           <telerik:GridBoundColumn DataField="SUPP_SERV_ID" Display="false" ReadOnly="true" HeaderText="ID" UniqueName="SUPP_SERV_ID"></telerik:GridBoundColumn><br>                                           <telerik:GridBoundColumn DataField="SUPP_SERV_TITLE"  HeaderText="<%$Resources:Resource,gridtitle  %>" UniqueName="TITLE" ReadOnly="true"></telerik:GridBoundColumn><br>                                           <telerik:GridDropDownColumn  DataField="TICKET_STATUS_ID"    DataSourceID="ds_TICKETStatus"  HeaderText="<%$Resources:Resource,status  %>"<br>                                           UniqueName="STATUS_ID" ListTextField="TICKET_STATUS_NAME" ListValueField="TICKET_STATUS_ID"></telerik:GridDropDownColumn><br>                                           <telerik:GridBoundColumn DataField="SUPP_SERV_RATE" HeaderText="<%$Resources:Resource,rate  %>" UniqueName="RATE" ReadOnly="true"> </telerik:GridBoundColumn><br>                                           <telerik:GridBoundColumn DataField="SUPP_SERV_DATE_POSTED" HeaderText="<%$Resources:Resource,dateposted  %>" UniqueName="POSTEDDATE" ReadOnly="true"></telerik:GridBoundColumn><br>                                           <telerik:GridBoundColumn DataField="ISPUBLIC" HeaderText="<%$Resources:Resource,ispublic %>" UniqueName="ISPUBLIC" ReadOnly="true"></telerik:GridBoundColumn><br>                                           </Columns><br>                                            <br>                                           </MasterTableView><br>                                       </telerik:RadGrid><br>

code behind:


UserDataT = WebsiteDataHelper.GetUserTickets(UserID, type, realID, versionID);<br>            if (UserDataT.Rows.Count != 0)<br>            {<br>                GridIsEmpty.Style["display"] = "none";<br>                <br>                UserTicketGrid.DataSource = UserDataT;<br>                UserTicketGrid.DataBind();<br>             }<br><br>protected void UserTicketGrid_UpdateCommand(object sender, GridCommandEventArgs e)<br>    {<br><br>/// i need to access GridDropDownColumn selected value here how can i acheive this<br><br>   }

Bassem
Top achievements
Rank 1
 answered on 20 Jul 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?