Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
124 views
I have an AsyncUploadControl on a page, and when I add one or more files, the select input/button disappear.  All the demo's don't have that issue, what am I missing?

EDIT: scratch that, found my issue.  I had: MaxFileInputsCount="1" as an attribute which caused my display issue.

Mike
Top achievements
Rank 1
 asked on 20 Aug 2013
1 answer
313 views

I am using a Radgrid in Batch Editing Mode (example)

I am trying to allow an end user to apply a value to a column for all records listed.

For example I have 3 columns named 1 2 & 3, and we have 10 records showing in the grid. I want the End User to be able to apply a value which is determined outside the grid to all 10 records in column 2.

The problem is that when I am using the grid in batch editing mode, I need to somehow tell the grid which cells have been edited so that the red triangle in the top left corner of the cells show up once a cell has been edited. The goal is to not apply the changes until the End User clicks the save button attached to the grid.

I have placed an arrow on the save button and an arrow pointing at the red triangle which indicates that a cell has been modified.


I have a button outside of the grid which attempts to set the value to the ACT Arrival column for all records.

Here is the code behind that button

 

So, I want to edit all cells in a given column for all records and mark all records that have been modified as ready to process in batch.

I appreciate any assistance that can be offered and will reply quickly to questions.
Angel Petrov
Telerik team
 answered on 20 Aug 2013
3 answers
79 views

Is there any function/javascript regarding mousever event? I want to change the image of my custom tool once it is hovered by the mouse pointer. Thanks in advance!
Vessy
Telerik team
 answered on 20 Aug 2013
2 answers
118 views
We have a number of grids in our application, all of which have hidden fields. 

Up until recently we have accessed this items when clicking on a control. We recently upgraded Radcontrols to the latest version, and now we cannot access those hidden fields. We can still access fields to do not have the visibility set to false. 

We have tried setting them as visible, and the column width as 0px. But this fails on some older browsers and makes the column width about 5px. 

Any help would be greatly appreciated. 
     

                GridDataItem item = (GridDataItem)e.Item;

                String EmailActionLogID = Convert.ToString(item.GetDataKeyValue("EmailActionLogID"));

                String EMLEmailFrom = item["mailfrom"].Text;
                String EMLRecipient = item["rcptto"].Text;
                String EMLDateTimeReceived = item["datetimeReceived"].Text;
                String EMLGuid = item["emlGUID"].Text;
                String EMLQuarantineID = item["ActionValue"].Text;
Markus
Top achievements
Rank 2
 answered on 20 Aug 2013
1 answer
182 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
447 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
157 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
617 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
116 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
242 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?