 |
|
 |
this article is incomplete and very poor, it even has a working sample code!
|
|
|
|
 |
|
 |
not working if it is second level control
|
|
|
|
 |
|
 |
I really suffered by this article, I use datatable bind the Reoderlist as in this article, finally i find it is not working with ajaxToolkit:Accordion, actually i think it will never work if you set Reoderlist as second level control. I go back to use sqldatasource, it work perfactly.
|
|
|
|
 |
|
 |
The last version on the AjaxToolkit has included DataTable and DataView support for the ReorderList, so there is no necessity of doing this
|
|
|
|
 |
|
 |
I don't get the utility of doing this.... I know it is to, supposedly, allow the ReorderList to work with DataTables.
I've put a breakpoint on your overriden DoReorder method and re-order the ReorderList several times (using postback and callbacks) and the breakpoint was never hit.
Besides, supposing the method is being executed, it doesn't help because on the OnItemReorder event the ReorderList's DataSource property is null... So I still have to re-order the items manually.
Is that right or am I missing something?
Thanks!
|
|
|
|
 |
|
 |
I get this error message:
The name 'ReorderList1_ItemDataBound' does not exist in the current context!
Any ideas?
|
|
|
|
 |
|
 |
Hi there. Thanks for this solution, it's saved me so much trouble trying to find a way around it. I do have one small issue that I just cannot figure out though: When I reorder the list, it updates the DB fine and updates the order in control, however, my Label displaying the order for the user doesn't update?! Has anyone come across anything like this? I'm close to giving up and simply hiding the order from the user but it would be nice to have it to help inform them. Thanks
|
|
|
|
 |
|
 |
I don't understand why people have voted you down (so I voted you up). You've asked a perfectly valid question, one which I myself would like an answer to. I'll have to keep googling around for the answer. Unfortunately, this control hasn't been as "wonderful" as some make it out to be.
My latest C# extension method:
public static bool In<T>(this T value, params T[] values)
{
return values.Any(v => v.Equals(value));
}
Example:
bool valid = answer.In("Yes", "No", "Dunno");
|
|
|
|
 |
|
 |
I sent a message to Joe Stagner himself (the author of the control, I think) and he couldn't give me a solution. Luckily, I found it myself by setting PostBackOnReorder="true" and wrapping the ReorderList control inside an UpdatePanel. It works pretty smoothly.
My latest C# extension method:
public static bool In<T>(this T value, params T[] values)
{
return values.Any(v => v.Equals(value));
}
Example:
bool valid = answer.In("Yes", "No", "Dunno");
|
|
|
|
 |
|
 |
A little off this topic, but anyone know how to make it display from left to right instead of top to bottom??
Dan
|
|
|
|
 |
|
 |
Great question.... I would love this to act like a DataList where i would be able to specify the columns and cows and maybe even repeat direction.
|
|
|
|
 |
|
 |
rows not cows... lol
|
|
|
|
 |
|
 |
Is it possible to drag between 2 Reorderlists? I tried to make a test scenario, but it wouldn't even display the 2nd Reorderlist.
|
|
|
|
 |
|
 |
I am interested in a solution too. somewhere its says that it is possible, putting the controls in a update panel but I do not understand how (no exemple given ...).
|
|
|
|
 |
|
 |
How do I make it so that it sees the new class? What is this My.Web.UI namespace?
|
|
|
|
 |
|
 |
My.Web.UI is just a generic namespace. You can change it to any namespace you like. To resolve the "Unknown server tag" error you are getting you will need to add an "@Register" tag to your page.
|
|
|
|
 |
|
 |
Thank you, I managed to figure it out a little while ago. In the comments, it says the reordered datatable is available in ReorderList1_ItemReorder. Is it somewhere in the event object? Or is it ReorderList1.DataSource?
|
|
|
|
 |
|
 |
Oh I guess you just use OldIndex and NewIndex properties
|
|
|
|
 |
|
 |
Hello,
I'm sorry. I have a website type project. I added this myReorderlist.cs. But my markup can't recognize it. Does this mean I have to create a class library project?
Thank you.
Gerri
|
|
|
|
 |
|
 |
You don't need to create a class library project. Did you put myReorderlist.cs in your app_code folder?
|
|
|
|
 |
|
 |
Thank you very much. > <
Gerri
|
|
|
|
 |
|
|
 |
|
 |
Can you please just copy full @Register tag syntax, because whenever I try to do it it gives ne all kind of errors like:
'NameTag is missing' but when I add NameTag it says 'Namespace is not allowed' and so forth.
Please advise.
|
|
|
|
 |
|
 |
God, please.... How do you add the @Register directive to see the new derived ReorderList??? I cannot get it done....
|
|
|
|
 |
|
 |
how to drag and drop items in one reorderlist to another reorderlist in AJAX
serkannet.com
|
|
|
|
 |