Flexigrid - Lightweight but rich data grid |
[eluser]paulopmx[/eluser]
[quote author="wardenik" date="1207800395"]Ok then, if it is not for styling, then where is the problem of dropping the declaration and using the header model derived from the table <thead> itself? ![]() As I explained in my previous post, I encountered differences among browsers on how they handle cells without width but with content. Allowing the user to set the width in the cell gives me an idea, on what he/she expects ![]()
[eluser]wardenik[/eluser]
[quote author="paulopmx" date="1207801008"][quote author="wardenik" date="1207800395"]Ok then, if it is not for styling, then where is the problem of dropping the declaration and using the header model derived from the table <thead> itself? ![]() As I explained in my previous post, I encountered differences among browsers on how they handle cells without width but with content. Allowing the user to set the width in the cell gives me an idea, on what he/she expects ![]() But you know that you deny yourself this way. This is *exactly* styling the output (i.e. hinting the style/layout) ![]()
[eluser]paulopmx[/eluser]
[quote author="wardenik" date="1207801197"][quote author="paulopmx" date="1207801008"][quote author="wardenik" date="1207800395"]Ok then, if it is not for styling, then where is the problem of dropping the declaration and using the header model derived from the table <thead> itself? ![]() As I explained in my previous post, I encountered differences among browsers on how they handle cells without width but with content. Allowing the user to set the width in the cell gives me an idea, on what he/she expects ![]() But you know that you deny yourself this way. This is *exactly* styling the output (i.e. hinting the style/layout) ![]() Styling the output yes, but not *exactly* of the td tag itself (i.e. styling is transfered on a div inside the td), which was the basis of your concern in the first place ![]()
[eluser]wardenik[/eluser]
[quote author="paulopmx" date="1207801531"][quote author="wardenik" date="1207801197"][quote author="paulopmx" date="1207801008"][quote author="wardenik" date="1207800395"]Ok then, if it is not for styling, then where is the problem of dropping the declaration and using the header model derived from the table <thead> itself? ![]() As I explained in my previous post, I encountered differences among browsers on how they handle cells without width but with content. Allowing the user to set the width in the cell gives me an idea, on what he/she expects ![]() But you know that you deny yourself this way. This is *exactly* styling the output (i.e. hinting the style/layout) ![]() Styling the output yes, but not *exactly* of the td tag itself (i.e. styling is transfered on a div inside the td), which was the basis of your concern in the first place ![]() Erm, not at all. I am not at all afraid about styling problems. I just do not want ANY styling in the table model because it is simply not needed ![]() What is done afterwards (i mean after () is run, and table is changed to divs) i don't care ![]()
[eluser]paulopmx[/eluser]
[quote author="wardenik" date="1207801852"][quote author="paulopmx" date="1207801531"][quote author="wardenik" date="1207801197"][quote author="paulopmx" date="1207801008"][quote author="wardenik" date="1207800395"]Ok then, if it is not for styling, then where is the problem of dropping the declaration and using the header model derived from the table <thead> itself? ![]() As I explained in my previous post, I encountered differences among browsers on how they handle cells without width but with content. Allowing the user to set the width in the cell gives me an idea, on what he/she expects ![]() But you know that you deny yourself this way. This is *exactly* styling the output (i.e. hinting the style/layout) ![]() Styling the output yes, but not *exactly* of the td tag itself (i.e. styling is transfered on a div inside the td), which was the basis of your concern in the first place ![]() Erm, not at all. I am not at all afraid about styling problems. I just do not want ANY styling in the table model because it is simply not needed ![]() What is done afterwards (i mean after () is run, and table is changed to divs) i don't care ![]() Ehem, then you don't have to, use a colModel. Using a colModel, only requires you to put a table with either a class or an id. The thead, tbody, tr, or td with any styling is simply won't be needed ![]() What approach you take in using the plugin is really up to you. An approach is optional not required, but taking one approach does have a requirement. You want less html, then you are required to put in a little more settings through javascript, or if you want less javascript, then you are required to put in a little more attributes in your html. Either way people care about the outcome, and in order for the plugin to know what they want, they have to tell the plugin what they want.
[eluser]ecarsted[/eluser]
Heya Paulo, Armorfist I got the cell click thingy working ![]() In Armofist's example online, he shows the add , delete icons on every row. Question I have is how did you get the icons to the cell? Looking at Amorfist's code it looks like he added to the CSS. But I can't figure out what he did. What I want to do is put a little info icon in the cell, and when they click it, I process another query to get detail data. I guess I need to figure out what the id is for that row too. Eric
[eluser]paulopmx[/eluser]
[quote author="ecarsted" date="1207804972"]Heya Paulo, Armorfist I got the cell click thingy working ![]() In Armofist's example online, he shows the add , delete icons on every row. Question I have is how did you get the icons to the cell? Looking at Amorfist's code it looks like he added to the CSS. But I can't figure out what he did. What I want to do is put a little info icon in the cell, and when they click it, I process another query to get detail data. I guess I need to figure out what the id is for that row too. Eric[/quote] Hi, Eric You can use the process API to create a link with a class like so: Code: '<a href="323" class="add"></a>' Then in your style the CSS for al link with the class "add"; Code: a.add something like that.
[eluser]ecarsted[/eluser]
[quote author="paulopmx" date="1207808198"] Hi, Eric You can use the process API to create a link with a class like so: Code: '<a href="323" class="add"></a>' Then in your style the CSS for al link with the class "add"; Code: a.add something like that.[/quote] Okay, I cheated, I added the same onclick process to every cell in the model, it is the behavior I am looking for (select a row); Is there any downside to this? I know you posted somewhere how to get the row id so I can create a call to get the details for that record, but I cant find it paging back and forth the pages of the forum. It is starting to get long lol! Eric
[eluser]dark_lord[/eluser]
[quote author="Armorfist" date="1207535432"]Just to announce that my integration of Flexigrid with CodeIgniter is ready. You can see/download it here: http://flexigrid.eyeviewdesign.com/ Any suggestions / bugs / whatever mail me. NOTE: I just started to work with Ajax/Jquery so bare with me. Hope you like it.[/quote] Ei, armor? I have used your code snippet for the CI integration of Flexigrid, but when I deploy all of your files from what you have specified, still it does not query or show any data at all. What could I possibly missed out? reconfiguring? I have set the database name to the database that i am using. still no luck.. Please help me I am stock.
[eluser]Armorfist[/eluser]
[quote author="wish_bear" date="1207854967"] Ei, armor? I have used your code snippet for the CI integration of Flexigrid, but when I deploy all of your files from what you have specified, still it does not query or show any data at all. What could I possibly missed out? reconfiguring? I have set the database name to the database that i am using. still no luck.. Please help me I am stock.[/quote] Could be a path problem, did you deploy the files in a fresh CI instalation? |
Welcome Guest, Not a member yet? Register Sign In |