Dim CheckNbrPics As Integer = 0
For Each file As UploadedFile In RuPhotos.UploadedFiles
CheckNbrPics = CheckNbrPics + 1
Next file
If CheckNbrPics = 0 Then
MyFormValid =
False
sbError.Append(
"<li class=""Error"">Error text</li>")
End If
The files are saved in a second time.
I would like to keep this validation in the logik of my code behing, is it possible ?
It seems that FF download 1st the files and play the code after this, IE not.
Any idea to fix it ?
Thanks,
Herve
| function FilterGridMenu(commands, primaryKeyID, claimID, claimantID, claimNumber, jurisdiction, attachmentModuleName) |
| { |
| var gridMenu = $find("<%= rmGridActions.ClientID %>"); |
| if(gridMenu.get_enabled()) |
| { |
| //gridMenu.trackChanges(); //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG |
| //Reset GridMenu Items and Values |
| var menuItems = gridMenu.get_allItems(); |
| for (var i=0; i < menuItems.length; i++) |
| { |
| if(menuItems[i].get_text() != 'Grid Actions') |
| { |
| menuItems[i].hide(); |
| menuItems[i].set_value(primaryKeyID); |
| } |
| var menuItemText = menuItems[i].get_text(); |
| if(menuItemText == 'Object Payment') |
| { |
| var paramValue = primaryKeyID + '|' + claimID + '|' + claimantID + '|' + claimNumber + '|' + jurisdiction; |
| menuItems[i].set_value(paramValue); |
| } |
| else if(menuItemText.indexOf('Add') > -1 && menuItemText.indexOf('Attachment')) |
| { |
| var paramValue = attachmentModuleName + '|' + primaryKeyID + '|' + claimantID + '|' + claimNumber; |
| menuItems[i].set_value(paramValue); |
| } |
| } |
| //Apply Commands list to hide or disable Context Menu Items |
| var arrayCommands = commands.split('|'); |
| for (x in arrayCommands) |
| { |
| var menuText = arrayCommands[x]; |
| if(menuText.length > 0) |
| { |
| var menuItem = gridMenu.findItemByText(menuText); |
| if(menuItem != null) |
| { |
| menuItem.show(); |
| } |
| } |
| } |
| //gridMenu.commitChanges(); //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG |
| } |
| } |

Hello,
(I am using the Q3 2008 release of the ASP.NET ajax components)
I have a RadGrid with "EnablePostBackOnRowClick" enabled. I only want this postback to occur in certain situations though. In the older versions of the RadGrid, I could have a javascript handler that did t his:
function radGrid_RowClick(sender, eventArgs)
{
eventArgs.set_cancel(true);
}
But, this does not work with the Q3 2008 release. What is the equivalent functionality?
Kind regards,
Andy