
| protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) | |
| { | |
| if (e.Item is GridDataItem) | |
| e.Item.Visible = false; //(e.Item as GridDataItem).Visible = false; |
|
| } |

Hi,
I populate my grid data with the given client ID, as follows:
private void LoadCharges()
{
int _ClientId = 0;
List<ClientCharges> clientCharges = ClientChargesManager.QueryClientChargesByClientId(_ClientId);
rgCharges.DataSource = clientCharges;
rgCharges.DataBind();
}
I am looking for a blank grid that says something like "No charges found", so I tried sending it a client ID of 0 (this client ID does not exist), but then the grid is not even populated. It doesn't even appear.
Here is my grid:
<radG:RadGrid
ID="rgCharges"
AutoGenerateColumns="false"
GridLines="None"
runat="server">
<MasterTableView NoMasterRecordsText="Nothing.." NoDetailRecordsText="None" DataKeyNames="ClientChargeID">
<Columns>
<radG:GridBoundColumn DataField="ChargeAmount" HeaderText="Charge Amount" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="right" UniqueName="ChargeAmount" DataFormatString="{0:###,###.00}">
</radG:GridBoundColumn>
</Columns>
</MasterTableView>
</radG:RadGrid>
Please help.
Thanks
Brendan
Hi
We have been using Telerik controls since years , but ever since we installed your latest
RadControls for ASP.NET AJAX , I am really fighting to have our custom skins within our apps.
I have followed your tutorial Tutorial: Creating A Custom Skin
But have not able to get it to work.
Please tell me where I am going wrong?
I have the following in my page:
<link href="FHFBNAV/PanelBar.FHFBNAV.css" rel="stylesheet" type="text/css" />
<div id="navigation">
<telerik:RadPanelBar
id="radNavigation"
Width="210px"
Runat="server"
ExpandMode="SingleExpandedItem"
Skin="FHFBNAV"
Font-Names="Verdana"
OnClientItemClicking="collapseRoots" AllowCollapseAllItems="True"
EnableEmbeddedSkins="false">
<CollapseAnimation Type="Linear" Duration="100"></CollapseAnimation>
<ExpandAnimation Type="Linear" Duration="100"></ExpandAnimation>
</telerik:RadPanelBar>
I have this directory structure for the css file:
FHFBNAV
PanelBar
PanelBar. FHFBNAV.css
My css file looks like this :
.RadPanelbar_FHFBNAV
{
/*background: white;*/
background: url(PanelBar/itemsBg.gif) repeat-y;
white-space: nowrap;
border: solid 1px #608058;
border-top: 0px;
text-align:left;
}
.RadPanelbar_FHFBNAV .rpText
{
padding: 0px 20px; /* vertical - horizontal */
font: bold 11px Verdana, Arial, Sans-serif;
line-height: 31px;
}
.RadPanelbar_FHFBNAV .rpImage
{
margin: 4px 0px; /* vertical - horizontal */
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpLink
{
border-top: solid 1px #608058;
background: url('PanelBar/RootItemBkg.gif') repeat-x;
color: #10110f;
}
/* span class="text" */
.RadPanelbar_FHFBNAV .rpRootGroup .rpText
{
font-weight: bold;
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpLink:hover
{
background: url('PanelBar/RootItemFocusedBkg.gif') repeat-x;
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpDisabled:hover
{
border-top: solid 1px #608058;
background: url('PanelBar/RootItemBkg.gif') repeat-x;
color: #10110f;
}
.RadPanelbar_FHFBNAV .rpGroup .rpText
{
background: transparent;
font-weight: normal;
padding: 0px 20px; /* vertical-horizontal */
border: 0px;
line-height: 25px;
}
.RadPanelbar_FHFBNAV .rpLevel2 .rpText
{
padding-left: 43px;
line-height: 23px;
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpExpanded .rpText
{
background: url('PanelBar/RootItemBkgActive.gif') repeat-x;
}
/* child item link */
.RadPanelbar_FHFBNAV .rpGroup .rpLink
{
background: url(PanelBar/itemsBg.gif) repeat-y;
border: 0px;
}
/* child item link:hover */
.RadPanelbar_FHFBNAV .rpGroup .rpLink:hover,
.RadPanelbar_FHFBNAV .rpGroup .rpSelected .rpText
{
background: url(PanelBar/itemSelected.gif) repeat-y;
text-decoration: underline;
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpDisabled:hover,
.RadPanelbar_FHFBNAV .rpRootGroup .rpDisabled .rpText
{
background: url('PanelBar/RootItemBkg.gif') repeat-x;
color: #ccc;
cursor: default;
}
.RadPanelbar_FHFBNAV .rpRootGroup .rpGroup .rpDisabled:hover,
.RadPanelbar_FHFBNAV .rpRootGroup .rpGroup .rpDisabled .rpText
{
text-decoration: none;
background: url(PanelBar/itemsBg.gif) repeat-y;
border-top: none;
color: #ccc;
cursor: default;
}
Please help I am in the middle of a release..
Thanks
Farhad Billimoria
<telerik:RadGrid ID="radgridUsers" runat="server" AutoGenerateColumns="False" Width=100% Skin="WebBlue" GridLines="None" ShowStatusBar=true ShowFooter=true OnSortCommand="radgridUsers_SortCommand" OnPageIndexChanged="radgridUsers_PageIndexChanged" OnItemCreated="radgridUsers_ItemCreated" OnItemDataBound="radgridUsers_ItemDataBound" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" >
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" TableLayout="Auto">
<Columns>
<telerik:GridBoundColumn DataField="UserId" UniqueName="columnPersonId" Visible="False" />
<telerik:GridBoundColumn DataField="UserName" HeaderText="Name" UniqueName="columnUserName" SortExpression="UserName" />
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="false" />
</ClientSettings>
</telerik:RadGrid>