Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
244 views
How to find the detail table in ItemCommand Event in radgrid?
Princy
Top achievements
Rank 2
 answered on 04 Mar 2011
5 answers
80 views
Hi,
we are using RadControls for ASP.NET AJAX Q3 2010 in SharePoint 2010 custom user controls.
In general, if I have a scheduler in a user control and after adding the scripts programmatically as posted here (asp-updatepanel-and-radscheduler-issues) it works fine with update panel and the default ajax script manager of sharepoint.
The problem starts when using a RadTabStrip that loads to the RadMultiPage user controls programmatically. When the user selects the tab that loads a user control that contains a scheduler control then a javascript error occurs ('b.TouchScrollExtender' is null or not an object).
If I don't include the RadTabStrip into an update panel then I can select another tab and navigate away from the tab with the scheduler control, but if I use update panel or even RadAjaxManager and AddAjaxSetting programmataically then I cannot navigate away and do any other action.

Thank you in advance,
Ilias
Kalina
Telerik team
 answered on 04 Mar 2011
3 answers
138 views
I have a horizontal Gantt chart with a single series date data loaded for the two YAxis'. I'd like to be able to turn on the XAxis MajorGridLines so that a line appears from left side of the chart to right in order to make the XAxis item labels line up with the bars.

Is this possible?

My chart is below:
<telerik:RadChart ID="radchartPCSUserItems" Width="910" EnableViewState="False" runat="server" Skin="Web20" 
        SeriesOrientation="Horizontal" Legend-Visible="false" AutoLayout="false">
    <Series>
        <telerik:ChartSeries Type="Gantt" Name="Series 1">
        </telerik:ChartSeries>                
    </Series>
    <PlotArea Appearance-Dimensions-Width="700">
        <YAxis IsZeroBased="False" AutoScale="False">
            <Appearance MinorGridLines-Visible="false">                        
                <LabelAppearance RotationAngle="60" Position-AlignedPosition="top"></LabelAppearance>
            </Appearance>
        </YAxis>
        <YAxis2 IsZeroBased="False" AutoScale="False" >
              
        </YAxis2>
              
        <XAxis AutoScale="False" Step="10">
            <AxisLabel TextBlock-Text="Item"></AxisLabel>
            <Appearance MajorGridLines-Visible="true">
                <LabelAppearance Position-AlignedPosition="left"></LabelAppearance>
            </Appearance>
        </XAxis>
        <Appearance Dimensions-Margins="2px, 3px, 5px, 25%" Dimensions-Paddings="0%, 0%, 5px, 0%" ></Appearance>
    </PlotArea>
    <Legend Visible="False"></Legend>
    <Appearance Border-Visible="False"></Appearance>
    <ChartTitle Visible="False"></ChartTitle>
</telerik:RadChart>

My chart

private void BindGanttChart(PCSUserItemCollection pcsUserItemCol)
 
    DateTime dtMaxDate = pcsUserItemCol[0].DueDate;
    DateTime dtMinDate = pcsUserItemCol[0].StartDate;
  
    foreach(PCSUserItem useritem in pcsUserItemCol)
      
        if (useritem.DueDate > dtMaxDate) // get the max date
        {    
            dtMaxDate = useritem.DueDate;
        }
  
        if (dtMinDate > useritem.StartDate) // get the min date
        {
            dtMinDate = useritem.StartDate;
        }
  
        // Create the Chart Data Points
        Telerik.Charting.ChartSeriesItem chartItem = new Telerik.Charting.ChartSeriesItem();
  
        chartItem.YValue = useritem.StartDate.ToOADate();
        chartItem.YValue2 = useritem.DueDate.ToOADate();
  
        chartItem.Label.TextBlock.Text = useritem.DueDate.ToShortDateString();
        chartItem.Label.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Arial", 7, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);        
  
        chartItem.Name = useritem.ID.ToString();
  
        radchartPCSUserItems.Series[0].Items.Add(chartItem);
  
        // Set the X-Axis label's text
        Telerik.Charting.ChartAxisItem chartAxisItem = new Telerik.Charting.ChartAxisItem();
        chartAxisItem.TextBlock.Text = useritem.Title;
          
        radchartPCSUserItems.PlotArea.XAxis.Items.Add(chartAxisItem);
    }
  
    // Define the Chart MinVal, MaxVal & Step (Scale)
    if (dtMaxDate != DateTime.MinValue)
    {
        radchartPCSUserItems.PlotArea.YAxis.Step = 30;
        radchartPCSUserItems.PlotArea.YAxis.MinValue = dtMinDate.AddMonths(-1).ToOADate();
        radchartPCSUserItems.PlotArea.YAxis.MaxValue = dtMaxDate.AddDays(30).ToOADate();
  
        radchartPCSUserItems.PlotArea.YAxis2.Step = 30;
        radchartPCSUserItems.PlotArea.YAxis2.MinValue = dtMinDate.AddMonths(-1).ToOADate();
        radchartPCSUserItems.PlotArea.YAxis2.MaxValue = dtMaxDate.AddDays(30).ToOADate();
    }
  
    radchartPCSUserItems.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;
    radchartPCSUserItems.DataBind();       
}
Ves
Telerik team
 answered on 04 Mar 2011
1 answer
100 views
Hi 
    I am using an tool to  scan my web application . The reports states that  telerik.web.ui.webresource.axd exposes data to the user.Is there any way to protect them?



Regards
Deepan
Georgi Tunev
Telerik team
 answered on 04 Mar 2011
2 answers
232 views
Hi,

I have a requirement where Root Category Node should always be in Expanded mode in RadTreeView control.
I have written the code to show it in expanded mode when RadTreeView is loaded first time but to give it a better meaning I also need to remove the Collapse Icon from the Root Node which is always present there.

I tried updating Node element from code behind but could not find any property like "Collapsable" which I can set to false for this particular node.

Please let me know if there is any attribute or customized code exists for this.

Thanks in advance
Gaurav Jain
Gaurav
Top achievements
Rank 1
 answered on 04 Mar 2011
1 answer
52 views
Hi

I am using Radasynchupload control to upload multiple files, it working fine,but how can i read those files

I am using it in sharepoint and the uploaded file get collected in temp folder in App_Data in encrypted form.

please help!!
Its urdent!!
Thanks! 
Kalina
Telerik team
 answered on 04 Mar 2011
1 answer
127 views
Hi,
I have a line graph and at each point on the line graph i would like marker to be displayed next to the value. Not only that but is it also possible to have a custom marker?


Thanks

Simon Allport
  <telerik:RadChart ID="rcDesignCapabilities1" runat="server" DefaultType="Line" 
            AutoLayout="True" AutoTextWrap="True" SeriesOrientation="Horizontal">
        <Appearance>
            <FillStyle MainColor="White">
            </FillStyle>
            <Border Visible="False" Color="white" />
        </Appearance>
        <Series>
<telerik:ChartSeries Name="Series 1" Type="Line">
  
  
    <Appearance>
        <FillStyle MainColor="150, 150, 150" SecondColor="194, 194, 194">
        </FillStyle>
        <Border Color="white" />
    </Appearance>
            </telerik:ChartSeries>
<telerik:ChartSeries Name="Series 2" Type="Line">
    <Appearance>
        <FillStyle MainColor="white" SecondColor="241, 241, 241">
        </FillStyle>
        <Border Color="white" />
    </Appearance>
            </telerik:ChartSeries>
</Series>
          
<Legend Visible="False">
<Appearance Dimensions-Margins="18%, 1%, 1px, 1px" Visible="False">
  
<Border Color="white"></Border>
</Appearance>
</Legend>
  
        <PlotArea>
              
            <XAxis VisibleValues="Positive" IsZeroBased="False" AutoScale="False" 
                AutoShrink="False" MaxItemsCount="7" MaxValue="5" MinValue="1" Step="1">
                <Appearance Color="Silver" MajorTick-Color="Silver">
                 
<MajorGridLines Color="Silver"></MajorGridLines>
  
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="270">
                    </Appearance>
                </AxisLabel>
                <Items>
                    <telerik:ChartAxisItem Value="1">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="2">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="3">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="4">
                    </telerik:ChartAxisItem>
                    <telerik:ChartAxisItem Value="5">
                    </telerik:ChartAxisItem>
                </Items>
            </XAxis>
            <YAxis MaxItemsCount="5" AxisMode="Extended" IsLogarithmic="True" 
                IsZeroBased="False" LogarithmBase="5" Visible="True" 
                VisibleValues="Positive">
                 
<Appearance Color="Silver" MajorTick-Color="Silver" MinorTick-Color="Silver">
<MajorGridLines Color="Silver"></MajorGridLines>
    <MinorGridLines Color="224, 224, 224" />
</Appearance>
  
                <AxisLabel>
                    <Appearance RotationAngle="0">
                    </Appearance>
                    <Marker Visible="True">
                    </Marker>
                </AxisLabel>
            </YAxis>
              
         
<YAxis2>
<AxisLabel>
<Appearance RotationAngle="0"></Appearance>
  
</AxisLabel>
</YAxis2>
  
<Appearance Dimensions-Margins="18%, 22%, 12%, 10%">
<FillStyle MainColor="White" FillType="Solid" SecondColor="White"></FillStyle>
  
<Border Color="white" Visible="False"></Border>
</Appearance>
              
         
        </PlotArea>
          
<ChartTitle Visible="False">
<Appearance Position-AlignedPosition="Top" Visible="False">
</Appearance>
  
<TextBlock>
<Appearance TextProperties-Color="Gray" Border-Visible="False">
<Border Visible="False"></Border>
    </Appearance>
</TextBlock>
</ChartTitle>
          
</telerik:RadChart>
public DataTable DesignCapabilities_1(DataTable ReportTable)
        {
            DataTable cap1dt = new DataTable();
            cap1dt.Columns.Add("ID");
            cap1dt.Columns.Add("Name");
            cap1dt.Columns.Add("Type");
            cap1dt.Columns.Add("Value");
  
  
  
            foreach (DataRow dr in ReportTable.Rows)
            {
  
  
                object[] row1 = new object[4];
                row1[0] = "2";
                row1[1] = "Sample Average";
                row1[2] = "Technical Design";
                row1[3] = Decimal.Round(Convert.ToDecimal(dr["AvgTechnicalDesignCapabilityScore"].ToString()),2);
  
                object[] row2 = new object[4];
                row1[0] = "2";
                row2[1] = "Your Company";
                row2[2] = "Technical Design";
                row2[3] = Decimal.Round(Convert.ToDecimal(dr["TechnicalDesignCapabilityScore"].ToString()),2);
  
  
                object[] row3 = new object[4];
                row3[0] = "2";
                row3[1] = "Sample Average";
                row3[2] = "User Focused";
                row3[3] = Decimal.Round(Convert.ToDecimal(dr["sumUserDesignCapabilityScore"].ToString()),2);
  
                object[] row4 = new object[4];
                row4[0] = "2";
                row4[1] = "Your Company";
                row4[2] = "User Focused";
                row4[3] = Decimal.Round(Convert.ToDecimal(dr["UserDesignCapabilityScore"].ToString()),2);
  
                object[] row5 = new object[4];
                row5[0] = "2";
                row5[1] = "Sample Average";
                row5[2] = "Promotional";
                row5[3] = Decimal.Round(Convert.ToDecimal(dr["AvgPromotionalIdentityCapabilityScore"].ToString()),2);
  
  
                object[] row6 = new object[4];
                row6[0] = "2";
                row6[1] = "Your Company";
                row6[2] = "Promotional";
                row6[3] = Decimal.Round(Convert.ToDecimal(dr["PromotionalIdentityCapabilityScore"].ToString()),2);
  
  
  
                object[] row7 = new object[4];
                row7[0] = "2";
                row7[1] = "Sample Average";
                row7[2] = "Strategic";
                row7[3] = Decimal.Round(Convert.ToDecimal(dr["AvgStrategicCapabilityScore"].ToString()),2);
  
                object[] row8 = new object[4];
                row8[0] = "2";
                row8[1] = "Your Company";
                row8[2] = "Strategic";
                row8[3] = Decimal.Round(Convert.ToDecimal(dr["StrategicCapabilityScore"].ToString()), 2);
  
  
                cap1dt.Rows.Add(row1);
                cap1dt.Rows.Add(row2);
                cap1dt.Rows.Add(row3);
                cap1dt.Rows.Add(row4);
                cap1dt.Rows.Add(row5);
                cap1dt.Rows.Add(row6);
                cap1dt.Rows.Add(row7);
                cap1dt.Rows.Add(row8);
  
            }
  
            return cap1dt;
  
        }
DesignCompassBusiness.report rep = new DesignCompassBusiness.report();
            
          radchart1.DataSource = rep.DesignCapabilities_1(dt);
          radchart1.DataGroupColumn = "Name";
          radchart1.PlotArea.XAxis.DataLabelsColumn = "Type";
          radchart1.PlotArea.YAxis.MaxValue = 0;
          radchart1.DataBind();
Vladimir Milev
Telerik team
 answered on 04 Mar 2011
1 answer
66 views
This Code Project: http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx

It works by itself when I run it, but I can't get it to work once I have converted it over to using a LinqDataSource on the page.  Do you guys have an example of this, but using modern constructs like LINQ and LinqDataSource?

Thanks!
Pavlina
Telerik team
 answered on 04 Mar 2011
1 answer
33 views
Hi,

We are using the Grid with a LinqDataSource and whenever we group by a field the group footer summaries are shown for a per page basis (when expanded), but when we collapse the group only the visible records are collapsed and not the entire group across pages, Can this functionality be achieved, if so How ?

Naresh Jois
Pavlina
Telerik team
 answered on 04 Mar 2011
1 answer
61 views
HI ,
I encounter this error  when i want my embeded radcombox box to show the previous selected value in RadGrid.
The error message is as below:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'DataValue'. where DataRule is the value i pass in.

Below is my coding:
   <ajax:RadGrid ID="rgdRptAct" runat="server" DataSourceID="sqlCust" AutoGenerateColumns="false" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowPaging="true" PageSize="3">
       <SortingSettings SortToolTip="<%$ Resources:Resource, Sort %>" />
       <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="true">
           <Selecting AllowRowSelect="True" />
       </ClientSettings>
       <MasterTableView EditMode="InPlace" DataKeyNames="Cno,CustPrefix,Action" CommandItemDisplay="Top" AllowSorting="True" NoMasterRecordsText="<%$ Resources:Resource, Search_Display %>">  
           <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{2}{3}{4}Page {0} of {1}" PageSizeLabelText="" AlwaysVisible="true" NextPageToolTip="<%$ Resources:Resource, NextPage %>"  PrevPageToolTip="<%$ Resources:Resource, PreviousPage %>" LastPageToolTip="<%$ Resources:Resource, LastPage %>" FirstPageToolTip="<%$ Resources:Resource, FirstPage %>"/>
 <Columns>
              <ajax:GridTemplateColumn UniqueName="Action" HeaderText="* Action" SortExpression="LMUser" HeaderStyle-Width="140px" ItemStyle-VerticalAlign="Top">
                   <ItemTemplate>
                       <%#DataBinder.Eval(Container.DataItem, "Action")%> 
                   </ItemTemplate>
                   <EditItemTemplate>
                           <ajax:RadComboBox ID="DdlAction" runat="server" AutoPostBack="False" AllowCustomText="False"  DataSourceID="sqlDllAction"
                           AppendDataBoundItems="true"
                           DataTextField="DataValue"
                           DataValueField="DataValue" 
                           SelectedValue='<%# DataBinder.Eval(Container.DataItem, "DataValue") %>'>
                         
                           </ajax:RadComboBox>
                    
                   </EditItemTemplate>
               </ajax:GridTemplateColumn>
 
</Columns>
Can someone please advice what have i miss out here.
My coding is working fine without 
SelectedValue='<%# DataBinder.Eval(Container.DataItem, "DataValue") %>'>

The error come out when i have this piece of code.

Help Please!!

Shinu
Top achievements
Rank 2
 answered on 04 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?