Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
666 views
Hi,

I would like to plot a column chart similar to the one on your example : http://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/columnchart/defaultcs.aspx

In my case the X axis is the date and the Y axis is the Vehicle count as you can see from the attached image.

I am able to plot the date together with the vehicle count column on the Y axis as you can see on the attachment without any problems.

However i am unable to plot per day per the Nationality column as per my attachment with data. I am currently binding from SqlDataSource. 

In effect for each day i should have 5/6 different columns one per nationality.

Can you please assist as to how to accomplish this task?

Thanks.


Danail Vasilev
Telerik team
 answered on 14 Jul 2014
5 answers
324 views
Hi Team,
I am facing issue in production server as follows. Please help me on this. bellow are the error details. 

Message: Object doesn't support this property or method
Line: 6
Char: 18774
Code: 0
URI: https://localhost/Mysite/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afa6755fd-da1a-49d3-9eb4-1e473e780ecd%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2014.1.225.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3aed076519-5e60-4916-a089-ba7a0f56b711%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a2003d0b8%3ac128760b%3a88144a7a%3a1e771326%3ac8618e41%3a1a73651d%3a333f8d94%3a7165f74%3aeaae47ab%3a92fe8ea0%3afa31b949%3a19620875%3a874f8ea2%3af46195d3%3a490a9d4e%3ab7778d6c%3abd8f85e4
Pavlina
Telerik team
 answered on 14 Jul 2014
3 answers
203 views
hi
the page with RadSplitter with Height="100%"  never resize and fit Height to page in diffrent resolution . for example in page with Height=760 is diffrent seen page with Height=720 and .....how to fit to page in all resolution with RadSplitter?my code:    <telerik:RadSplitter ID="RadSplitter1" runat="server"       Height="100%" Width="100%">
        <telerik:RadPane ID="navigationPane" runat="server" ForeColor="White" Height="100%" Scrolling="None"
             Width="200px" CssClass="treeViewNavigate">
//my code
        </telerik:RadPane>
        <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward"  Height="100%">
        </telerik:RadSplitBar>
        <telerik:RadPane ID="contentPane" runat="server" Height="100%">
//my code
   </telerik:RadPane>
    </telerik:RadSplitter>
Vessy
Telerik team
 answered on 14 Jul 2014
1 answer
109 views
Hi All,

I am having a usercontrol with dropdowntree control . I'm using that control in my aspx page inside asp formview contol. when i'm trying to use that usercontrol if in asp.ObjectDataSource , im unable to access that.

  <asp:ControlParameter Name="AreaId" Type="Int32" ControlID="AreaList" PropertyName="AreaID"   />

In this "AreaList" is my usercontrol.  but in runtime it show the error ,

 Error Message:Could not find control 'AreaList' in ControlParameter 'AreaId'.

how to access my usercontrol in ObjectDataSource ?
Peter Filipov
Telerik team
 answered on 14 Jul 2014
1 answer
360 views
We seem to found a cosmetic glitch in a grid with BatchEdit mode and
<ClientSettings Selecting-AllowRowSelect="true" />
<BatchEditingSettings EditType="Row" OpenEditingEvent="Click" />

When an existing row is selected it is highlighted by applying <tr class="rgAltRow rgSelectedRow">
When a new record is added and activated the selection stays on the row selected before. You have to click on the new row outside of any input controls (e.g. texboxes) to make this row selected. However, when you click to any input in existing rows then that row becomes selected.
It's is a little inconsistent.
Konstantin Dikov
Telerik team
 answered on 14 Jul 2014
3 answers
465 views
  Am I missing something?  MinValue and MaxValue do not appear to be members of GridNumericColumn.  A search of the forums doesn't find much revealing either.  Is there some sort of workaround that does not involve using a Template Column?  I would prefer to use the GridNumericColumn for its DefaultInsertValue which takes a bit longer to implement with the template column.
Eyup
Telerik team
 answered on 14 Jul 2014
6 answers
230 views
hi
when the webpage is postback the treeview , never show which, node is selected before the postback the page.
how to save state tree view node selected, after postback page?
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2014
7 answers
908 views
So been looking at telerik sites to but each time the page comes up as missing for passing values thru query string to radwindow.
What I need to do is this, I need to pass a value into my radwindow to fill out a checkbox list with items that are checked per what region they pick on the radgrid.  So if they pick on a region and it has stations the radwindow will open with those stations already picked in the checkboxlist.   How can I do this. 


<telerik:RadGrid ID="myRadGrid" runat="server" Width="40%" Skin="Web20" CssClass="dvGridWrapper">
           <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRegionID" CommandItemDisplay="Top">
               <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
               <ItemStyle HorizontalAlign="Center"/>
               <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                   <Columns>
                       <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                       <telerik:GridTemplateColumn>
                           <ItemTemplate>
                               <asp:LinkButton ID="lnkAssign" runat="server" CommandArgument='<%# Bind("strRegionCode")%>' Text="Assign Teams" CommandName="Assign" OnClientClick='<%# String.Format("addAdminWin({0}, {1}); return false;", Eval("intRegionID"), 2)%>'></asp:LinkButton>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>



I am filling out hte Radwindow right now on page load but I need the items checked that actually need to be checked from the reagion that they pick.
Private Sub FIllCb()
      sql = "select t.intTeamID, t.strTeamCode + ' - ' + t.strTeamName + ' (' + r.strRegionCode + ')' from Team as t left outer join Region as r on t.intRegionID = r.intRegionID"
 
      buildDD(sql, cbTeams)
  End Sub

Marin Bratanov
Telerik team
 answered on 14 Jul 2014
5 answers
227 views
Hi,
I'm trying to populate the nestedviewtemplate in my grid..

If I use <# Eval("Code")%> in NestedViewTemplate I've got an error
<telerik:RadGrid ID="HomeRadGrid" runat="server" ClientDataSourceID="RadClientDataSource1"
             EnableEmbeddedSkins="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True"
             Skin="MySkin" ShowGroupPanel="True" PageSize="10">
             <PagerStyle Mode="NextPrevAndNumeric" />
             <MasterTableView AutoGenerateColumns="False" ClientDataKeyNames="Id" HierarchyLoadMode="Client">                 
                 <NestedViewTemplate>
                     <div class="homeBackground">
                         <div style="float: left; padding-left: 10px; padding-top: 10px">
                             <asp:Image ID="ItemImage" runat="server" ImageUrl='<%# GetItemImageUrl(Container) %>'
                                 Width="150px" meta:resourcekey="ItemImageResource1" />
                         </div>
                         <div style="float: left; padding-left: 10px; width: 50%">
                             <div class="homeTitle">
                                 <asp:Label ID="CodeLabel" runat="server"></asp:Label>
                             </div>
                             <span style="color: #555555">
                                 <asp:Label ID="DescriptionLabel" runat="server"></asp:Label>
                             </span>
                             <hr class="lineSeparator" />
                             <table width="100%" class="homeInfo">
                                 <tr>
                                     <td>
                                         <strong>
                                             <asp:Label ID="SiteLabel" runat="server" meta:resourcekey="SiteLabelResource1">Site</asp:Label>:</strong>
                                         <asp:Label ID="SiteLabel" runat="server"></asp:Label>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <strong>
                                             <asp:Label ID="PlateLabel" runat="server" meta:resourcekey="PlateLabelResource1">Plate</asp:Label>:</strong>
                                         <asp:Label ID="TargaLabel" runat="server"></asp:Label>
                                     </td>
                                 </tr>
                             </table>
                         </div>
                         <div style="float: right; padding-right: 10px; padding-left: 10px; padding-top: 10px">
                             <div style="width: 150px; height: 150px; border: solid 1px black" id='smallmap'>
                             </div>
                         </div>
                         <div style="clear: both">
                         </div>
                     </div>
                 </NestedViewTemplate>
                 <Columns>
                     <telerik:GridBoundColumn DataField="CompanyCode" HeaderText="Company Code" SortExpression="CompanyCode"
                         ShowFilterIcon="false" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains"
                         UniqueName="CompanyCode" Visible="true" meta:resourcekey="GridBoundColumnResource1">
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Code" HeaderText="Project" SortExpression="Code"
                         ShowFilterIcon="false" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains"
                         UniqueName="CdcCode" Visible="true" meta:resourcekey="GridBoundColumnResource2">
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Site" HeaderText="Site" SortExpression="Site"
                         AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                         ItemStyle-Width="50px" FilterControlWidth="30px" UniqueName="Site" Visible="true"
                         meta:resourcekey="GridBoundColumnResource3">
                         <ItemStyle Width="50px"></ItemStyle>
                     </telerik:GridBoundColumn>     
                     ...
                 </Columns>             
             </MasterTableView>
             <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="True" AllowColumnsReorder="false">
                 <ClientEvents OnRowDblClick="RowDblClick" OnHierarchyExpanded="LoadSmallMap" OnHierarchyExpanding="CollapseOtherRows">
                 </ClientEvents>
                 <Selecting AllowRowSelect="true"></Selecting>
             </ClientSettings>
         </telerik:RadGrid>

   <telerik:RadClientDataSource ID="RadClientDataSource1" runat="server" AllowBatchOperations="true">
        <ClientEvents OnChange="LoadBigMap" />
        <DataSource>
            <WebServiceDataSourceSettings>
                <Select Url="load_map.asmx/GetHomeData" RequestType="Post" DataType="JSON" ContentType="application/json; charset=utf-8" />
            </WebServiceDataSourceSettings>
        </DataSource>
        <Schema DataName="d">
        </Schema>
        <Schema>
            <Model>
                <telerik:ClientDataSourceModelField FieldName="Id" DataType="Number" />
                <telerik:ClientDataSourceModelField FieldName="CompanyCode" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Code" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Site" DataType="String" />
...
            </Model>
        </Schema>
    </telerik:RadClientDataSource>

Thanks
Mattia
Top achievements
Rank 2
 answered on 14 Jul 2014
3 answers
308 views
Hi
I'm trying to display an image in a GridImageColumn.
I tried with
DataImageUrlFields="FieldImgUrl"
where FieldImgUrl is a field of my object (FieldImgUrl = "/PHP/icon/accept.png")
but no image is shown
<telerik:GridImageColumn HeaderText="Field1" HeaderTooltip="Field1" AllowFiltering="false"
                       DataImageUrlFields="FieldImgUrl" UniqueName="Field1" ItemStyle-Width="16px" >
                       </telerik:GridImageColumn>


But if I write directly ImageUrl = "/PHP/icon/accept.png" it works...
<telerik:GridImageColumn HeaderText="Field1" HeaderTooltip="Field1" AllowFiltering="false"
                       ImageUrl="/PHP/icon/accept.png" UniqueName="Field1" ItemStyle-Width="16px" >
                       </telerik:GridImageColumn>



Thanks


Viktor Tachev
Telerik team
 answered on 14 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?