Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
665 views
With RadControls you no longer have to stick with simplistic UIs in your ASP.NET MVC Views. Telerik UI controls support Microsoft ASP.NET MVC and allow you to combine the testability and separation of concerns of the emerging technology with the richness of traditional ASP.NET server controls.

Here is a list of resources that will help you get started with RadControls in ASP.NET MVC:

Enjoy your ASP.NET MVC projects now with RadControls!
Telerik Team
Abhijit
Top achievements
Rank 1
 answered on 29 Nov 2011
4 answers
134 views
Hi,
I'm trying to implement some custom formatting on RadGrid I used code like be below :

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemDataBound
         If (TypeOf e.Item Is GridDataItem) Then
             Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
             If (dataItem("Country").Text = "Mexico") Then
                dataItem.CssClass = "MyMexicoRowClass"
             End If
         End If
End Sub

But e.item is GridPagerItem there for rest of code is not accessible. Anythough?
basically I want to check value of column and depend on it I want to change background to different color for the rows
i'm using radgrid paging allowed and CSS

RadGrid populated programmatically .
Newbie,
MM

Pavlina
Telerik team
 answered on 29 Nov 2011
1 answer
113 views
I am trying to set the Page Size of a grid from a button's click event handler function using
 
oGrid.PageSize = 10;
oGrid.MasterTableView.Rebind();

I have tried this also

oGrid.PageSize = 10;
oGrid.Rebind();

Both methods are not working.
how can i make it work
Pavlina
Telerik team
 answered on 29 Nov 2011
9 answers
277 views
Hi,
i have a radfilter.
how can i go through the data text field in the radfilter, that are generated to build a query
to filter the data.
i mean is there any way to go through the data in controls that controls are generated
in Radfilter to build the query.
Mira
Telerik team
 answered on 29 Nov 2011
1 answer
130 views
can we have multiple row expanded in case of HierarchyLoadMode.ServerOnDem and have ViewState holds all data for them?

or is it only allow row expanded at a time?

thanks,

Shinu
Top achievements
Rank 2
 answered on 29 Nov 2011
4 answers
244 views

Hi ,

I am using RadAsyncUpload control for uploading the files. While uploading the file when it is opened,
Some java script error is coming. Am capturing that error in OnClientUploadFailed event and displaying message to the user.

After that when i click on remove button, RadAsyncUpload control going invisible.
Please provide a solution for this.

Code

 

<telerik:RadAsyncUpload runat="server" ID="updControl" Skin="Office2007" MaxFileInputsCount="1"

 

 

ControlObjectsVisibility="None" AllowedFileExtensions=".xls,.xlsx" OverwriteExistingFiles="true"

 

 

Height="20px" OnClientFileUploadFailed="UploadFailed" OnClientFileSelected="FileSelected">

 

 

</telerik:RadAsyncUpload>

 



 

function UploadFailed(sender, args) {

 

setErrorMsg(

"Please ensure required file to be uploaded is saved and closed.");

 

args.set_handled(

true);

 

 

return;

 

}


Please find the attached screen shots


Thanks

john
Top achievements
Rank 1
 answered on 29 Nov 2011
3 answers
124 views
Hi!
I've a problem with GridDropDownColumn.
If value of the my datafield is null the return value in view is "&nbsp;"
Can you help me?
I'm using a VS2010 with FW .NET 4.0

Thanks in advance
Iana Tsolova
Telerik team
 answered on 29 Nov 2011
1 answer
113 views
Hi all,

I need the following functionality:

I have an aspx simple table with names of departments from a database. The items who have sub-departments have a small icon in the end of their name in the list indicating that there are sub-departments for that department.

When I click that icon, I want to have a list of those sub-departments (from the department) that appears dynamically on the right of the icon, and I want users to be able to choose one of those sub-departments. 

Should I use a Notification control, a Window control or a Tooltip control (or other)?

Thanks,
Bruno
Princy
Top achievements
Rank 2
 answered on 29 Nov 2011
1 answer
108 views

I have a grid bound to a an object which has a sub-object with additional details. I use . (dot) notation to bind columns to the sub-object. The data source is using NeedsDataSource and is coming from an entity framework DBContext.

I handle the UpdateCommand and use UpdateValues to update my primary object.
It displays fine, but when I edit the row, only the primary object properties are updated. Sub object properties are not changed.

If I use OwnerTableView.ExtractValuesFromItem, I can see all the modified values for the subobject, in the property dot notation.

Should this work? Should UpdateValues() properlly handle sub-object properties? Or for each grid do I need to manually assign the values from the ExtractValuesHash to the subobject?
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2011
1 answer
159 views
Hello,

I'm having an issue with a custom command item that I have added.  Below is the code used to add this command:
(I need to add this dynamically because not all users will be allowed to delete.)
If (TypeOf e.Item Is GridCommandItem) Then
    Dim btnDelete = New LinkButton()
    btnDelete.ID = "btnDelete"
    btnDelete.Text = "  Delete"
    btnDelete.CommandName = "Delete"
    btnDelete.Attributes("onclick") = "javascript:return confirm('Do you want to delete this item?')"
    Dim cmdItem As GridCommandItem = CType(e.Item, GridCommandItem)
    cmdItem.Controls(0).Controls(0).Controls(0).Controls(0).Controls.Add(btnDelete)
End If

How can I get this control to be handled by the RadGrid_ItemCommand Handler?

Thank you,
Kevin
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?