Problems with Length dropdown
Problems with Length dropdown
kubiix
Posts: 5Questions: 0Answers: 0
Hi,
I am using this amazing plugin, but I have found one little problem. I have defined custom values for the page length dropdown (10,25,50,100,All) menu and i also set option iDisplayLength and iDisplayStart every time i call .dataTable(...
I send actual iDisplayLength and iDisplayStart values to the edit page so when user returns, he returns to same page with same pagelength. The default iDisplayLength is 10 so it is the first option in dropdown. But when user switches to bigger value, then edits one row and returns back, the table is rendered right, but first option in the dropdown is selected, when Opera browser is used. FF, IE and Chrome are ok and right option is selected
thanks
I am using this amazing plugin, but I have found one little problem. I have defined custom values for the page length dropdown (10,25,50,100,All) menu and i also set option iDisplayLength and iDisplayStart every time i call .dataTable(...
I send actual iDisplayLength and iDisplayStart values to the edit page so when user returns, he returns to same page with same pagelength. The default iDisplayLength is 10 so it is the first option in dropdown. But when user switches to bigger value, then edits one row and returns back, the table is rendered right, but first option in the dropdown is selected, when Opera browser is used. FF, IE and Chrome are ok and right option is selected
thanks
This discussion has been closed.
Replies
Allan
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
$(document).ready(function () {
var oTable = $('#partnerlist').dataTable(
{
"sPaginationType": "digg_style", // vlastni strankovaci plugin
"oLanguage": // ceska lokalizace
{
"sUrl": "../content/txt/cs_CZ.txt"
},
"bFilter": true, // zapnout prohled