Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
348 views
Hi.

I am trying to get my x-Axis such that it skips a few days on the labels, such as on RadHTMLChart demo page.  Please advise on how I can achieve this.  Below is a snippet of my code currently.

I get the data from a list containing values and dates.

chrtPerformance.PlotArea.Series.Clear();
chrtPerformance.PlotArea.XAxis.Type = AxisType.Date;
chrtPerformance.PlotArea.XAxis.BaseUnit = DateTimeBaseUnit.Months;
chrtPerformance.PlotArea.XAxis.LabelsAppearance.DataFormatString = "m";
chrtPerformance.PlotArea.XAxis.LabelsAppearance.RotationAngle = 270;
chrtPerformance.PlotArea.XAxis.DataLabelsField = "BatchDate";
 
string type = Settings[NTConstants.CONST_CHART_TYPE].ToString();
if (type == "Area")
{
    var seriesA = new AreaSeries();
    var seriesB = new AreaSeries();
    seriesA.DataFieldY = "CashValue";
    seriesB.DataFieldY = "InstrumentValue";
    seriesA.TooltipsAppearance.ClientTemplate = "#=dataItem.CashValue#, Cash Value";
    seriesB.TooltipsAppearance.ClientTemplate = "#=dataItem.InstrumentValue#, Instrument Value, #=dataItem.BatchDate#";
    seriesA.LabelsAppearance.Visible = false;
    seriesB.LabelsAppearance.Visible = false;
    seriesA.MissingValues = MissingValuesBehavior.Interpolate;
    seriesB.MissingValues = MissingValuesBehavior.Interpolate;
    chrtPerformance.PlotArea.Series.Add(seriesA);
    chrtPerformance.PlotArea.Series.Add(seriesB);
}

Any and all help will be greatly appreciated.

Kind regards.
Leon
Danail Vasilev
Telerik team
 answered on 21 Feb 2014
3 answers
135 views
Hello Friends,

In File Explorer control Grid i go from main directory to sub directory from there i go another directory of sub directory
Like Main directory => Sub Directory => another directory of Sub Directory

When i press back button it go back to Sub Directory
Now i press back button second time it not go back to main directory it remain on same directory


///////////code.cs/////////


        FileExpDocument.ToolBar.Items[0].Visible = true;
        FileExpDocument.ToolBar.Items[1].Visible = false;
        FileExpDocument.ToolBar.Items[2].Visible = false;
        FileExpDocument.ToolBar.Items[9].Visible = false;
        FileExpDocument.ToolBar.Items[6].Visible = false;

       FileExpDocument.ToolBar.OnClientButtonClicked = "OnClientButtonClieck";


///////end///////////////

Here is only Toolbar control related code
in this "OnClientButtonClieck" just set the height of grid and div

when i click first time back button the page_init and Page_load all event fire
But when i click second time no event fire nothing happen


Please help me it is very urgent 
Vessy
Telerik team
 answered on 21 Feb 2014
1 answer
51 views
Hi,
 
I'm using radgrid with with footer containing a textbox which rows are added dynamically in code behind. My problem is while printing the radgrid some of the contents in the textbox should be printed in second page or following page but its not printing and printing a blank page. Following is the code.

Can somebody please help me.
<telerik:GridTemplateColumn UniqueName="Template1" HeaderText="Description">
                                    <ItemTemplate>
                                        
                                        <asp:Label runat="server" ID="lbldesc" Text='<% #Eval("ITEM_DESCRIPTION") %>' />
                                    </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox runat="server" ID="txt" TextMode="MultiLine" Width="95%" style="overflow:hidden" ReadOnly="true" AutoPostBack="false" ></asp:TextBox>
                                            
                                        </FooterTemplate>
                                    </telerik:GridTemplateColumn>

function OnClientClicked(button, args) {
                debugger
                var previewWnd = window.open('about:blank', '', '', false);
                var sh = '<%= ClientScript.GetWebResourceUrl(rdgrdResults.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",rdgrdResults.Skin)) %>';
               
                var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>";
                var htmlcontent = styleStr + "<body>" + $find('<%= rdgrdResults.ClientID %>').get_element().outerHTML + "</body></html>";
              
                previewWnd.document.open();
                previewWnd.document.write(htmlcontent);
                previewWnd.document.close();
                previewWnd.print();
                previewWnd.close();
            }
Kostadin
Telerik team
 answered on 21 Feb 2014
24 answers
2.4K+ views
Hello,

I am trying to create two outside buttons that will collapse and expand rows and detail table rows in a radgrid.

I only need to expand/collapse the rows in the master table and the first nested detail grid table. Here is what I have so far:

<asp:Table runat="server" CellPadding="0" CellSpacing="0">
    <asp:TableRow>
        <asp:TableCell>
            <b><asp:LinkButton runat="server" Text="Collapse All" ID="CollapseAllBtn" OnClick="CollapseAllClick" /></b>
        </asp:TableCell>
        <asp:TableCell style="padding-left:10px">
            <b><asp:LinkButton runat="server" Text="Expand All" ID="ExpandAllBtn" OnClick="ExpandAllClick" /></b>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>


Code behind:
protected void CollapseAllClick(object sender, EventArgs e)
      {
          foreach (GridDataItem item in PNLViewGrid.MasterTableView.Items)
          {
              item.Expanded = false;
              foreach (GridDataItem nestedItem in item.ChildItem.NestedTableViews[0].Items)
              {
                  nestedItem.Expanded = false;
              }
          }
      }
 
      protected void ExpandAllClick(object sender, EventArgs e)
      {
          foreach (GridDataItem item in PNLViewGrid.MasterTableView.Items)
          {
              item.Expanded = true;
              foreach (GridDataItem nestedItem in item.ChildItem.NestedTableViews[0].Items)
              {
                  nestedItem.Expanded = true;
              }
          }
      }

When i click on either of the buttons i get a javascript error. Can someone tell me how to get this to work?

Thanks
Kostadin
Telerik team
 answered on 21 Feb 2014
1 answer
64 views
Hi,

I am new to telerik controls.  We are using  RadControls for ASP.net AJAX Q2 2009.
In one of the page, I am poppingup a window using a ModalPopupExtender.
The modalpopup window  has buttons which postsback. Since I don;t want to post pack the whole page, 
I decided to put it within the updatepanel.  Now It starts giving me error in IE.  But it works fine with Firefox.
The error I get is in Telerik   js.
c.get_request()._get_eventHandlerList()._list.completed.reverse();

Does anyone know how to fix this issue.

By the way I am using VS 2008 3.5,    AjaxControlToolKit 3.5

Thanks
Ravi
subrat nayak
Top achievements
Rank 1
 answered on 21 Feb 2014
3 answers
86 views
We have a custom RadGrid on a tabbed page that locks the plus/minus image buttons in the footer as well as the first column with an edit pencilso that even when tabbing through the row, you can still edit or add a record. When tabbing through the fields, the dummy scroll bar causes issues and half the "FrozenColumn" disappears. I saw that this was addressed in the Unsupported Scenarios section of http://www.telerik.com/help/aspnet-ajax/grid-frozen-columns.html but have you addressed this further than the Javascript workaround?

Thanks,

Joe
Viktor Tachev
Telerik team
 answered on 21 Feb 2014
1 answer
182 views
Dear all,

I have an issue with RadComboBox. I created a simple Website having a RadComboBox inside.
When clicking the values I see in Visual Studio 2012 Debugger These Errors and Event is not fired:

"iexplore.exe" (Skript): "Skriptcode (Windows Internet Explorer)" geladen.
Es wurde eine Ausnahme ausgelöst: in Zeile 5302, Spalte 6 in http://localhost:62615/Scripts/jquery-1.8.2.js
0x800a139e - Laufzeitfehler in JavaScript: SyntaxError
Es wurde eine Ausnahme ausgelöst: in Zeile 4, Spalte 9009 in http://localhost:62615/ScriptResource.axd?d=mbGZm65DzNC0tMTq0ElbcUdadXg85sBtJwtDgJPoBp_OB3VOXUm9z6LLNo4wtufJvZUS29THagbcgDXVYBdQGLM28Qeq7LxftTqWJZGlBSI9cYc0eONDJLpTXyl21r5kIKf4IjY2-qfDHZt9yYBHMw2&t=3c4d8e19
0x800a139e - Laufzeitfehler in JavaScript: SyntaxError
Es wurde eine Ausnahme ausgelöst: in Zeile 4, Spalte 9238 in http://localhost:62615/ScriptResource.axd?d=mbGZm65DzNC0tMTq0ElbcUdadXg85sBtJwtDgJPoBp_OB3VOXUm9z6LLNo4wtufJvZUS29THagbcgDXVYBdQGLM28Qeq7LxftTqWJZGlBSI9cYc0eONDJLpTXyl21r5kIKf4IjY2-qfDHZt9yYBHMw2&t=3c4d8e19
0x800a139e - Laufzeitfehler in JavaScript: SyntaxError
Es wurde eine Ausnahme ausgelöst: in Zeile 626, Spalte 23 in http://localhost:62615/ScriptResource.axd?d=GiyGg6C7coGF_0YjOubjHV4IvtPW1fzg9pEr0sQ_rQioQA_pZ8ZINJcodAJiGClvV0dFrppLaXFXjZ1i_6SAR4taUWmbeTFi8pmPLHBALXMIuJFCkFSH0at6Wx51bpeuwJ6eZFu1JF2OoE8ZPcR0Xg2&t=3c4d8e19
0x800a138f - Laufzeitfehler in JavaScript: Die Eigenschaft "createRange" eines undefinierten oder Nullverweises kann nicht abgerufen werden.

I am using Version v.2013.3.1324.45

Any idea what this can be?
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
61 views
Hello

Where i can download the files localization .resx for the RadSocial ?

I search in App_GlobalResources for my Ajax Q3 2013, i have several files but not this files.

It ll be great if you can put the web page to download the last localization on telerik website.

thanks
Olivier


Slav
Telerik team
 answered on 21 Feb 2014
6 answers
321 views
I am working on the radcloudupload and followed the code in http://demos.telerik.com/aspnet-ajax/cloud-upload/examples/upload-to-amazon-s3/defaultcs.aspx. But I am getting an assembly reference error that the control couldnt find reference to awssdk.dll. Any Ideas?
Michael Wayne
Top achievements
Rank 1
 answered on 21 Feb 2014
3 answers
336 views
Hi,

I want to know is it possible to show nested Grid on click of button in parent table.
I would appreciate if any source code example is there.
Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
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?