function
grid_OnCommand(sender, eventArgs) {
var
c = eventArgs.get_commandName();
if
(c ==
"Page"
) {
if
(!Page_ClientValidate()) {
eventArgs.set_cancel(
true
);
}
}
}
Hello everyone,
I need your help, i have 2 RadGrid which each depend on other grid.
Each grid can sort. But if i sort the first grid i lost the first row
selected item and the second grid give me error of grid1 cant be null
So, i would like to know how i can set the focus on the last selected item or just focus on the first row?
I use VB.NET
I have tried sample i found here, and nothing change like
RadGrid1.MasterTableView.Items(0).Selected = True
for now in my Page_Load to get the focus i use radgrod1.items(0).focus()
but it doesn't work on the SortCommand sub, i get a javascript error message
In this sub, i get a new DataSource and i rebind the radgrid.
I have tried RadGrid1.SelectedIndexes.Add(0) with my .focus and same JS error.
Thanks for your help.
public
class
MyAsyncImageUpload : AsyncUploadHandler
{
protected
override
IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration,
string
tempFileName)
{
var result =
base
.Process(file, context, configuration, tempFileName);
int
imageWidth = 0;
int
imageHeight = 0;
var imageExists = File.Exists(context.Server.MapPath(
"~/App_Data/RadUploadTemp"
+
"/"
+ tempFileName));
using
(var fs =
new
FileStream(context.Server.MapPath(
"~/App_Data/RadUploadTemp"
+
"/"
+ tempFileName), FileMode.Open, FileAccess.Read))
{
var imageByteSize = fs.Length;
using
(var image = Image.FromStream(fs))
{
imageWidth = image.Size.Width;
imageHeight = image.Size.Height;
}
}
return result;
}
}
Hi,
I'm attempting to show the end user some feedback on the items they've checked in a combobox and I want to send the checkedItems to a ListBox underneath showing what the user has checked. I'm having no luck with what I am trying.
Something like this:
ListBox1.Items.Add(ComboBox.CheckedItems.ToString());