Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Non-refreshing table paging sorting achieving method and device

A table and paging technology, applied in the computer field, can solve problems such as difficulties and poor experience, and achieve the effect of powerful functions, reduced difficulty, and simple design

Inactive Publication Date: 2016-07-06
INSPUR COMMON SOFTWARE
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Limited by the characteristics of the Web interaction mode (that is, the need to continuously interact with the background server for data), it is more difficult to return the corresponding result after performing an operation similar to Winform on the Web, because if Through the traditional method, the entire page has to be refreshed as a whole to see the returned results. This is not a very good experience for use, and it corresponds to a large amount of development such as paging, sorting, and background data binding.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Non-refreshing table paging sorting achieving method and device
  • Non-refreshing table paging sorting achieving method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] Define the properties of the table in the designer: whether to paginate, whether to automatically sort, the number of records on a single page, the alternate color of the row, the properties of the data source object, the height of the table, etc., specify the bound field and display name of the changed column in each column , width, style, alignment and other information, you can quickly complete the definition and display of a table.

[0022] Configuration item: configure the processing node in web.config:

[0023]

[0024]

[0025]

[0026]

[0027] The first node is the processing node of the Ajax component, and the second node is the processing node of the form component.

[0028] Support for two data sources:

[0029] 1. Background data source definition method:

[0030] Implement the IGetDataSource interface, and complete the return of the data source in the interface, as shown below:

[0031] #regionIGetDataSource member

[0032] publicDataTableGetD...

Embodiment 2

[0062] In the present invention, by encapsulating a set of designed form components, typesetting and definition can be performed in the designer directly by dragging and dropping, and finally a Web form that can display data without refreshing is displayed. Simple design and powerful functions are the biggest features of this form, which can realize powerful functions and reduce the difficulty of development at the same time.

[0063] How to use the form:

[0064] 1. Define HTML tags

[0065]

[0066]

[0067]

[0068]

[0069]

[0070]

[0071] HTML attribute description (table attribute):

[0072] allow paging

Whether to allow pagination

allow sorting

Whether to allow sorting

downcolor

click row color

pagesize

Number of records on a single page

AllowAlterBgColor

Allow rows to alternate colors

SQLString

check sentence

ShowLeftBar

Whether to show the left column

[0073] HTML attri...

Embodiment 3

[0085] Such as figure 2 As shown, the implementation steps are as follows:

[0086] 1) When the web page is loaded, control scripts and public methods related to the directional data Grid in the page, including requesting background ashx file address, parameters, table height setting, paging and sorting method generation and other information.

[0087] 2) When the sorting or paging button is clicked, the defined processing function is encapsulated through JavaScript, and the request is sent to the server through ajax.

[0088] 3) The server obtains the corresponding data set through the reflection call of the data source interface.

[0089] 4) With the help of the Microsoft DataGrid control, data binding is performed on the data set, and at the same time, operations such as summation, row merging, and binding events are processed during the binding process.

[0090] 5) Convert the result output generated by the binding into HTML tags, and finally pass the generated HTML tag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a non-refreshing table paging sorting achieving method and device, and belongs to the technical field of computers.A Web table assembly is dragged to a web page designer in a visual studio designer in a control mode for use, and attributes of the table are defined in the designer; definition and display of a table can be rapidly completed by judging whether paging is performed or not and whether automatic sorting is performed or not, and determining the single-page recording number, the row alternate color, data source object attributes, table height, a binding field of a designated column changing in each column, the display name, the width, the format and the alignment mode.According to the non-refreshing table paging sorting achieving method and device, the functions of non-refreshing background data loading, automatic paging, automatic sorting, page self-adaption, table head fixation, table editing and the like are achieved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a device for realizing page sorting tables without refreshing. Background technique [0002] In most web developments, table controls have always been a frequently used and complex control in web applications. [0003] Limited by the characteristics of the Web interaction mode (that is, the need to continuously interact with the background server for data), it is more difficult to return the corresponding result after performing an operation similar to Winform on the Web, because if In the traditional way, the entire page has to be refreshed as a whole to see the returned results. This is not a very good experience for use, and it corresponds to a large amount of development such as paging, sorting, and background data binding. Contents of the invention [0004] The technical task of the present invention is to address the above deficiencies, provide a method an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/958
Inventor 李海啸
Owner INSPUR COMMON SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products