Skip to content

Commit d928122

Browse files
author
Serkant Samurkas
committed
date and numeric range components have been added
1 parent de1ce15 commit d928122

File tree

71 files changed

+2615
-805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2615
-805
lines changed

Sobiens.Web.Components.TutorialServices/Controllers/CustomersController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public ServiceResult<List<Customer>> Get(int pageIndex, int pageItemCount, strin
1818
ServiceResult<List<Customer>> result = new ServiceResult<List<Customer>>(null);
1919

2020
List<Customer> customers = db.Customers.ToList();
21-
21+
int skipCount = pageIndex * pageItemCount;
2222
if (string.IsNullOrEmpty(sort) == false)
2323
{
2424
string[] sortsValues = sort.Split(new char[] { ',' });
@@ -39,7 +39,10 @@ public ServiceResult<List<Customer>> Get(int pageIndex, int pageItemCount, strin
3939
customers = customers.OrderByDescending(x => propertyInfo.GetValue(x, null)).ToList();
4040
}
4141
}
42+
result.TotalItemCount = customers.Count;
43+
customers = customers.Skip(skipCount).Take(pageItemCount).ToList();
4244

45+
result.NextPageExist = result.TotalItemCount > ((pageIndex + 1) * pageItemCount) ? true : false;
4346
result.Data = customers;
4447
result.Succeed = true;
4548
return result;

Sobiens.Web.Components/Controls/SobyGridSideMenuControl.ascx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<li><a href="/Tutorials/SobyGrid/StaticDataBinding.aspx">Static Data Binding</a></li>
1717
<li><a href="/Tutorials/SobyGrid/WebAPIOData.aspx">Web API and OData Implementation</a></li>
1818
<li><a href="/Tutorials/SobyGrid/SPDataBinding.aspx">SP Data Binding</a></li>
19+
<li><a href="/Tutorials/SobyGrid/ExtendingDataBinding.aspx">Extending Data Binding</a></li>
1920
<li><a href="/Tutorials/SobyGrid/CustomDataBinding.aspx">Custom Data Binding</a></li>
2021
</ul></li>
2122
<li><a href="/Tutorials/SobyGrid/RefreshData.aspx">Refresh Data</a></li>
@@ -34,7 +35,7 @@
3435
<li><a href="/Tutorials/SobyGrid/NestedGrids.aspx">Nested Grids</a></li>
3536
<li><a href="/Tutorials/SobyGrid/Master-Details.aspx">Master-Details</a></li>
3637
<li style="display:none"><a href="/Tutorials/SobyGrid/ContextMenu.aspx">Context Menu</a></li>
37-
<li style="display:none"><a href="/Tutorials/SobyGrid/KeyboardNavigation.aspx">Keyboard Navigation</a></li>
38+
<li><a href="/Tutorials/SobyGrid/KeyboardNavigation.aspx">Keyboard Navigation</a></li>
3839
<li><a href="/Tutorials/SobyGrid/Themes.aspx">Themes</a></li>
3940
<li>Labs<ul><li><a href="/Tutorials/SobyGrid/Customer Orders.aspx">Customer Orders</a></li></ul></li>
4041
</ul>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SobyRangeSelectionSideMenuControl.ascx.cs" Inherits="Sobiens.Web.Components.Controls.SobyRangeSelectionSideMenuControl" %>
2+
<a href="/download/Versions.aspx" style="background-color:#7b4f9d;width: 150px;color:white;text-align:center;display:block;position:relative;padding-top:5px;padding-bottom:5px;font-weight:bold">Download</a>
3+
<h3>Tutorials</h3>
4+
<ul>
5+
<li><a href="/Tutorials/SobyRangeSelection/Getting Started.aspx">Getting Started</a></li>
6+
<li><a href="/Tutorials/SobyRangeSelection/DateRangeSelection.aspx">Date Range Selection</a></li>
7+
8+
</ul>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.UI;
6+
using System.Web.UI.WebControls;
7+
8+
namespace Sobiens.Web.Components.Controls
9+
{
10+
public partial class SobyRangeSelectionSideMenuControl : System.Web.UI.UserControl
11+
{
12+
protected void Page_Load(object sender, EventArgs e)
13+
{
14+
15+
}
16+
}
17+
}

Sobiens.Web.Components/Controls/SobyRangeSelectionSideMenuControl.ascx.designer.cs

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sobiens.Web.Components/Scripts/Tutorials/WebAPI/Grid/themes.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sobiens.Web.Components/Scripts/Tutorials/WebAPI/Grid/themes.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sobiens.Web.Components/Scripts/Tutorials/WebAPI/Grid/themes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function soby_PopulateGridThemes() {
1111
bookDataSourceBuilder.AddSchemaField("Year", SobyFieldTypes.Number, null);
1212
bookDataSourceBuilder.AddSchemaField("Price", SobyFieldTypes.Number, null);
1313
bookDataSourceBuilder.AddSchemaField("Genre", SobyFieldTypes.Text, null);
14+
bookDataSourceBuilder.RowLimit = 3;
1415
var bookService = new soby_WebServiceService(bookDataSourceBuilder);
1516
bookService.Transport.Read = new soby_TransportRequest(soby_GetTutorialWebAPIUrl() + "/Books", "json", "application/json; charset=utf-8", "GET");
1617

Sobiens.Web.Components/Site.Master

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -104,55 +104,51 @@
104104
</div>
105105
</main>
106106
</div>
107+
<div class="content-wrapper">
108+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
109+
<!-- webcomponents.sobiens.com1 -->
110+
<ins class="adsbygoogle"
111+
style="display:block"
112+
data-ad-client="ca-pub-4194616049725980"
113+
data-ad-slot="4679367279"
114+
data-ad-format="auto"></ins>
115+
<script>
116+
(adsbygoogle = window.adsbygoogle || []).push({});
117+
</script>
118+
119+
</div>
120+
107121
</div>
108122
<footer class="bd-footer py-5 mt-5 bg-dark">
109123
<div class="container py-5">
110124
<div class="row">
111125
<div class="col-lg-3 mb-3">
112-
<a class="d-inline-flex align-items-center mb-2 link-dark text-decoration-none" href="/" aria-label="Bootstrap">
113-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" class="d-block me-2" viewBox="0 0 118 94" role="img"><title>Bootstrap</title><path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z" fill="currentColor"></path></svg>
114-
<span class="fs-5">Soby Web Components</span>
126+
<a class="d-inline-flex align-items-center mb-2 link-dark text-decoration-none" href="/" aria-label="Soby Web Components">
127+
<span class="fs-5" style="color:white">Soby Web Components</span>
115128
</a>
116129
<ul class="list-unstyled small text-muted">
117-
<li class="mb-2">Code licensed <a href="https://github.com/twbs/bootstrap/blob/main/LICENSE" target="_blank" rel="license noopener">MIT</a></li>
130+
<li class="mb-2">&copy; 2006 - <a href="http://www.sobiens.com" target="_blank" title="Sobiens website">www.sobiens.com</a> </li>
131+
<li class="mb-2">Code licensed MIT</li>
118132
<li class="mb-2">Current version v1.9.0.1.</li>
119133
</ul>
120134
</div>
121135
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
122-
<h5>Links</h5>
136+
<h5 style="color:white">Links</h5>
123137
<ul class="list-unstyled">
124-
<li class="mb-2"><a href="/">Home</a></li>
125-
<li class="mb-2"><a href="/API%20Documentation/Grid/Grid.aspx">Docs</a></li>
126-
<li class="mb-2"><a href="/Tutorials/SobyGrid/Getting%20Started">Examples</a></li>
138+
<li class="mb-2"><a href="/" title="Soby Web Components">Home</a></li>
139+
<li class="mb-2"><a href="/API%20Documentation/Grid/Grid.aspx" title="Web components documentation">Docs</a></li>
140+
<li class="mb-2"><a href="/Tutorials/SobyGrid/Getting%20Started" title="Web components examples">Examples</a></li>
127141
</ul>
128142
</div>
129143
<div class="col-6 col-lg-2 mb-3">
130-
<h5>Guides</h5>
144+
<h5 style="color:white">Guides</h5>
131145
<ul class="list-unstyled">
132-
<li class="mb-2"><a href="/Tutorials/SobyGrid/Getting%20Started">Getting started</a></li>
146+
<li class="mb-2"><a href="/Tutorials/SobyGrid/Getting%20Started" title="Getting Started">Getting started</a></li>
133147
</ul>
134148
</div>
135149
</div>
136150
</div>
137151
</footer>
138-
<footer>
139-
<div class="content-wrapper">
140-
<div class="float-left">
141-
<p>&copy; 2006 - <a href="http://www.sobiens.com">www.sobiens.com</a> </p>
142-
</div>
143-
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
144-
<!-- webcomponents.sobiens.com1 -->
145-
<ins class="adsbygoogle"
146-
style="display:block"
147-
data-ad-client="ca-pub-4194616049725980"
148-
data-ad-slot="4679367279"
149-
data-ad-format="auto"></ins>
150-
<script>
151-
(adsbygoogle = window.adsbygoogle || []).push({});
152-
</script>
153-
154-
</div>
155-
</footer>
156152
</form>
157153
<!-- Global site tag (gtag.js) - Google Analytics -->
158154
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-20800451-2"></script>

Sobiens.Web.Components/Site.Mobile.Master

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)