asp.net mvc - specifying data bind attributes in twitterbootstrap.mvc -
i using knockout js , twitter-bootstrap.mvc4....
i not able combine 2 specify customer data binding attributes
@html.textboxfor(m => m.id, new dictionary<string, object> { { "data-bind", "value: suppliername" } })
but how in bootstrap
@html.bootstrap().textboxfor( m=> m.id).... ????
the textboxfor in bootstrap takes 1 parameter. there other way specify it?
i'm assuming this project you're using since can't find exact match "twitter-bootstrap.mvc4" or "twitterbootstrap.mvc". (when referencing third-party library you're using, provide source link in case not familiar it.)
looking @ source code, indeed take 1 parameter, basically, you're sol. is open source, though, there's nothing stopping forking , creating own version or contributing directly project (just create new ticket , submit patch).
fwiw, you're killing new dictionary<string, object>
jazz. do:
@html.textboxfor(m => m.id, new { data_bind = "value: suppliername" })
Comments
Post a Comment