Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
 I have the below radstrip and i am adding the tabs in page load as shown below

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Visible="false"
OnTabClick="RadTabStrip1_TabClick" AutoPostBack="true" >
</telerik:RadTabStrip>

<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="2"  

                ShowStatusBar="true" AllowFilteringByColumn="true"  Skin="Sitefinity" OnItemDataBound="RadGrid1_ItemDataBound" Font-Size="9px" >
In Page Load

RadTabStrip1.Tabs.Clear();
RadTabStrip1.Visible = true;
tabExpired = new RadTab();
tabExpired.Text = "Expired";
tabExpiringIn7 = new RadTab();
tabExpiringIn7.Text = "7 Days";
RadTabStrip1.Tabs.Add(tabExpired);
RadTabStrip1.Tabs.Add(tabExpiringIn7);
 
if (!Page.IsPostBack)
{
    qcer = new QReport();
    hideColumnDT(qcer.getColumns());
    dt = qcer.getDT("EXPIRED");
    //tabExpired.Selected = true;
    RadTabStrip1.Tabs[0].Selected = true;
    RadTabStrip1.Tabs[0].BackColor = System.Drawing.Color.Red;
}else{
            //tabExpired.Selected = false;
            RadTabStrip1.Tabs[1].Selected = true;
            RadTabStrip1.Tabs.FindTabByText("7 Days").Selected = true;
            RadTabStrip1.Tabs[1].BackColor = System.Drawing.Color.Red;
 
            qcer = new QReport();
            hideColumnDT(qcer.getColumns());
            dt = qcer.getDT("7 DAYS");
        }
On page load it shows expired tab selected but when doing postback the tab is not changing ....

Even trying to do in the tabClick as below but no luck

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
           if (e.Tab.Text.Equals("7 Days"))
           {
               RadTabStrip1.Tabs[1].Selected = true;
               RadTabStrip1.Tabs.FindTabByText("7 Days").Selected = true;
               RadTabStrip1.Tabs[1].ForeColor = System.Drawing.Color.Red;
               e.Tab.Selected = true;
               e.Tab.Enabled = true;
               e.Tab.Focus();
            }
}

Please help
Konstantin Dikov
Telerik team
 answered on 20 Aug 2013
5 answers
418 views
Hi Telerik

I have till now done 3 bar charts using your new HTML5 charts. All is going well and i have been following your examples which have helped me lots.  Though i am currently at a dead stop.

Till now, the bar charts always had a series databound item (coming from a stored procedure) and also the x-axis.  They both have a column from the table that the SP is calling and it simply picks up the data and plots.

Now, i am trying to do a pie chart and it only asks for the y (one column). And i cant understand or find an example whereby i need 2 columns in this chart (sort of like x/y axis).  Right now, it binds and it fills the pie chart but with just one column. I need to put another value in that same chart (from another column coming from a Stored procedure) that will also render both values on the same chart.

Thanks.
Kyle


Update.
I have eliminated the use of Stored Procedure and DataSourceID in the chart. Im now loading the data manually from the behind and created the object.  In the DataFieldY, i placed the property. So i basically have something like this:
<Series>
          <telerik:PieSeries StartAngle="0" DataFieldY="NotPA">
                   <LabelsAppearance DataFormatString="no tPA {0}%" Position="Circle" />
                      <TooltipsAppearance BackgroundColor="Red" DataFormatString="no tPA {0}%"/>                        <Appearance FillStyle-BackgroundColor="Red" />
                    </telerik:PieSeries>
 
                    <telerik:PieSeries StartAngle="190" DataFieldY="TPA">
                        <LabelsAppearance DataFormatString="tPA {0}%" Position="Circle" />
                        <TooltipsAppearance BackgroundColor="Yellow" DataFormatString="tPA {0}%"/>
                        <Appearance FillStyle-BackgroundColor="Yellow" />
                    </telerik:PieSeries>
</Series>

Now the data is being loaded as is in the database. Though the problem is that it is showing one color. And its not even taking the first color, its just always staying Olive. (Please see attached).  Now, if i hard code values and change the color, all works. Its only on dynamic values.

Can someone please explain to me how this works? I have thought myself and managed to work with bar charts and line charts. Managed from that point of view. Though for a simple pie chart, i cant understand what i am doing wrong.

thanks.

Kyle
Kyle
Top achievements
Rank 2
 answered on 20 Aug 2013
5 answers
136 views
Hi Telerik,

I want to access the textbox of asyncupload in javascript. I was trying with the onclientfileselected event handler and there I got the getFileinputField() function but on debugging I am getting a null value. Here is the code I wrote.

<script type="text/javascript">
function fileselectedhandler(sender, eventArgs)
{
     var inputfield=eventArgs.getInputField();
}
</script>

I am not getting any JS error.

Thanks and Regards,
Jane
Shinu
Top achievements
Rank 2
 answered on 20 Aug 2013
11 answers
576 views
Hello,
There seems to be a problem in the example with the Filter Template.  Go to your page http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx and select 3/27/1998 in the From DatePicker.  You should get 98 records.  Select 5/5/1998 from the To DatePicker.  You should get 826 records.  It seems to ignore the From DatePicker after you change the To DatePicker.  If you order by the Order Date ascending, you will notice that the grid has records with dates before 3/27/1998.  Is there any fix for this?  I've implemented this in a RadGrid using the exact same structure and have the same problem.  It seems like I would need to use Between instead of GreaterThanorEqualTo and LessThanOrEqualTo but I'm not sure how to reference both dates.
Any help would be greatly appreciated.
Thanks,
Jeff Sager
Milena
Telerik team
 answered on 20 Aug 2013
1 answer
103 views
Hi telerik

I would like to show a custom upload icon instead of the yellow inline progress icon while uploading files in my radupload. Someone please point me with the right css to do this.
Thanks
JC.
Princy
Top achievements
Rank 2
 answered on 20 Aug 2013
1 answer
230 views
Hi All, My export no longer working when I converted my radcontrols to asp.net ajax. Previously I'm using Classic radcontrol Q32008 .Net 2.0 and when I converted to Q12013 .Net 4.5, all my exports does not work at all including problem with response.write.

Error on export using datatable/dataset:
0x800a139e - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Heres my code:
Private Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnExportToExcel.Click
       Dim dtS As New DataTable, dtR As New DataTable, dr As DataRow, dg As New DataGrid
       Dim Query As String = ViewState.Item("cSQL")
 
       dg.GridLines = GridLines.Both
       dg.ForeColor = Color.Black
       dg.AutoGenerateColumns = False
 
       dtR.Columns.Add("Type", Type.GetType("System.String"))
       dtR.Columns.Add("Status", Type.GetType("System.String"))
       dtR.Columns.Add("CLIENT", Type.GetType("System.String"))
       dtR.Columns.Add("LINE_ITEM_GROUP", Type.GetType("System.String"))
       dtR.Columns.Add("Receive_Date", Type.GetType("System.String"))
       dtR.Columns.Add("Sender", Type.GetType("System.String"))
       dtR.Columns.Add("AMOUNT", Type.GetType("System.Decimal"))
       dtR.Columns.Add("Comment", Type.GetType("System.String"))
 
 
       CreateColumn(dg, "Type", "Type", "")
       CreateColumn(dg, "Status", "Status", "")
       CreateColumn(dg, "CLIENT", "Client Name", "")
       CreateColumn(dg, "LINE_ITEM_GROUP", "Line Item Group", "")
       CreateColumn(dg, "RECEIVE_DATE", "Receive<br>Date", "")
       CreateColumn(dg, "Sender", "Sender", "")
       CreateColumn(dg, "AMOUNT", "Expense<br>Amount", "{0:###,###,##0;(###,###,##0); }")
       CreateColumn(dg, "Comment", "Comment", "")
 
 
       dtS =  ViewState.Item("drdr")
       Dim drR As DataRow
       For Each dr In dtS.Rows
           drR = dtR.NewRow
           drR("Type") = dr("Type")
           drR("Status") = dr("Status")
           drR("CLIENT") = dr("CLIENT")
           drR("LINE_ITEM_GROUP") = dr("LINE_ITEM_GROUP")
           drR("RECEIVE_DATE") = dr("RECEIVE_DATE")
           drR("SENDER") = dr("SENDER")
           drR("AMOUNT") = dr("AMOUNT")
           drR("Comment") = dr("Comment")
 
           dtR.Rows.Add(drR)
       Next
 
       Dim dv As New DataView(dtR)
       dv.Sort = "Client"
       dg.DataSource = dv
       dg.DataBind()
 
       Response.Clear()
       Response.ContentType = "application/vnd.ms-excel"
       Dim stringWrite As New System.IO.StringWriter
       Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
       dg.RenderControl(htmlWrite)
       Response.Write(stringWrite.ToString)
       Response.End()
   End Sub

Export To PDF/Excel using RadGrid--- > nothing happened

Private Sub btnExportToPDF_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnExportToPDF.Click
       Me.PDFGrid.ExportSettings.IgnorePaging = True
 
       Me.PDFGrid.DataSource = ViewState.Item("drdr")
       Me.PDFGrid.DataBind()
 
       
       Me.PDFGrid.MasterTableView.ExportToPdf()
   End Sub
 
Private Sub btExportToExcel_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btExportToExcel.Click
 
       Me.PDFGrid.ExportSettings.IgnorePaging = True
 
       Me.PDFGrid.DataSource = ViewState.Item("drdr")
       Me.PDFGrid.DataBind()
 
       Me.PDFGrid.MasterTableView.ExportToExcel()
 
   End Sub














Princy
Top achievements
Rank 2
 answered on 20 Aug 2013
3 answers
95 views
RadTreeView: The plus buttons aren't in place, in rtl for version 2013.2.717.40

I found out in version 2013.2.717.40 that the RadTreeView doesn't seem to behave properly for rtl.
The plus buttons aren't in place (they are placed over the dotted line):

the current css style:

:root .RadTreeView_rtl .rtMinus{
  1. positionrelative;
  2. margin-left2px;
  3. margin-right-13px;
  4. right-15px;
}

it should be changed to:

:root .RadTreeView_rtl .rtMinus{
  1. positionrelative;
  2. margin-left2px;
  3. margin-right-13px;
  4. right-15px;
}



1. Is the right: 15px for the 
RadTreeView necessary in class.RadTreeView_rtl .rtMinus?
2. Is the change (right:15px), was done from version: 2013.2.717.40? Are there any new css changes? 

*I used office 2007 skin.

Thanks.
Kate
Telerik team
 answered on 20 Aug 2013
1 answer
272 views
 How to hide autogenerated column in RadTreeList from runtime c#. Please expalin in detail.
I am using ASP.NET 3.5 with Entity Framwork
Eyup
Telerik team
 answered on 20 Aug 2013
1 answer
168 views
 How to hide autogenerated column in RadTreeList from runtime c#. Please expalin in detail.
I am using ASP.NET 3.5 with Entity Framwork, There are 3 custome column in HTML & about 9 autogenerated from Datasource.

In debug it fetching correct column change visibile property to false, but no effect. Please expalin in deatail.
Further more my _PreRender is not fireing on event. its there in html



edit. I found solution
Eyup
Telerik team
 answered on 20 Aug 2013
2 answers
74 views
Hi, I have a problem when I use a WebUserControl and EditMode = PopUp to edit a record in the grid... when the popup is opened everything works fine, but when I click the update button, the record is not updated, and if I insert a new record, the record is inserted with all the fields empty, even if I fill all of them.

Could you please help me?

Greetings,
Sami
Princy
Top achievements
Rank 2
 answered on 20 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?