Click here to Skip to main content
15,908,111 members
Home / Discussions / Web Development
   

Web Development

 
PraiseRe: Open Snippingtool by HTML or by HTA Pin
Member 1326358622-Jun-17 8:13
Member 1326358622-Jun-17 8:13 
GeneralRe: Open Snippingtool by HTML or by HTA Pin
ZurdoDev22-Jun-17 8:15
professionalZurdoDev22-Jun-17 8:15 
GeneralRe: Open Snippingtool by HTML or by HTA Pin
Richard Deeming22-Jun-17 8:30
mveRichard Deeming22-Jun-17 8:30 
Question" How can add a new TABLE in NOPCOMMERCE? Pin
Member 1283740721-Jun-17 5:30
Member 1283740721-Jun-17 5:30 
AnswerRe: " How can add a new TABLE in NOPCOMMERCE? Pin
Richard MacCutchan21-Jun-17 5:50
mveRichard MacCutchan21-Jun-17 5:50 
QuestionSwitch between angular UI Router tabs with same state and different parameters Pin
NeelamParmar13-Jun-17 20:10
NeelamParmar13-Jun-17 20:10 
QuestionMessage Closed Pin
13-Jun-17 17:46
CheatHacker.com13-Jun-17 17:46 
AnswerRe: How To Get Google Rank In USA Pin
Richard MacCutchan13-Jun-17 21:46
mveRichard MacCutchan13-Jun-17 21:46 
AnswerRe: How To Get Google Rank In USA Pin
camillebo16-Jun-17 13:40
camillebo16-Jun-17 13:40 
GeneralRe: How To Get Google Rank In USA Pin
CheatHacker.com16-Jun-17 19:49
CheatHacker.com16-Jun-17 19:49 
QuestionHow can I pass the user id to the homepage after registration? And I also want to save that id? I'm using Laravel 5.4? And doing registration with auth Pin
Danish Tahir24-May-17 3:22
Danish Tahir24-May-17 3:22 
QuestionIs there a secure way to perform an API request from clientside script? Pin
Member 109773610-May-17 8:26
Member 109773610-May-17 8:26 
QuestionLayout Elements Horizontally Pin
Kevin Marois9-May-17 12:26
professionalKevin Marois9-May-17 12:26 
AnswerRe: Layout Elements Horizontally Pin
Richard Deeming10-May-17 1:08
mveRichard Deeming10-May-17 1:08 
GeneralRe: Layout Elements Horizontally Pin
Kevin Marois10-May-17 4:57
professionalKevin Marois10-May-17 4:57 
GeneralRe: Layout Elements Horizontally Pin
Richard Deeming10-May-17 5:35
mveRichard Deeming10-May-17 5:35 
GeneralRe: Layout Elements Horizontally Pin
Kevin Marois10-May-17 5:40
professionalKevin Marois10-May-17 5:40 
GeneralRe: Layout Elements Horizontally Pin
MikeSpock2-Jun-17 0:38
professionalMikeSpock2-Jun-17 0:38 
QuestionChange WebGrid RowsPerPage During Runtime Pin
Kevin Marois9-May-17 11:43
professionalKevin Marois9-May-17 11:43 
I have a WebGrid on a page, and I added a Combox Box with 10,25, and 50 as items. When the user selects one I want to change the WebGrid's RowsPerPage accordingly. So far I have the following:

Controller CTOR
public HomeController()
{
    ViewData["RowPerPage"] = 10;
}

HTML
var grid = new WebGrid(Model, rowsPerPage: Convert.ToInt32(ViewData["RowPerPage"]), canPage: true, ajaxUpdateContainerId: "divData");

Combo Box
<div id="headerLeft" style="position: relative; width:50%; float:left">
    <label >Show</label>
    <select id="rowsperpage" name="rowsperpage" onchange="updateRowsPerPage(this)">
        <option value="10">10</option>
        <option value="25">25</option>
        <option value="50">50</option>
    </select>
    <label >rows</label>
</div>
JavaScript
function updateRowsPerPage(selectedObject) {

    var selectedRowsPerPage = selectedObject.value;  

    // How do I make the Rows Per Page change here?
}
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Change WebGrid RowsPerPage During Runtime Pin
Richard Deeming10-May-17 1:38
mveRichard Deeming10-May-17 1:38 
GeneralRe: Change WebGrid RowsPerPage During Runtime Pin
Kevin Marois10-May-17 6:27
professionalKevin Marois10-May-17 6:27 
JokeRe: Change WebGrid RowsPerPage During Runtime Pin
Richard Deeming10-May-17 7:04
mveRichard Deeming10-May-17 7:04 
QuestionReload WebGrid From Controller Pin
Kevin Marois9-May-17 11:08
professionalKevin Marois9-May-17 11:08 
AnswerRe: Reload WebGrid From Controller Pin
Richard Deeming10-May-17 1:04
mveRichard Deeming10-May-17 1:04 
GeneralRe: Reload WebGrid From Controller Pin
Kevin Marois10-May-17 5:55
professionalKevin Marois10-May-17 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.