Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
195 views
Hello,
I am using codebehind to add items to the chart because I can't make it group the items the way I want it to when using a LINQ query. I attempted to use your "Dynamic Databinding" example on the website to try and help me accomplish what I need to but found it utterly confusing (would be nice if you would comment your examples).

Anyway, my chart has 2 series - 1 for open orders and 1 for in progress. The chart works fine in the aspect of displaying bars however I would like to see the customer names below the bars on the X axis and I can't for the life of me figure out how to do this. I tried using ChartAxisItem and adding to the collection but it doesn't do anything.

Please help.

My grid aspx code:
    <telerik:RadChart ID="rcOrders" runat="server" Skin="LightBlue"  
        Width="710px" SeriesOrientation="Vertical" AutoLayout="false"
        <Series> 
            <telerik:ChartSeries Name="Open"
            </telerik:ChartSeries> 
        </Series> 
        <Series> 
            <telerik:ChartSeries Name="WIP"
            </telerik:ChartSeries> 
        </Series> 
        <PlotArea> 
            <XAxis> 
                <AxisLabel> 
                    <Appearance RotationAngle="270"
                    </Appearance> 
                </AxisLabel> 
            </XAxis> 
            <YAxis> 
                <AxisLabel> 
                    <Appearance RotationAngle="0"
                    </Appearance> 
                </AxisLabel> 
            </YAxis> 
            <YAxis2> 
                <AxisLabel> 
                    <Appearance RotationAngle="0"
                    </Appearance> 
                </AxisLabel> 
            </YAxis2> 
        </PlotArea> 
        <ChartTitle TextBlock-Visible="false"></ChartTitle> 
    </telerik:RadChart> 

My codebehind code which adds the values to the chart:
var orderStatusesByCompanyQuery = from o in database.Orders 
                                  join c in database.Companies on o.CompanyId equals c.CompanyId 
                                  join os in database.OrderStatuses on o.StatusId equals os.StatusId 
                                  where o.Active == true && c.Active == true && os.Active == true && os.StatusId != 3 
                                  group o 
                                    by new { CompanyId = o.CompanyId, CompanyName = c.ShortDisplayName, StatusId = os.StatusId, StatusDisplayName = os.ShortDisplayName } 
                                    into grouping 
                                  orderby grouping.Key.CompanyName 
                                  select new 
                                  { 
                                      CompanyId = grouping.Key.CompanyId, 
                                      CompanyName = grouping.Key.CompanyName, 
                                      StatusId = grouping.Key.StatusId, 
                                      StatusDisplayName = grouping.Key.StatusDisplayName, 
                                      StatusCount = grouping.Count() 
                                  }; 
 
foreach (var orderStatusByCompany in orderStatusesByCompanyQuery) 
    // adding this ChartAxisItem does nothing 
    ChartAxisItem chartAxisItem = new ChartAxisItem(); 
    chartAxisItem.Value = orderStatusByCompany.CompanyId; 
    chartAxisItem.TextBlock.Text = orderStatusByCompany.CompanyName; 
    rcOrders.PlotArea.XAxis.Items.Add(chartAxisItem); 
 
    ChartSeriesItem chartSeriesItem = new ChartSeriesItem(); 
    chartSeriesItem.Label.TextBlock.Text = orderStatusByCompany.StatusCount.ToString(); 
    chartSeriesItem.XValue = orderStatusByCompany.CompanyId; 
    chartSeriesItem.XValue2 = orderStatusByCompany.StatusId; 
    chartSeriesItem.YValue = orderStatusByCompany.StatusCount; 
    rcOrders.Series.GetByName(orderStatusByCompany.StatusDisplayName).Items.Add(chartSeriesItem); 
Nate Pinchot
Top achievements
Rank 1
 answered on 22 Oct 2008
9 answers
685 views
Hi,
I have upgraded from RadGrid.Net2.dll v5.1.1.0 & Prometheus Telerik.Web.UI v2007.3.1314.35 to RadControls for ASP.NET AJAX Telerik.Web.UI.dll v2008.1.1415.20

I removed the RadGrid.Net2.dll and RadControls RadGrid Theme files from my application.
Created a new reference to the (v2008.1.1415.20) Telerik.Web.UI.dll.
Modified each RadGrid control on each page to use the Telerik.Web.UI name space.

All RadGrid controls are working, but the paging icons & GroupBy sort icons are missing (viewed in VS Design mode & in web browser).
But the column sort order icons do appear!

I presume that it is a setting problem as the Telerik RadGrid Demo's work locally on my machine.

Within the RadGrid properties PagerStyle - FirstPageImageUrl is set to "mvwres://Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Grid.PagingFirst.gif"

Is there any web.config changes that I need to make to allow the icons to appear?

Thanks
William
Celestyn
Top achievements
Rank 1
 answered on 22 Oct 2008
1 answer
150 views
In reference to this demo: http://demos.telerik.com/aspnet/prometheus/ToolTip/Examples/ImageMapToolTipManager/DefaultCS.aspx

The description says to check the App_Code folder for the web service code file but I do not see how to get to that folder.

Is there a location to download the project?
Svetlina Anati
Telerik team
 answered on 22 Oct 2008
1 answer
78 views
Hi
I displayed a asp.net grid on the page Grid.aspx
I created a page with radwindow and set its navigate url as grid.aspx
I load the window on a button click ..Everything works fine.
My issues is,When I select a particular row of the grid(S.No,Description), I need to close the radwindow and i want to populate the values of the selected row cell values in the main page   using code-behind vb.net
Georgi Tunev
Telerik team
 answered on 22 Oct 2008
5 answers
158 views
I have a GridTemplateColumn that has 3 asp buttons all with CommandNames. when clicked, they fire the ItemCommand of the radGrid. I then check  CommandName to see which buttonw as pressed and call some code. In the code I call, at one point I want to show an asp panel that previsously was .Visible=False , so I do the following

Panel1.Visible = True  



but the panel never gets shown. I am using the AjaxManager and have set
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
<rad:AjaxSetting AjaxControlID="radGrid1">
<
UpdatedControls><rad:AjaxUpdatedControl ControlID="radGrid1" LoadingPanelID="AjaxLoadingPanel"><rad:AjaxUpdatedControl ControlID="Panel1">
</UpdatedControls>
</rad:AjaxSetting>

<
/rad:RadAjaxManage>



and just on the page, i have
 
<asp:Panel ID="Panel1" runat="server" Height="230px" Width="415px" class="dialogBox">
<h4>
Do you wish to Continue?</h4><asp:Label ID="Label1" runat="server">Some Text</asp:Label>
<asp:Button 
runat="server" ID="btnContinue" Text="Continue" CssClass="button"><asp:Button runat="server" ID="btnCancel" Text="Cancel" CssClass="button">
</asp:Panel>


What am I doing wrong? Thanks...
Yavor
Telerik team
 answered on 22 Oct 2008
1 answer
129 views
Hi..
I'm using the RadTextBox to copy text to a Word document. When the user types text and hits ENTER .  Sometimes the Carriage Return or <BR> ? is converted to a solid square character. Other times the data from the RadTextBox does not convert or show a solid square character.  If you let the text word wrap and even click "ENTER" the solid square does not show up.
any ideas?
thanks!
Vlad
Telerik team
 answered on 22 Oct 2008
4 answers
155 views
Hi,
   I have a textbox and radcombobox control on a page. The textbox is for zip codes and the radcombo should autocomplete the stores in a zip as i type in the combobox. When i type in some text in combobox it does not seem to take the text I passed in textbox control initially. But if i comeback and change the text in zip textbox (basically enter the same text again) it seems to populate the combobox as expected.  Not sure if I a missing anything. Can someone help me with this please.


Thanks
Dilip
Dilip
Top achievements
Rank 1
 answered on 22 Oct 2008
1 answer
121 views
Hi

I am trying to remove padding within my grid, but nothing happens when i do as below.

No difference at all.


        .GridRow_Vista, .GridRow_Vista td, .GridAltRow_Vista td, .GridEditRow_Vista td, .GridFooter_Vista td, .GridGroupFooter_Vista td, .GridFilterRow_Vista td, .GridHeader_Vista, .ResizeHeader_Vista, .GroupHeader_Vista td  
        {  
            padding0px;  
            margin0px;  
        } 
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2008
2 answers
188 views
Is it possible to disable/hide/remove/make unusable/ect the Insert and Update control in edit mode?
If it is possible, a pointer to a place to look or a quick code sample would be great. :)
Baatezu
Top achievements
Rank 2
 answered on 22 Oct 2008
4 answers
103 views
OK, I have a bizarre issue that I'm hoping someone will have some insight on.

I have a Dot Net Nuke 4.84 web site that allows users to upload files to the server via the RadUpload control on a RadWindow popup (Rad Controls for ASP.NET Ajax).

This process works just fine and the users can upload both .doc and .mp3 files using this approach.

The problem arises when I turn on Friendly URLs on the DNN web site (via Host Settings > Use Friendly Urls).

When I do so, users can still upload .doc files, but they can no longer upload .mp3 files. The RadUploadContext.Current.UploadedFiles.Count == 0 when trying to upload a file with the .mp3 extension.

I'm at a loss as to why this is occurring and how I can get the upload process to work for all files when Friendly URLs is turned on.

Is this a known issue using the RadUpload control for Dot Net Nuke. Any ideas what might be going on and how to fix it?

Thanks in advance,

Jason
Jason
Top achievements
Rank 1
 answered on 22 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?