I'm working with the RadFileExplorer, and the ViewPath is configured in the C#;
My goal is to sort the items in the RadFileExplorer by name and date, such as
My goal is to sort the items in the RadFileExplorer by name and date, such as
CD 3-1
CD 3-2
CD 3-14
CD 3-18
CD 3-24
Rather than the default behavior of
CD 3-1
CD 3-14
CD 3-18
CD 3-2
CD 3-24
using (SqlConnection connection = new SqlConnection(newConnect))
{
// Create the Command and Parameter objects;
SqlCommand command = new SqlCommand(queryString, connection);
// Open the connection in a try/catch block;
// Create and execute the DataReader;
try
{
connection.Open();
SqlDataReader reader = command.ExecuteReader();
while (reader.Read())
{
UsernameDB = (reader[1]).ToString();
listViewPaths.Add(reader.GetString(3));
listUploadDeletePaths.Add(reader.GetString(4));
WebPageTitle = (reader[5]).ToString();
}
reader.Close();
}
catch (Exception ex)
{
}
}
RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();