Quantcast
Channel: Telerik Forums RSS
Viewing all 78072 articles
Browse latest View live

Problems with Visual Studio Online Continuous Integration...

$
0
0

I'm using Visual Studio 2015, Telerik Reporting 10.2.16.1025 and Visual Studio Online (hosted Team Foundation).

I've got a report project built and it works and runs just fine. If I publish it manually it works just fine.

The problem comes in when I try to set it up for the continuous integration so I don't have to push it to our QA server a bunch of times during the day. VSO just doesn't want to make use of the Report viewer dlls no matter what I try. I've got copy local set. I've even added them to the solution and checked them into source control (team foundation source control). Nothing works.

The only thing that did work was setting up a private NuGet server and making use of the Nuget package provided by Telerik. 

BUT

When I do that,we can no longer make use of the designer in visual studio.According to the forums, we can only use the GAC version of the dlls if we want to use the designer.

Is there some trick to be able to swap out the GAC dlls with a hosted set or a set that's checked in? Again, this is a hosted TFS so I have no ability to install them on the server.


Problems with Visual Studio Online Continuous Integration...

$
0
0

Here are the initial errors I'm getting, by the way.

 

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.Reporting, Version=10.1.16.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.Reporting.Services.WebApi, Version=10.1.16.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.ReportViewer.Mvc, Version=10.1.16.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

How to specify data-columns field type in declarative grid definition

$
0
0

Rosen thank you for the reply.

Could you show me how I can specify a schema, given my viewmodel?

Below is my viewmodel, as you can see from the above kendo grid declarative initialization, the data source is specified with the attribute data-bind='source: reportData.Patrols'

Basically my question is where do I put the "schema:" attribute to get the grid to interpret the columns as specific data types?

Would it be somewhere in the data-bind='source: ..src..., events: ...events..., schema: ...schema...'

viewModel:

viewModel = kendo.observable({
        reportData: 
            "Patrols": 
                [{
                    "patrol_id": "yO0crrEjeNvlrkc3H8otng%3d%3d",
                    "patrol_id_plain": "7383748",
                    "tour_name": "Airport Towers",
                    "location_name": "Airport Towers",
                    "client_company": "Scottsdale Auto Center",
                    "address": "18881 Von Karman",
                    "city": "Irvine",
                    "abbreviation": "CA",
                    "end_date": "10/31/2016 11:56:47 AM",
                    "end_date_seconds": "531237407",
                    "first_name": "James",
                    "last_name": "Wierzba",
                    "patrolled_by": "James Wierzba",
                    "incident_only": "0"
                },
                    "patrol_id": "KhZmgPq2fbSP3Zly%2bw2I5Q%3d%3d",
                    "patrol_id_plain": "7383747",
                    "tour_name": "Airport Towers",
                    "location_name": "Airport Towers",
                    "client_company": "Scottsdale Auto Center",
                    "address": "18881 Von Karman",
                    "city": "Irvine",
                    "abbreviation": "CA",
                    "end_date": "10/10/2016 6:24:01 AM",
                    "end_date_seconds": "529403041",
                    "first_name": "James",
                    "last_name": "Wierzba",
                    "patrolled_by": "James Wierzba",
                    "incident_only": "0"
                ],
        excelExportHandler: function (e) {
            var sheet = e.workbook.sheets[0];

            for (var i = 1; i < sheet.rows.length; i++) {
                var row = sheet.rows[i];
                var data = e.data.reportData.Patrols[i - 1];

                if (data.incident_only == "1") row.cells[6].value = '-';
                else row.cells[6].value = data.completed_checkpoint_count + ' of ' + data.total_checkpoint_count;


           }
      }
});

 

Basic example please

$
0
0

I suppose you can disregard this question... After searching a bit more, I think I've found what I need...  Here is what I ended up with

@(Html.Kendo().Chart<ClientBreakdown>()
    .Name("chart")
    .Title("Breakdown of Client States")
    .Legend(l => l.Position(ChartLegendPosition.Bottom))
    .Series(s => s.Column(m => m.Count).Name("Client Count by State")
        .Labels(l => l.Visible(true).Position(ChartBarLabelsPosition.OutsideEnd))
    )
    .CategoryAxis(c => c.Categories(m => m.State).Labels(true))
    .DataSource(ds => { ds.Read(r => r.Action("ClientsByState", "Clients").Type(HttpVerbs.Get)); })
    .Tooltip(tp => tp.Visible(true).Template("#=category# - #=value#"))
)

 

I also attached a screen shot showing the results.

 

PdfFormatProvider using PdfInlineUIContainersExportMode.Image doesn't render the correct size

$
0
0
How is one supposed to ensure that an InlineUIContainer is in the visual tree at the time of export?  If I produce a RadDocument with a RadChartView in an InlineUIContainer, but that InlineUIContainer is off the page at the time of export, it is not loaded because of UI virtualization, correct?  How do I export to PDF reliably when the user doesn't scroll all the way through the document?

My App shutdown after in Telerik Testing Studio

$
0
0

Isn't the issue.

I'm trying to find why I got the message

Application Error( The Connection to the was unsuccessful).(file://android_asset/www/index.html).

How to get the selected Row Data in radgridview in vb.net v.net

$
0
0
Hello Jim,

I can help you find the best place to get support for UI for WPF. Can you please answer a quick question for us, so that we can provide you with the proper support? You may also be entitled to full support instead of forum posts.

I do not see any downloads from your account for UI for WPF. Telerik licensing, including trials, is per-developer. Do you have another Telerik account that you used to download the product trial, or have an account that has a license for UI for WPF? If you do not, the person whom purchased the product can assign you as a Licensed User.

Assigning you as the licensed user is free, only takes about 30 seconds and they can change the licened user at any time. The license owner only needs to use your email address in the Manage Licensed User's portal here.

Becoming the Licensed User would give you full access to Telerik Support with guaranteed response times directly from the specific product's support engineers.

Okay, onto your question.

The RadGridView has an Items property. You can iterate over that collection and check each item as you would a single selected row.

Here is an example of iterating over the GridView rows (I've also attached a screenshot and the demo). Notice that I show two approaches, one to just get the rendered rows (the GridView uses UI Virtualization) and the other to get access to all the rows.

// this is to get the currently rendered rows
var rows = this.myGridView.ChildrenOfType<GridViewRow>();
 
// myGridView.Items will get you all the data items
foreach (var item in myGridView.Items)
{
    var book = item as Book;
 
    // now you can check the DataItem for a particular value
    if (book?.Price < 10)
    {
        Debug.WriteLine($"{book.Title} is less than 10 dollars");
    }
}
 
// To confirm the counts
OutputTextBlock.Text = $"RadGridView has rendered {rows.Count()} items out of {myGridView.Items.ItemCount}";

Lastly, I do not see if you were looking for a C# or VB answer, but our documentation has both for code snippets (here's an example). If you do find something that is C#, like my example, you can quickly convert it using our online Code Converter.

If you have any further questions for the Telerik Support engineering team, you can open a support ticket here as I mentioned above.

Thank you for contacting support and for choosing Telerik by Progress.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!

How to specify data-columns field type in declarative grid definition

$
0
0

I've tried specifying the data-bind="src:"  (reportData) to be a instance of kendo.data.DataSource and it did not work

 

            viewModel = kendo.observable({
                reportData: new kendo.data.DataSource({
                    schema: {
                        data: results,
                        model: {
                            fields: { incident_count: { type: "number" } }
                        }
                    }
                }),
                excelExportHandler: function (e) {
                    var sheet = e.workbook.sheets[0];

                    for (var i = 1; i < sheet.rows.length; i++) {
                        var row = sheet.rows[i];
                        var data = e.data.reportData.Patrols[i - 1];

                        if (data.incident_only == "1") row.cells[6].value = '-';
                        else row.cells[6].value = data.completed_checkpoint_count + ' of ' + data.total_checkpoint_count;
                    }
                }

 

 

 

 

Additionally I've tried specifying a schema inside of the data-bind attribute:

<div>
...
         data-bind='source: reportData.Patrols, events: {excelExport: excelExportHandler}, schema: { model: {fields: { incident_count: { type: "number" } } } }'


Could not load assembly or file Telerik.Windows.Zip

$
0
0

Hi,

I use the spreadsheet part with much satisfaction, but since a while I get the following error

'Could not load file or assembly Telerik.Windows.Zip, Version=2016.1.106.40'

And i can't get any solution. I tried to upgrade all Telerik controls, but that didn't work yet.I will try again...

 

Can someone please help?

It breaks on the last line of my code block.

IWorkbookFormatProvider formatProvider = newXlsxFormatProvider();
 
var workbook = newEpicExcelExportManager().GetFilledWorkbook();
byte[] renderedBytes;
 
using(var ms = newMemoryStream())
{
    formatProvider.Export(workbook, ms);

 

Thanks.

John

Basic example please

$
0
0
As it turns out, I do need a bit of help after all.  I'd like to show a stacked bar chart similar to what I'm already showing, but I'd like to break the bar stacks down to Active Clients, and All Clients. Based on what I've already posted, what would I need to do to my model, my controller method, as well as my chart code to make this happen?

Help: Grid- 'Filter search' Keep 'Select All'

$
0
0

Hello!

I have a Kendo Grid on my page and I have a few columns that are 'filterable' and 'multiselect' checkbox lists.

 

The top select option is "Select All" which selects all options, however this "Select All" option goes away once you search for anything.

 

What I need:

I need the "Select All" checkbox to remain after searching

I need the "Select All" checkbox to only select items that are shown. IE: I search for "W" and click 'select all' and only those items with "W" get selected.

 

 

Thanks!

Data driven Load test with https domain

$
0
0

Hi, I need to create data driven load test, when each VU uses login and password from excel data file attached.
I was following this article http://docs.telerik.com/teststudio/features/testing-types/load-testing/data-driving and it works good with http websites. 
But when I recorded load test scenario with https site I was unable to find username and password fields in 'Edit user profile' screen. 

Thanks in advance for your help 

Whats new to hybrid?

$
0
0

There is something new in hybrid mobile part of framework? Its still alive? Its good compared with Ionic and Onsen UI? Thanks!!!

Basic example please

$
0
0

I changed my model, I changed my controller, and I changed my chart code, and I actually got what I wanted.  Mostly.

The Code:

@(Html.Kendo().Chart<ClientBreakdown>()
    .Name("chartAll")
    .Title("Breakdown of All Client States")
    .Legend(l => l.Position(ChartLegendPosition.Bottom))
    .SeriesDefaults(sd => sd.Bar().Spacing(5).Stack(true))
    .Series(s =>
    {
        s.Bar(m => m.Active).Name("Active").Color("#009933");
        s.Bar(m => m.Count).Name("Total").Color("#ff0000");
    })
    .CategoryAxis(c => c.Categories(m => m.State).Labels(true))
    .DataSource(ds => { ds.Read(r => r.Action("ClientsByState", "Clients").Type(HttpVerbs.Get)); })
    .Tooltip(tp => tp.Visible(true).Template("#=category# - #=value#"))
    .ChartArea(ca => ca.Height(800))
)

 

Also attached is a screen shot.

So why is it only mostly what I want? The bars themselves are very thin, I'd like them thicker.  And I'd really rather this was horizontal as opposed to vertical.

Basic example please

$
0
0

I wish I could just go back and edit messages...

Ok, the height increases if the overall ChartArea becomes larger.  SO I guess I can deal with that.  But how do I get the bars to display vertically (up and down) instead of side by side?


Screen readers do not announce dropDownList's selected value

$
0
0
Thank you for the thoughtful reply – I appreciate the insight into the design decisions.

For some reason, in my code, changing the wrapper to “combobox” reads out the value upon focus.  See  http://dojo.telerik.com/@richm/UyUqO and screen shot.  Arrow keys still don’t provide feedback, but I do get the value.  Weird!

The aria-label workaround provided works quite well, thank you.  My only hesitation is, since we’re overloading aria-label to hold the actual value, how do I set the “real” label for the dropdown, the string describing the purpose of the widget?  If I set the aria-label or title of the underlying, then NVDA readout starts with the *value* and ends with the *label*.  See http://dojo.telerik.com/@richm/isoJo, the first dropdownlist reads out, “Selected value: Chai  list  collapsed  subMenu  DropDown Title”.  The user hears the widget label last, which could be confusing.

Same thing happens with aria-describedby.

The second dropDownList updates title with the dropdown label, and keeps aria-label static.  The readout order is now more logical, with the title first and label last.  Even so, I’m worried that this non-standard use of ARIA could cause problems with other screen readers and assistive technologies.

Other than experimenting with aria-live, I’m almost out of ideas.  The auto-open of the dropdowns is a viable idea, but will have to check with the product owners to see if this UX is acceptable for all users.

Thanks - Rich

NullReferenceExceptoin ServerChatter.cs

$
0
0

I got it too.

posting in case it helps.

 

---------------------------
Uncaught Exception in Session #1879
---------------------------
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report at http://www.telerik.com/forums/fiddler.

Object reference not set to an instance of an object.

Type: System.NullReferenceException
Source: Fiddler
   at Fiddler.ServerChatter.Ÿ.Ÿ(Object ƒ, EventArgs ‚Ÿ) in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\ServerChatter.cs:line 1336

   at Fiddler.Session.Ž() in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 792

   at Fiddler.Session.set_state(SessionStates value) in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 745

   at Fiddler.Session.€(Boolean ) in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 6040

   at Fiddler.Session.‘() in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 3912

   at Fiddler.ServerChatter.Œ() in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\ServerChatter.cs:line 1454

   at Fiddler.Session.‘() in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 3554

   at Fiddler.Session.(Object ) in c:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 3347


Fiddler v4.6.2.32002 (x64 AMD64) [.NET 4.0.30319.42000 on Microsoft Windows NT 10.0.14393.0]
---------------------------
OK   
---------------------------

Correct referencing order and files to be referenced when using Bootstrap HTML?

$
0
0

What is the correct referencing order and files to be referenced when using Bootstrap and KendoUI in html?

Right now I have a view that I guess you can call a masterpage, and I have referenced Bootstrap and KendoUI but I noticed when creating a grid, and adding filtering capability to it that I am getting two extra columns, as seen in attachment ss1.PNG .

However, when I add the code into KendoUI's dojo it looks normal, as seen in attachment ss2.PNG

 

So I am thinking that maybe I have my referencing in incorrectly

here is my "masterpage"


@{
Layout = null;
}
 
<!DOCTYPE html>
 
<html>
<head>
<metaname="viewport"content="width=device-width"/>
<title>Test</title>
<scriptsrc="~/Scripts/jquery-2.1.0.min.js"></script>
<scriptsrc="~/Scripts/Kendo.2016.1.226/kendo.all.min.js"></script>
<scriptsrc="~/Scripts/bootstrap.min.js"></script>
 
@Styles.Render("~/Content/css")
 
<linkhref="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet"type="text/css"/>
<linkhref="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet"type="text/css"/>
<linkhref="@Url.Content("~/Content/Site.css")" rel="stylesheet"type="text/css"/>
<linkhref="@Url.Content("~/Content/bootstrapValidator.min.css")" rel="stylesheet"type="text/css"/>
 
<!--Kendo style-->
<linkhref="~/Content/Kendo.2016.1.226/kendo.default.min.css"rel="stylesheet"/>
<linkhref="@Url.Content("~/Content/Kendo.2016.1.226/kendo.common.min.css")" rel="stylesheet"type="text/css"/>
<linkhref="@Url.Content("~/Content/Kendo.2016.1.226/kendo.common-bootstrap.min.css")" rel="stylesheet"type="text/css"/>
 
<linkhref="@Url.Content("~/Content/Custom/Layout.css")" rel="stylesheet"type="text/css"/>
 
<linkhref="~/font-awesome-4.6.3/css/font-awesome.min.css"rel="stylesheet"/>
<linkhref="~/Content/Custom/MyTest.css"rel="stylesheet"/>
<linkhref="~/font-awesome-4.6.3/css/font-awesome.min.css"rel="stylesheet"/>
<linkhref="~/Content/Custom/GlobalStyle.css"rel="stylesheet"/>
 
</head>
<body>
<divclass="container">
<divclass="row">
<header>
<center><imgsrc="~/Images/test-logo-sm.png"/></center>
</header>
</div>
<navclass="v-wrapper">
<ul>
<liclass="v-brand">
 
<center><lh><labelstyle="font-weight:bold; color:white;">Menu</label></lh></center>
</li>
<li>
<spanclass="glyphicon glyphicon-dashboard"style="color:green;"></span><ahref="#"id="dashboard"> Dashboard</a>
</li>
<li>
<spanclass="fa fa-users"style="color:#003366;"> </span><ahref="#"id="manageusers">Manage Login Users</a>
</li>
<li>
<spanclass="fa fa-group"style="color:orange;"> </span><ahref="#"id="managegroups">Manage Groups</a>
</li>
<li>
<spanclass="fa fa-gears"style="color:red;"> </span><ahref="#">Manage VS Equipment</a>
</li>
</ul>
</nav>
</div><!-- End Upper Container -->
  
<divclass="container body-content">
<divclass="row">
<divclass="col-md-12 col-lg-12">
<h1>Blah</h1>
<p> This is where your main stuff goes</p>
</div>
</div><!-- End Row -->
</div><!-- End Main Container -->
<!-- Scripts -->
@*<footerclass="footer"><palign="center">Footer Content Goes here</p></footer>*@
 
<script>
$(document).ready(function () {
$('#manageusers').click(function () {
$('.body-content').load("../ManageLoginUsers/ManageUsers");
});
 
$('#managegroups').click(function () {
$('.body-content').load("../ManageGroups/ManageGroups");
});
});
</script>
   
</body>
</html>



I can't get Bootstrap and KendoUI to play well together and I think it may have to do with my order of referencing all the CSS and Scripts. 

So what is the correct order?

 

Intercept HTML5 Report Viewer API Call Parameters

$
0
0

Hi Stef, 

 

Im trying to implement the HTML 5 Report viewer with ASP.NET Core. My setup is little bit different than your samples.
I have a completely separate REST service to read the DB and Return the Report File (InstanceReportSource) to the Viewer. So the Viewer is in a different solution , project altogether. Im having trouble with the template Url. When I give my Rest Service URL in the "serviceUrl", the viewer is trying to find the template also in that Rest service.

I have the below code

 $(document).ready(function () {
            alert('Doc Ready');
            $("#reportViewer1")
                .telerik_ReportViewer({
                    // The URL of the service which will serve reports.
                    // The URL corresponds to the name of the controller class (ReportsController).
                    // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.
                    serviceUrl: 'http://localhost:54992/reportingengine/reports',

                    // The URL for the report viewer template. The template can be edited -
                    // new functionalities can be added and unneeded ones can be removed.
                    // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.
                    @*templateUrl: '@Url.Content("~/resources/templates/telerikReportViewerTemplate.html")',*@                    
                    //ReportSource - report description
                    reportSource: {

                        // The report can be set to a report file name
                        // or CLR type name (report class definition).
                        report: "3",

                        // Parameters name value dictionary
                        parameters: {}
                    },

                    // Specifies whether the viewer is in interactive or print preview mode.
                    // PRINT_PREVIEW - Displays the paginated report as if it is printed on paper. Interactivity is not enabled.
                    // INTERACTIVE - Displays the report in its original width and height without paging. Additionally interactivity is enabled.
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,

                    // Sets the scale mode of the viewer.
                    // Three modes exist currently:
                    // FIT_PAGE - The whole report will fit on the page (will zoom in or out), regardless of its width and height.
                    // FIT_PAGE_WIDTH - The report will be zoomed in or out so that the width of the screen and the width of the report match.
                    // SPECIFIC - Uses the scale to zoom in and out the report.
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,

                    // Zoom in and out the report using the scale
                    // 1.0 is equal to 100%, i.e. the original size of the report
                    scale: 1.0,
                });
        });

 

So as you can see, my service Url is a separate rest service. Can we do something like this at all? Also do we need to add any Telerik references in to the report viewer client side code?  

Position of Window called from a Grid

$
0
0
Dealing with the same thing. In this case, the powers that be chose to use the kendo.window as a "popover". Of course, the positioning is very unstable. Kendo doesn't make it very easy to use these windows in a relative manner. Personally, I am not sure why they havent fixed this. The only popover control they offer is for mobile. I dont want to add mobile just to use one control. Nor do I want to pick the terd from the brownies on pulling in only one control from a library I dont need.  No other control that gets appended to the body, that I'm aware of, like the window object. It doesnt get trapped in the overflow of the grid calling it either which was a selling point for this app. Getting these windows to be (a) dynamic and (b) relative is quite the problem. Surprised no one has replied to this. Again, just make the damn window a general control that can be anything. If youre going to allow it to be a modal, a window, an iframe, etc. then why cant it be a POPOVER? With relative positioning built in?
Viewing all 78072 articles
Browse latest View live