Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footable on nested repeater adds comma in textbox #64

Closed
mkashif130 opened this issue Apr 22, 2013 · 5 comments
Closed

footable on nested repeater adds comma in textbox #64

mkashif130 opened this issue Apr 22, 2013 · 5 comments

Comments

@mkashif130
Copy link

I have a repeater inside a repeater (that is nested repeater) and applied foo table on it. problem is , when foo table is applied on the repeater (that is , when it is in tablet or cell phone format) a comma is added in textbox. eg: if I enter "empty" in textbox it shows as ",empty" . if i remove ",empty" and add "empty1" then it will show ",empty1,emtpy" in textbox. when i open the page in desktop or laptop view no commas are inserted , even if they are inserted in tablet and cell phone view on resizing them to desktop commas disappear. It is because of footable . tried a lot but didnot find the solution. Any idea?

@bradvin
Copy link
Member

bradvin commented Apr 22, 2013

Please can you post an example of this issue on codepen of jsfilddle

@mkashif130
Copy link
Author

Thanks bradvin for taking some time out for the issue.

This is what I entered when foo table is applied.
image

This is what it becomes after hitting save button:
image

This is a sample project I created for you. it is telerik based asp.net project , you will need visual studio 2010 to run it , I don't know if you can manage to run it or not. but I don;t know how to use fiddler for asp.net and telerik.

http://wikisend.com/download/118354/Test.rar

link will expire in 7 days.

@bradvin
Copy link
Member

bradvin commented Apr 23, 2013

Thanks for posting the project - I got it running and saw what the issue is. When the footable creates the detail row, it duplicates the contents of the cells. So in your example it duplicates the inputs. Your asp.net site works off unique names for each control, so the values gets passed back to the form as a comma separated list (because there are 2 controls with the same name) and a comma is inserted.

You either need to handle the ajax call manually and not rely on the asp.net postback system via the telerik ajax handler, or you need to intercept when footable is creating the detail row.

I will add some code to raise an event when the detail row is created. I will comment here once I have done that

@mkashif130
Copy link
Author

Thanks , your help will be highly appreciated.

@bradvin
Copy link
Member

bradvin commented Apr 24, 2013

there is now a new event raised when creating or updating the detail row : b35da00

You will still need to be quite clever how you do this to get it working. I was thinking perhaps appending "_hidden" to the name and id of the inputs when they are created in the detail row, and removing the "_hidden" when the breakpoint is not hit and then appending _hidden to the inputs in the detail row

@bradvin bradvin closed this as completed Apr 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants