Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
804 views
Hello,

A while back I was using the normal RadChart and not the HTML version.  Once the HTML version came out I switched everything over to it and have been pretty happy.  Recently I have come across the problem where I have too many labels on the pie chart (i.e. there are many items that are 2% or less making up the chart) which makes the chart look pretty messy.

In the normal RadChart there was a way to hide the labels on the databind event if the value of the dataitem was less than a certain percentage.  However, I cannot seem to find a way to do this with the HTML chart.

Does anyone have an example how I can hide label that are less than a certain percentage on the HTML pie chart?

Thanks,.
Ron
Vessy
Telerik team
 answered on 11 Mar 2019
9 answers
1.3K+ views
I had added a RequiredFieldValidator to dropdownlist that make sure user had selected value before insert to db. but the checking is not working that will not prompt error message.

<telerik:RadDropDownList ID="rdl_bu" runat="server" DataSourceID="LDS_BU" DefaultMessage="Please select..."
 DataValueField="BU_ID" DataTextField="BU_name" AutoPostBack="true" >
</telerik:RadDropDownList>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="rdl_bu"
         InitialValue="Please Select..." ErrorMessage="Please select a Business Unit."></asp:RequiredFieldValidator>
Attila Antal
Telerik team
 answered on 11 Mar 2019
12 answers
807 views
Hi

The upload controls (buttons) don't render sometimes. It happens a couple of times and then works after a while.
I'm using 2012.3.1308.35.
Any idea what the causes may be?
Peter Milchev
Telerik team
 answered on 11 Mar 2019
1 answer
435 views

Hi Team,

Can we able to change the colour of pagination button (next, prev next , prev etc..) ?

Regards,

Ramesh.

 

Vessy
Telerik team
 answered on 11 Mar 2019
4 answers
385 views

When I click "add new row", required field validation raises exceptions/constraints one cell at a time. i.e. not allowing the rows data to be entered in any other order / or for the entire row to appear in edit mode.

behavior reproducible on BatchEditing demo page: http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

It seems like I would have noticed this before, so maybe it's update related: I have a RadGrid that has Batch Edit row mode enabled.

Is that intended? Can it be changed with an attribute? if not, how about some client side js? I'll be debugging, but would appreciate an available solution.

 

Thanks

 

 

Attila Antal
Telerik team
 answered on 11 Mar 2019
7 answers
405 views

I have a textbox filter on a radgrid and need to get all results between two integers. So I enter "1974 2000" and use the 'between' selection to get all values between 1974 and 2000. I now need to retrieve the current filter expression in order to pass to a stored procedure. I tried using FilterExpression like so:

string EntitySQL = grid.MasterTableView.FilterExpression;

and get: "((Convert.ToInt32(iif(it[InstallationYear\"]==Convert.DBNull,null,it[\"InstallationYear\"])) >= 1974) AND ( Convert.ToInt32(iif(it[\"InstallationYear\"]==Convert.DBNull,null,it[\"InstallationYear\"])) <= 2000))"

But when I use GetEntitySqlFilterExpression like so:

string EntitySQL = grid.MasterTableView.GetEntitySqlFilterExpression();

The result is blank. For some reason GetEntitySqlFilterExpression() does not process the "between" filtering command. I'd like to use this expression because it is much easier to understand and use. Does anyone know why the "between" filtering command is not recognized?

Marin Bratanov
Telerik team
 answered on 10 Mar 2019
2 answers
239 views

hello 

is there any way to filter the combobox by textbox using startwith and highlight all the startwith items ?

 

thanks

 

KinG
Top achievements
Rank 1
 answered on 10 Mar 2019
0 answers
138 views

Hello,

I'm trying to upload some file programmatically from a python script thru one of our forms but I've hit a stumbling block.

When I check the Web Inspector, I see that file uploads trigger a multi-part form POST that includes the below field:

ctl00_ContentPlaceHolder1_uFile_ClientState:
{  
   "isEnabled":"true",
   "uploadedFiles":[  
      {  
         "fileInfo":{  
            "FileName":"test.xlsx",
            "ContentType":null,
            "ContentLength":9365,
            "DateJson":"2019-03-08T16:00:12.472Z",
            "Index":0
         },
         "metaData":"long string of random gibberish"
      }
   ]
}

And this is where I'm having difficulties. If I copy the metadata field from the web inspector, and test using the same file that I used at the time, then it works. But if I try uploading another file then it fails. And I guess that it's because I am not updating the metadata field accordingly.

So, can someone help explain to me what goes into that field? And how is it encoded?

Any insight you could share would be greatly appreciated.

Hisham
Top achievements
Rank 1
 asked on 09 Mar 2019
1 answer
421 views

I need to insert "null" into the database when a raddatepicker is empty.  How is this accomplished? I use the following parameter for textboxes and it works just fine:

newDocCmd.Parameters.AddWithValue("@docReason", !string.IsNullOrEmpty(docReasonTextBox.Text) ? docReasonTextBox.Text : (object)DBNull.Value);

 

If I try the same for the raddatepicker I get the expected error of "cannot convert from 'object' to 'string'":

newDocCmd.Parameters.AddWithValue("@docSubDt", !string.IsNullOrEmpty(rdpSubDt.DbSelectedDate) ? rdpSubDt.DbSelectedDate : (object)DBNull.Value);
Jerald
Top achievements
Rank 1
 answered on 08 Mar 2019
2 answers
108 views

I can get the oldValues, newValues, but i can not get JUST the changed values on server-side ItemUpdating event. Why is that? The data tier is waiting for an object with fields and values that need to be updated on a given primary key. I want to send 2 items in the hashtable, not 100 items of useless data to be updated, when i only have 1 item that needs to be updated in the database. Please tell me that you have this functionality? I tried to use the UpdateValues, but its always empty, but it seems different than SavedOldValues and ExtractValues. Why use "UpdateValues" if it doesnt do the same, confusing to say the least.

The help in the demos is not what we are doing. This is one record placed in edit-mode when the dataform loads. Again there should only be a few lines to send the hashtable to the data tier. 

 

            Dim editedItem As RadDataFormEditableItem = TryCast(e.DataFormItem, RadDataFormEditableItem)
            Dim oldValuesHT As Hashtable = editedItem.SavedOldValues()
            Dim newValuesHT As New Hashtable()
            Dim updatedValuesHT As New Hashtable()
            editedItem.ExtractValues(newValuesHT)
            editedItem.UpdateValues(updatedValuesHT)

 

Any help Telerik?

SDI
Top achievements
Rank 1
 answered on 08 Mar 2019
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?