Member 13996746 Ответов: 0

Динамическая привязка вкладок и gridviewinside этих вкладок


Hi, I am stuck in a scenario, could you please help me out with this?
 
The scenario is - I have a DataSet and some tables in it which will be loaded at run time so basically I don't know how many tables are there in DataSet and what will be there names. Now I want to create tabs at run time same as the Table names available in DataSet at run time for ex:- If there are 3 tables names 'A', 'B' and 'C' in DataSet then 3 tabs should be created with names 'A', 'B' and 'C', if more than / less than that then same bumber of tabs should be created. After this I want one GridView in each tab and want to bind the table data in run time with this grid, so basically when I will click on 'A' tab, date from 'A' table should be bind in the associated GridView and so on.
 
Apart from this I want 4 static columns for each grid - Column1- Checkbox (with select all) so that I can select the records and perform some action on the selected records. Column2- A dropdown which user can select at run time with 3-4 values like 'X', 'Y', 'Z' etc. Column3- Text box so that user can type some value in it. and one blank non editable column in which I will update an hyperlink after performing action.
 
An last thing there will be a button after the GridView and on clicking this button I have to perform some task which will take 5-10 minutes so till then there should be any loader image or progress bar should be displayed.
 
I have looked for so many solutions but couldn't find any one solving my problem. I also tried with Repeater control but couldn't complete it.
 
I will be thankful to you if you guys can help me out with this problem.
 
Thanks in Advance 


Что я уже пробовал:

I have looked for so many solutions but couldn't find any one solving my problem. I also tried with Repeater control but couldn't complete it.
 
I

F-ES Sitecore

Obviously you're not going to find a solution that exactly matches your requirements, and your question simply comes across as a request for us to do your (considerable) work for you. Instead you have to break the problem down into parts and solve each part. So find out how to do dynamic tabs in asp.net (you could use jquery ui for the tabs) so google something like "jquery ui dynamic tabs asp.net". If you want to add custom columns to a gridview look for any in-depth tutorial on gridview custom columns and databound columns and they'll show you how to mix the two. Gridview tutorials will also show you how to add buttons to do actions on those rows. If you want a long-running task you might be better using ajax rather than a button postback so google how to do jquery ajax calls from an asp.net button.

Ваша проблема охватывает множество различных технологий и техник, и это не тривиальная задача, поэтому я боюсь, что вам просто придется погуглить и научиться. Если вы застряли на чем-то конкретном, то не стесняйтесь задавать конкретные вопросы о конкретных проблемах.

Member 13996746

Спасибо за ответ, как вы сказали, я разбил его на части, я могу создавать динамические вкладки с помощью jquery, но проблема возникает с динамической привязкой сетки. Вы правы, что я новичок в этом деле и пытаюсь гуглить вещи, и я нашел вышеупомянутое решение с вашей стороны, поэтому и обратился за помощью. Я не хотел писать код для себя, но мне было бы очень полезно, если бы вы могли предоставить мне лучший подход для этого (а не кодировать только путь, по которому я должен следовать) или некоторые ссылки, на которые я могу ссылаться, кстати, большое спасибо за ответ.

0 Ответов