Data Direct Cloud

Resources from webinar “Using Salesforce data in your ASP.NET Web Application”

On Dec 15 2016, we finished yet another webinar. These webinars are our monthly webinars we do on 2/3/4 Thu of every month between 12-1PM IST. For this webinar our interest was to showcase how you can  easily consume your cloud data for e.g. Salesforce in your ASP.NET Web Applications using our product called “Data Direct Cloud”.

This blog post will be a recap of the webinar and i will provide you the slide deck & video recording of the webinar itself. Continue reading

Advertisement
ASP.NET Core

Resources for Webinar “Cross Platform Web Applications with ASP.NET Core 1.0”

We are back with yet another webinar resource for you. We conducted a webinar on Feb 25 2016 titled “Cross Platform Web Applications with ASP.NET Core 1.0”. This blog post will be a recap of the webinar and you can find the slide deck used for the webinar and the video recording of the webinar here.

Continue reading

UI for ASP.NET AJAX

Resources for Webinar “Responsive Layouts for your ASP NET WebForms with Telerik UI for ASP NET AJAX “

On Mar 26 2015, we conducted a webinar titled “Responsive Layouts for your ASP NET Webforms with Telerik UI for ASP NET AJAX” . This blog post is a recap of that webinar. You will find the slide deck & video recording of the webinar in this post. So if you had missed attending live this resources will help you catch up on the webinar.

About Telerik UI for ASP.NET AJAX:

UI for ASP.NET AJAX is one of most popular control suites we have here in Telerik. As the name says this is a control suite for ASP.NET AJAX technology. The suite is packed with 80+ AJAX controls which meet almost every needs of your projects. With UI for ASP.NET AJAX controls you get seamless UX across browsers & devices. The controls are also responsive & support mobile devices. You can check out all the controls in UI for ASP.NET AJAX suite with our online demos  available here: http://demos.telerik.com/aspnet-ajax

UI for ASP.NET AJAX

UI for ASP.NET AJAX

 

Slide Deck:

Here is the slide deck i used in the webinar:

 

Video Recording:

Here is the video recording of the webinar:

 

T-Shirt Winners:

Every webinar we select 2 random attendees and they will receive our .NET Ninja T-Shirts. Following are the winners for this webinar:

  • Govind Ranjan
  • Latha S

Congratulations to the winners. We will contact you for your address and ship the t-shirts.

Till next time – Happy Coding.

Integrating SignalR in HTML 5 Applications with Kendo UI – Webinar Resources

On Mar 12 2015 we conducted yet another webinar as part of our monthly webinar series. This time we were happy to invite Vidyasagar Machupalli who is a Microsoft MVP in Gaming. In fact he is the only Gaming MVP in South East Asia. The topic for this webinar was “Integrating SignalR in HTML5 Applications with Kendo UI”. Idea was to talk about real time communication in ASp.NET using SignalR and how Kendo UI makes it easy to work with SignalR.

ASP.NET SignalR:

Here is what the official description of SignalR is at http://www.asp.net:

ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.

Kendo UI:

If you have been attending our webinars, you would have known about Kendo UI by now. If not, Kendo UI is a single package you need to develop HTML5 based sites/apps. Kendo UI is a HTML5 based client side JavaScript UI framework. To know more about Kendo UI head over to the project page here: http://www.telerik.com/kendo-ui. You can find Kendo UI demos online here: http://demos.telerik.com/kendo-ui

Slides:

Video:

Questions:

Q: Hi, SignalR is an advanced topic related to Web Sockets or Server Sent Events etc. Or it rely on these architecture?
A: SignalR is a real time communication technology on ASP.NET Stack from Microsoft.

Q: In order for the server to do real-time communication with SignalR, should the server be an IIS web server ?
A: SignalR at the moment can be hosted in IIS or as a stand alone process. But this requires you to be on Windows platform.

Q: Can we use Telerik controls with SignalR?
A: Absoutely. Telerik Kendo UI has specific binding/ support for SignalR.

Q: SignalR is purely async based or can it be set to be in sync mode like the way node.js is an async by default but can be set to mode sync?
A: SignalR is a server side technology and all it does is to keep track of all the clients connected and intimate them of any updates. So typically server sends a broadcast to all connected client and clients know how to react to this update on the client side.

Q: What is the most important advantage of SignalR ?
A: Real Time Communication between Server & Client.

T-Shirt Winners:

As usual we have picked 2 attendees randomly to receive our T-Shirts. They are:

  • Sonam Bhardwaj
  • Kapil Chhabra

Congratulations to the winners. We will contact you shortly on your registered email id. Rest of you, do keep attending our future webinars.

Till next time – Happy Coding.

ASP.NET vNext

Resources for Webinar “Getting Started with ASP.NET vNext”

On Feb 5th we conducted a webinar @ 3PM IST. This is part of our Telerik India Webinar initiative. This week the title of the webinar was “Getting Started with ASP.NET vNext”.

 

About ASP.NET 5:

ASP.NET vNext has been now named as ASp.NET 5 by Microsoft. ASP.NET 5 is a lean and composable framework for building web and cloud applications. ASP.NET 5 is fully open source and available on GitHub. ASP.NET 5 is currently in preview.

Slide Deck:

Here is the slide deck that i used in this webinar:

Video Recording:

As usual we have recorded this webinar and here is the video recording of the webinar:

 

T-Shirt giveaway:

And here are the two attendees who have been picked up in random to recieve our .NET Ninja T-Shirts. The names are:

  • Inderpal Singh Uppal
  • Venkata Rao Penta

Congratulations to the winners. Rest of you, dont worry – we still have a lot of webinars lined for the year. So keep attending our webinars and try your luck.

 

Till next time, Happy Coding.

Sitefinity

Resources for Webinar – “Jumpstart your ASP.NET Project Development with Sitefinity Platform”

On Dec 11 2014, we conducted a webinar titled “Jumpstart your ASP.NET Project Development with Sitefinity Platform”.  This time the emphasis was on our Content Management Solution or CMS software that we have called “Sitefinity”. One of our Sales Engineer from Sofia delivered this webinar. This blog post is a recap of the webinar. if you missed attending the webinar, you will be able to catch up on the slide deck, video recording and questions from the webinar as part of this blog post

About Sitefinity:

Sitefinity is a content management system (CMS) that you use to create, store, manage, and present content on your website. Content and pages in Sitefinity are multilingual and you can use one Sitefinity instance to manage multiple sites that can share content. To know more about Sitefinity, head over to this URL: http://www.sitefinity.com/

Slide Deck:

Here is the slide deck that was used in the webinar:

 

Video Recording:

Here is the video recording of the webinar:

 

Q&A:

Here are the questions that were asked as part of the webinar:

Q: Can we add custom SEO tags and page categories or type like news or blogs?
A: Yes. We have News/Blogs supported out of the box.

Q: Besides news and blog, can we have our custom page type?
A: Yes. You can create your own custom content type

Q: Is there a software available for use with our servers ? or we should use the site being used by Greg?
A: Sitefinity is a software you download. and deploy to your server. you can then design you site

Q: Is trial version available?
A: Yes. just head over to http://www.sitefinity.com

Q: My client wants the CMS to also have workflows?
A: Workflows are supported in Sitefinity. You can create your custom workflow with Windows Workflow Foundation.

Q: RadControls are also available along with same Sitefinity licence ?
A: Yes. But its usage has to be within the Sitefinity project. You cannot use it to create a standalone ASP.NET project. The licensing terms will not allow it

Q: Is there any connector available in Sitefinity to integrate with media maintained outside, e.g. in a DAM?
A: We have connectors for SharePoint, Marketo and SalesForce. Sitefinity is all web services under the hood. you can create your own by hooking in to sitefinity events

Q: Which .net framework is required to deploy the project
A: Here is the system requirements for Sitefinity – http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/install-sitefinity/system-requirements-

Q: How sitefinity can help in scenarios where load balancers are used?
A: Documented here – http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/load-balancing

T-Shirt Winners:

We have selected the following 2 attendees from the webinar (randomly) who will recieve our t-shirts. They are:

  • Anurag Agarwal
  • Sathish Potta

Congratulations to the winners. We will contact you on your email and ship the t-shirts.

Till next time, Happy Coding.

RadHtmlChart LinqDataSource

How to bind LinqDataSource to RadHtmlChart for ASP.NET AJAX

Introduction:

RadHtmlChart which is a charting component in RadControls for ASP.NET AJAX suite supports binding to variety of data sources. In this post we will look at a scenario where we will see how to bind the RadHtmlChart to LinqDataSource. So the rest of this post is about how to achieve databinding linq data source to RadHtmlChatrt. So lets get started. First we will look at creating a new project in Visual Studio, then we will add a Data Context to the project, then add a LinqDataSource & use the data context to return top 10 products from Northwind database and finally add RadHtmlChart and see how to use LinqDataSource as the source of the chart.

Creating New Project:

To get started, let’s first create a new “C# RadControls Web Application”. Note you need to have our RadControls for ASP.NET suite installed before you can do this. Open a Visual Studio, select File > New Project > Telerik > Web and C# RadControls Web Application.

imageFigure 1: New Project Dialog

Visual Studio will go ahead and create a Web Application. It will have a single page named Default.aspx. For the rest of the demo, we will work with this page.

Add Northwind Data Context:

In order to work with Linq Data Source, I will create a Entity Data Context using our OpenAccess ORM. OpenAccess is a free tool to download and you can use this in your production too without any licensing involved. First Add New Item to your project of type “Telerik OpenAccess Domain Model”. Give it a name and click Ok.

SNAGHTML20d3224b

Figure 2: Add New Item dialog

You will next be presented with a wizard. Here is the wizard dialog screen shots and the settings I have done:

SNAGHTML20d8441d

Figure 3: OpenAccess Model Type

SNAGHTML20d8e599

Figure 4: Database Connection

SNAGHTML20da3474

Figure 5: Database Items – Products Table Selected

SNAGHTML20dafe38Figure 6: Naming Rules

SNAGHTML20dd52ec

Figure 7: Code Generation Settings

Once you click finish, the wizard will create a .rlinq file in your project. If you double click the rlinq file, you will get a visual designer. For this post I have selected only Products table. So you will see the products table visually laid out:

image

Figure 8: OpenAccess Data Model

Next we will see how to add a LinqDataSource and hook that with our data model to return the products data.

Add LinqDataSource:

In order to add LinqDataSource to your page, you can either drag and drop from the tool box or directly code the tag in the source file. What we will do for this demo is, we will handle a specific event called OnSelecting. In the event handler we will instantiate our OpenAccess data model and return the top 10 products ordered by UnitPrice in descending order. Here is the code which defines LinqDataSource control on the page:

<asp:LinqDataSource ID="LinqDataSource1"
        runat="server"
        OnSelecting="LinqDataSource1_Selecting">
    </asp:LinqDataSource>

Here is the event handler definition:

protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
    {
        NorthwindDataModel context = new NorthwindDataModel();
        e.Result = context.Products
                          .OrderByDescending(p => p.UnitPrice)
                          .Take(10);
    }

Now that we have the data model and the linq data source only thing left out is to add the RadHtmlChart and bind it to linq data source.

Add RadHtmlChart:

So now we are ready to add the chart. You can either drag & drop the chart from the toolbox on to the page or code the chart definition directly on the page. In this post I will just add the RadHtmlChart code and highlight the main points you need to take care while wiring it with LinqDataSource.

So here is my chart definition:

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1"
                DataSourceID="LinqDataSource1" Width="1000" Height="700">
                <PlotArea>
                    <Series>
                        <telerik:ColumnSeries DataFieldY="UnitPrice" Name="Price">
                            <LabelsAppearance>
                                <TextStyle Bold="true" FontSize="15" Color="Orange" />
                            </LabelsAppearance>
                            <TooltipsAppearance Visible="false" />
                        </telerik:ColumnSeries>
                    </Series>
                    <XAxis DataLabelsField="ProductName">
                        <LabelsAppearance RotationAngle="90" />
                        <MajorGridLines Visible="false" />
                        <MinorGridLines Visible="false" />
                    </XAxis>
                    <YAxis>
                        <LabelsAppearance><TextStyle Bold="true" /></LabelsAppearance>
                        <TitleAppearance Text="Units" />
                        <MinorGridLines Visible="false" />
                    </YAxis>
                </PlotArea>
                <Legend>
                    <Appearance Visible="false" />
                </Legend>
                <ChartTitle Text="Top 10 Products by Price">
                </ChartTitle>
            </telerik:RadHtmlChart>

Here are the things you need to do for wiring up the chart with LinqDataSource:

  • On the chart set the DataSourceID property to the ID of the LinqDataSource
  • When you define a series, set the DataFieldY property to a value “UnitPrice”. Here UnitPrice is the column in my data source which I want to bind and plot the points on Y axis
  • On the XAxis definition, set the DataLabelsField property to a value “ProductName”. Here ProductName is the column to which I want to bind and plot the XAxis points.

And that’s all its there to wiring up the RadHtmlChart to LinqDataSource. Now build the project and run to see the output. Here is a screenshot of the chart we just created:

image

Figure 9: RadHtmlChart output

Summary:

In this blog post I wanted to show one of the data binding option that RadHtmlChart supports – namely LinqDataSource. As we have seen it is very easy to create a LinqDataSource and bind it to RadHtmlChart. We just need to take care of 3 things to make the chart work with the LinqDataSource. I hope this blog post gives you a head start if you are working with LinqDataSource and the RadHtmlChart. Do let us know your feedback/comment you may have on this post.

Till next time – Happy Coding.