Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
818 views
Hi

I use a RadComboBox with checkboxes.

I really need to clear or customize it's text, but there is no property for it.

ChekedItemTexts propery has just two options and it has not an option such as none , ...

Below command is not work too:

    RadComboox1.text = "";

How can I clear its text?

thanks.
Eyup
Telerik team
 answered on 23 Dec 2015
1 answer
128 views

I have apply grouping  in main radgrid that also contained nested grid .when i drag a column its successfully group  and sort but i drag another column its getting error.

i am working in DNN.

A critical error has occurred.
Specified argument was out of the range of valid values. Parameter name: index

so please help me.

thanks

Mukul

Pavlina
Telerik team
 answered on 23 Dec 2015
1 answer
192 views

Hello,

 I'm using scheduler timeline (http://demos.telerik.com/kendo-ui/scheduler/timeline). 

When i try to add some dynamic data to scheduler datasource and resources, chrome console returns me error "Uncaught TypeError: Cannot read property '_continuousEvents' of undefined" 

var s = $("#appointmentScheduler").data('kendoScheduler');
var d = {
    AppointmentId: data.GetAppointmentsForContactsResult.AppointmentData[i].AppointmentId,
    title: data.GetAppointmentsForContactsResult.AppointmentData[i].Title,
    datas: data.GetAppointmentsForContactsResult.AppointmentData[i].Data,
    start: parseDateFromWCF(data.GetAppointmentsForContactsResult.AppointmentData[i].StartDate),
    end: parseDateFromWCF(data.GetAppointmentsForContactsResult.AppointmentData[i].EndDate),
    endTimezone: undefined,
    startTimezone: undefined,
    recurrenceException: undefined,
    recurrenceRule: undefined,
    description: undefined
};
 
s.dataSource.add(d);
var tmp = [];
tmp.push(self.contacts());
tmp.push(selected);
self.contacts(tmp);
self.groupDataSourceUpdate();
s.resources[0].dataSource.data(self.groupingDataSource());

s.refresh();

Filled data looks like:

var d = {
    AppointmentId:10,
    title: "test",
    datas: [3],
    start: Tue Dec 22 2015 13:00:00 GMT+0100 (Central European Standard Time),
    end: Tue Dec 22 2015 14:00:00 GMT+0100 (Central European Standard Time),
    endTimezone: undefined,
    startTimezone: undefined,
    recurrenceException: undefined,
    recurrenceRule: undefined,
    description: undefined
};
s.dataSource.add(d);
var tmp = [];
tmp.push(self.contacts());
tmp.push([{text: "test", value: 3}]);
self.contacts(tmp);
self.groupDataSourceUpdate();
s.resources[0].dataSource.data(self.groupingDataSource());

s.refresh();

Vladimir Iliev
Telerik team
 answered on 23 Dec 2015
8 answers
307 views
Hi,

Please look at the markup for the donut chart:

<telerik:RadHtmlChart runat="server" ID="DonutChart1" Height="600px" Width="600px" OnClientSeriesClicked="OnClientSeriesClicked">
     <ChartTitle Text="Deficiencies by Risk Rating" />
     <PlotArea>
         <Series>
             <telerik:DonutSeries DataFieldY="Size" NameField="State" ExplodeField="IsExploded">
                 <TooltipsAppearance DataFormatString="{0}%"></TooltipsAppearance>
             </telerik:DonutSeries>
         </Series>
     </PlotArea>
 </telerik:RadHtmlChart>

I then bind this in the page_load event to a datasource that is a collection of my custom entity.

protected void Page_Load(object sender, EventArgs e)
       {
           DonutChart1.DataSource = ReportingBLL.GetDepartmentPieChartDataByPriority();
           DonutChart1.DataBind();          
       }

When I look at the chart I see 3 slices. 1st Slice shows 63%, second 1% and the third 1%. As you can see that does not add up to 100%. I have debugged the code and verified that the collection has 65 items, with one portion containing 63, second 1, and last 1 item. It appears as if instead of showing % it is just displaying the totals.

How do I get it to display the %?

Ianko
Telerik team
 answered on 23 Dec 2015
2 answers
98 views

I have a lineseries chart which displays a number for each day of a specific month. I want to be able to see which dates are in a weekend by setting the background color for these dates. 

 

Can I change the background of a lineseries chart between two major gridlines?

 

Mark
Top achievements
Rank 1
 answered on 23 Dec 2015
3 answers
129 views
Hello,

I am using the client object model. I have a page with 3 user controls. I have JavaScript in UserControl1 that needs a reference to  a TreeView control which resides in UserControl2. Can I do that?
 
Secondly, I have the option of removing the User Controls and just using the page (aspx) would that save me compilcations later?

Updated** Attempt2 works:
// attempt1: does not resolve at compile time
var tree = $find("<%= RadTreeViewCommands.ClientID %>");
// attempt2: radTreeViewCommandsClientID is a global variable we set on the server
var tree = $find(radTreeViewCommandsClientID);

Konstantin Dikov
Telerik team
 answered on 23 Dec 2015
2 answers
77 views

Greetings,

 I was trying to use the Contains filter with a value containing a '%' char in hte middle of value but no success. The settings are:

  • EnableLinqExpressions="False"
  • The columns are generated programatically

What I'm trying to filter is something like:

([description] like '%apple%juice%') to bring values like "green apple juice" or "apple juice box" or even "yadda apple whatever juice" (sorry for the bad example)

 

The filter expression when I enter "apple%juice" in the filter item is generated like that example but the filter doesn't work. Is this approach possible or simply can't be done?

romulo~
Top achievements
Rank 1
 answered on 22 Dec 2015
4 answers
385 views
Hello,

I am following one of your demos on how to export radGrid data to PDF. http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx

After following the demo I ran into an issue where nothing would happen after clicking the "downloadPDF" button. After some research I came to learn that this may be caused by an AJAX issue because the page needs to return stream rather than XttpRequest used for AJAX.

The proposed solution (which is outlined in your demo) is to add a block of javascript code to the page like this:

<script type="text/javascript">
    function requestStart(sender, args) {
        if (args.get_eventTarget().indexOf("btnDownloadPDF") > 0)
            args.set_enableAjax(false);
    }
</script>


The problem I am having is that I must somehow tie this function to the AjaxManager's ClientEvents-On-RequestStart attribute, but I am using an AjaxManagerProxy (since we already have an AjaxManager on the master page) and the AjaxMangerProxy does not seem to posses such a client side setting.

Please advise on how I can set this value for ClientEvents-On-RequestStart for an AjaxManagerProxy?

Thanks in advance,
Justin


Rahul
Top achievements
Rank 1
 answered on 22 Dec 2015
3 answers
334 views
Hi,

I've the below format in my aspx:

 

 

<ExportSettings ExportOnlyData="true" OpenInNewWindow="true" HideStructureColumns="true">

 

 

 

<Excel Format="Biff" />

 

 

 

</ExportSettings>

 


I need to do the foll:
1) When exporting to excel, how do I left justify the header and excell cell contents .(i've biff formatting. I cannot change it to html due to excel warning message.)

I tried this in itemCommand:

GridItem

 

 

Item = (GridItem)radDASignature.MasterTableView.GetItems(GridItemType.Item)[0];

 


 

 

foreach (TableCell tcell in Item.Cells)

 

{

tcell.Text = tcell.Text.Replace(

 

"<nobr>", "");

 

tcell.Style[

 

"text-align"] = "left";

 

tcell.HorizontalAlign =

 

HorizontalAlign.Left;

 

}
This above doesn't work. Please help with code.

2) When exporting the cell content in excel,I  have <nobr> and </nobr> tags to the data. How do I get rid of them while exporting.
I set them in column created event to avoid wrapping of cell contents. However, I do not want the <nobr> added to the excel data while exporting.

Dilip
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
121 views

Hi,

 

we are using the org chart in our projects and they render great on screen.

 However, when you click on print - they loose all their formatting and connecting lines etc.

 Is there some way that we can configure the controls so that they print better?

 

Thanks,

Patrick.

Nencho
Telerik team
 answered on 22 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?