| Private Sub RadGrid_Entreprise_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles RadGrid_Entreprise.ItemInserted |
| Me.RadGrid_offre.Rebind() |
| Me.RadGrid_Offre_Programme.Rebind() |
| End Sub |
Hi,
I have a Button skin file that does skinning for the ASP.NET Button control. The problem I have is it is overriding the button within the RadGrid. For example, the Add new and Refresh buttons are shown in the same style as the other buttons on my website are. The button skin seems to override the styles applied even though I have the !important setting set.
This is my skin file to control Buttons:
< asp:Button runat="server" CssClass="MainButton"></asp:Button>
Here is the pertinent css inside my custom css class:
| .RadGrid_[myskinname].rgAdd |
| { |
| background-position:0 -1856px !Important; |
| } |
| .RadGrid_[myskinname].rgRefresh |
| { |
| background-position:0 -1824px !Important; |
| } |
| .RadGrid_[myskinname].rgEdit |
| { |
| background-position:0 -1888px !Important; |
| } |
| .RadGrid_[myskinname].rgDel |
| { |
| background-position:0 -1920px !Important; |
| } |
| .RadGrid_[myskinname] .rgAdd, |
| .RadGrid_[myskinname] .rgRefresh, |
| .RadGrid_[myskinname] .rgEdit, |
| .RadGrid_[myskinname] .rgDel, |
| .RadGrid_[myskinname] .rgFilter, |
| .RadGrid_[myskinname] .rgPagePrev, |
| .RadGrid_[myskinname] .rgPageNext, |
| .RadGrid_[myskinname] .rgExpand, |
| .RadGrid_[myskinname] .rgCollapse, |
| .RadGrid_[myskinname] .rgSortAsc, |
| .RadGrid_[myskinname] .rgSortDesc |
| .RadGrid_[myskinname] .rgUpdate, |
| .RadGrid_[myskinname] .rgCancel |
| { |
| width:16px !important; |
| height:16px !important; |
| border:0 !important; |
| padding:0 !important; |
| background-color:transparent !important; |
| background-image:url('Grid/sprite.gif') !important; |
| background-repeat:no-repeat !important; |
| vertical-align:middle !important; |
| cursor:pointer !important; |
| } |
Is there any way to prevent RadGrid from inheritting the ASP.NET Skin file?
Thanks, Josh
function
PerformSearch()
{
var tree = $find("MenuTree");
var strToSearch = document.getElementById("txtSearchText").value;
var node = tree.findNodeByText(strToSearch);
var ParentNode=null;
if(node)
{
node.highlight();
node.scrollIntoView();
ParentNode = node.get_parent();
while (ParentNode != null)
{
ParentNode.expand();
ParentNode = node.get_parent();
}
}
}
CommandItemDisplay="Top"" to the MasterView properties. Is it default that there is displayd Add Record and Refresh functionality in the CommandItem if im not implementing a CommandItem myself?| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="MasterScriptManager" runat="server" EnablePageMethods="True" |
| EnableScriptGlobalization="True" EnableTheming="True"> |
| <Services> |
| <asp:ServiceReference Path="~/Ws/KanioService.asmx"></asp:ServiceReference> |
| </Services> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="ramMaster" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="ktbMaster"> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadFormDecorator ID="masterFormDecorator" runat="server" DecoratedControls="All" /> |
| <telerik:RadWindowManager ID="rwmKanioMaster" runat="server"> |
| </telerik:RadWindowManager> |
| <div id="container"> |
| ... |
| clientScript = "radalert('" + Resources.GlobalTranslation.selectFirst + "');"; |
| RadScriptManager.RegisterStartupScript(this, this.GetType(), "openWindow", clientScript, true); |