Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views

Hi thee,

I am using Rad Scheduler ASP.Net version 2015 Q1.

 

I am populating appointments using a web service, passing in custom properties and that all works wonderfully.

I have a scenario where I wish to show appointments for a set of resources, and then allow the user to see the data just for a subset of those resources. This selection is via a set of checkboxes. While it is easy to just show the appointments for the selected resources using rebind(), the un-selected resources still show in the grid.

In the attached image, I want the Scheduler to just show the data for the users that have are checked, not for "Grant" or "Roger". My code successfully won't show the appointments for "Grant" or "Roger", but does not remove them from the grid.

 

In this scenario I am happy for a post-back to occur if necessary, but when I do that the resources that are used to generate the grid are re-used, rather than being repopulated. Is there any way to force the resources to be repopulated from the client-side?

 

Nencho
Telerik team
 answered on 23 Mar 2016
6 answers
1.5K+ views
Hi all

I find problem with RadcomboBox & RequiredFieldValidator

RadcomboBox  it bound with table in database name country
in databound event i add this

cboxCountry.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("-  Select  -", null));

this for insert text SELECT to be default

when i add RequiredFieldValidator and set its propriety in design time like
ControlToValidate = cboxCountry
InitialValue = -  select  -

and run this page
when it run and click on button next it fire the RequiredFieldValidator 
and it works
but when select another item like USA and return to "-  select  -"
and press NEXT button it didn't fire RequiredFieldValidator   

how can control  it ??
Andy
Top achievements
Rank 1
 answered on 23 Mar 2016
0 answers
147 views
Hello All,
In my page I have 3 RadHtmlChart placed inside the RadDock control in my aspx page.
All the 3 RadHtmlChart constructed as a separate page. pragmatically loaded them in RadDock.
when the window resize happens only the last chart get repainted whereas the other 2 still remains the same.
please do the needful its bit urgent.
Many Thanks
Amjath

Amjath
Top achievements
Rank 1
 asked on 23 Mar 2016
3 answers
184 views
I am using the RadUpdate/ProgressArea control to allow a user to upload a file and then view the status of the import process. The first progress bar is handled automatically during the update process by the progress area. The second part of the process, the import, I am using the secondary progress bar to give them feedback (processing line x of y).

************* ERROR MESSAGE *****************

RadUpload Ajax callback error. Source url returned invalid content:

var rawProgressData = {InProgress:true,ProgressCounters:true,PrimaryPercent:'100'System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
   at Telerik.Web.UI.Upload.ProgressData.Serialize(TextWriter writer)
   at Telerik.Web.UI.RadProgressContext.Serialize(TextWriter writer)
   at Telerik.Web.UI.RadUploadProgressHandler.ProcessRequest(HttpContext context)

Telerik.RadUploadProgressHandler.ashx?RadUrid=9ab592e1-0d6a-43f2-8f5e-9eddc5e20105

Did you register the RadUploadProgressHandler in web.config?

Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.

***************** End of Error ******************


Any ideas what is causing this?

Thanks!




**************** Sample Code ********************
UploadedFile file = UploadedFile.FromHttpPostedFile(Request.Files[0]);

string fileName = MapPath("uploads") + "\\" + file.GetName();

file.SaveAs(fileName, true);

if (!Object.Equals(file, null))
{
     importFile(fileName);
}


 private void importFile(string fileName)
    {
        ArrayList lines = new ArrayList();

        RadProgressContext progress = RadProgressContext.Current;
        DateTime startTime = DateTime.Now;

        progress.SecondaryTotal = 100;
        progress.SecondaryValue = 0;
        progress.SecondaryPercent = 0;
        progress.CurrentOperationText = "Reading File..";

        StreamReader reader = new StreamReader(fileName);

        try
        {
            int totalLines = 0;

            while (!reader.EndOfStream)
            {
                totalLines++;
                lines.Add(reader.ReadLine());
            }
            
            progress.SecondaryTotal = totalLines;
            progress.CurrentOperationText = "Importing Data...";

            for (int line = 0; line < totalLines; line++)
            {
                    //progressContext.PrimaryPercent = (int)Math.Round(((decimal)i / count) * 100, 0);
                    progress.SecondaryValue = line;
                    progress.CurrentOperationText = "Importing Data...(" + line + " of " + totalLines + ")";

                TimeSpan elapsed = DateTime.Now.Subtract(startTime);
                progress.TimeElapsed = string.Format("{0:D2}:{1:D2}:{2:D2} s", elapsed.Hours, elapsed.Minutes, elapsed.Seconds);

                double estimatedMillisecons = 24 * 60 * 60 * 1000;
                if (line != 0)
                {
                    estimatedMillisecons = totalLines * elapsed.TotalMilliseconds / line;
                }
                TimeSpan estimated = TimeSpan.FromSeconds(1);
                if (estimatedMillisecons > 1)
                {
                    estimated = TimeSpan.FromMilliseconds(estimatedMillisecons);
                }
                progress.TimeEstimated = string.Format("{0:D2}:{1:D2}:{2:D2} s", estimated.Hours, estimated.Minutes, estimated.Seconds);

                double speed = 0.0d;
                if (elapsed.TotalSeconds > 0)
                {
                    speed = line / elapsed.TotalSeconds;
                }
                progress.Speed = string.Format("{0:0.00} steps/s", speed);

                if (!Response.IsClientConnected)
                {
                    //Cancel button was clicked or the browser was closed, so stop processing
                    break;
                }
            }
        }
        catch (Exception ex)
        {
            App.ProcessException(this, ex);
            throw ex;
        }
        finally
        {
            if (reader != null)
                reader.Close();
        }
    }   


Hristo Valyavicharski
Telerik team
 answered on 23 Mar 2016
1 answer
272 views
 angular.js:11358 RangeError: Maximum call stack size exceeded
    at kendo.all.min.js:78
    at Object.a [as compile] (kendo.all.min.js:78)
    at e.support.browser.msie.e.support.browser.version.e.Observable.extend._compileFormula (kendo.all.min.js:77)
    at .<anonymous> (kendo.all.min.js:77)
    at e.support.browser.msie.e.support.browser.version.e.Observable.extend.batch (kendo.all.min.js:77)
    at e.support.browser.msie.e.support.browser.version.e.Observable.extend.fromJSON (kendo.all.min.js:77)
    at e.support.browser.msie.e.support.browser.version.e.Observable.extend.fromJSON (kendo.all.min.js:78)
    at new e.support.browser.msie.e.support.browser.version.e.Observable.extend.init (kendo.all.min.js:78)
    at new e.support.browser.msie.e.support.browser.version.e.ui.Widget.extend.init (kendo.all.min.js:85)
    at HTMLDivElement.<anonymous> (kendo.all.min.js:26)

 

I am trying to load about 29 thousand rows of data into the kendo spreadsheet and I get the above error. What I am doing is converting data from a ExcelPackage to a Telerik.Web.Spreadsheet workbook on the back-end. Then I convert the workbook via the ToJson method, send that data to the front-end, parse the received string data to a JSON and then load that JSON into the spreadsheet directly as a object or via the spreadsheet.fromJSON(data) method.

It works for less data, but doesn't for this. Also I can have hundreds of thousands of rows with no problems but with data it's another story. Can you tell me if there is some better way to do this, or how to work around this error.

Thank you in advance.

Bozhidar
Telerik team
 answered on 23 Mar 2016
0 answers
105 views

Hi,

I want to make mediaplayer playist back color black. I also want to change the font color and image size.

 

Could you help.

Ali
Top achievements
Rank 1
 asked on 23 Mar 2016
1 answer
72 views

Hi, I have issues with custom button / markup in RadEditor. Here's my scenario:

 

- I have a custom button added through: Telerik.Web.UI.Editor.CommandList[rteButtonCommand] ...

- Then I show some external dialog ( editor.showExternalDialog(...) ) which returns back some markup.

- I inject that markup where the cursor was, ie. like:

<div class="some-css-class">

[myCustomComponent]123456789[/myCustomComponent]

</div>

- Instead of having that custom tag, I would like to show some image instead indicating what kind of component it is and more importantly be able to select it like an image and be able to move it or bring back the dialog with selected values. 

 

I read quite a lot of reference, but couldn't find anything related. 

 

Can anybody help me with this?

 

Thanks

Ianko
Telerik team
 answered on 23 Mar 2016
1 answer
323 views

Hi,

 

I have faced a problem with Rad Editor that When we change font size to maximum of content and export to PDF, the text is overlap. Igo through the followint demo and able to replicate the issue..

http://demos.telerik.com/aspnet-ajax/editor/examples/import-export/pdf-export/defaultcs.aspx

 

After i changed font size, Please see the attchment name STEP1.png

Then exported to PDF, the text overlap between the lines. Please see the attachment name Result.png

Please help me.

Ianko
Telerik team
 answered on 23 Mar 2016
3 answers
79 views

Hello All,

In my page I have 3 RadHtmlChart placed inside the RadDock control in my aspx page.

All the 3 RadHtmlChart constructed as a separate page. pragmatically loaded them in RadDock.

when the window resize happens only the last chart get repainted whereas the other 2 still remains the same.

please do the needful its bit urgent.

Many Thanks

Amjath

Amjath
Top achievements
Rank 1
 answered on 23 Mar 2016
2 answers
89 views

so it look similar as on grid view?  then I could add custom filtering to it.

thanks

Robert
Top achievements
Rank 1
 answered on 22 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?