How can I display a "loading" message while data is loading with radgird when using a SERVICE ?
I am calling a service routine that takes a bit to return data.
How can I display a loading type message?
<DataBinding Location="WaterWebService.asmx" SelectMethod="GetWaterAccounts" SelectCountMethod="GetCount" />
Full grid code:
<telerik:RadGrid RenderMode="Lightweight" AllowSorting="true" ClientSettings-Resizing-AllowColumnResize="true" VirtualItemCount="1000" PageSize="10" AllowPaging="true"
AllowCustomPaging ="true" AllowFilteringByColumn="true" ID="RadGrid1" CssClass="gridy" runat="server" GridLines="None">
<ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" HideStructureColumns="false" FileName = "PlannedOrderExc">
<Excel Format="Biff" />
</ExportSettings>
<MasterTableView TableLayout="Fixed" ClientDataKeyNames="ID" PagerStyle-Position="Bottom"
PagerStyle-Mode="NextPrevAndNumeric" PagerStyle-PageSizes="10, 15, 20, 25, 30" >
<Columns>
<telerik:GridBoundColumn DataField="ID" HeaderText="" HeaderStyle-Width=".1" Visible="true" Display="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="AccountNumber" HeaderStyle-Width="20" HeaderText="Account Number" FilterControlWidth="80px" DataType="System.String"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PropertyName" HeaderStyle-Width="50px" Visible="true" HeaderText="Property" FilterControlWidth="190px" DataType="System.String"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LastName" HeaderStyle-Width="50" HeaderText="Responsible Party" FilterControlWidth="80px" DataType="System.String"></telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" DataField="PropertyID" HeaderText="ID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" DataField="StatedPartyID" HeaderText="ID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" HeaderStyle-Width="90px" ItemStyle-Wrap="false" FilterControlWidth="200px" DataType="System.String"></telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn runat="server" AllowFiltering="false" HeaderStyle-Width="20" UniqueName="DepositRequired" HeaderText="Deposit Required?" DataField="DepositRequired" ItemStyle-HorizontalAlign="Center" />
<telerik:GridCheckBoxColumn runat="server" AllowFiltering="false" HeaderStyle-Width="20" UniqueName="DepositPaid" HeaderText="Deposit Paid?" DataField="DepositPaid" ItemStyle-HorizontalAlign="Center" />
<telerik:GridCheckBoxColumn UniqueName="NLM" AllowFiltering="false" HeaderStyle-Width="20" HeaderText="Managed" DataField="NLM" ItemStyle-HorizontalAlign="Center" />
<telerik:GridCheckBoxColumn UniqueName="WaterStatus" AllowFiltering="false" HeaderStyle-Width="20" HeaderText="Water ON?" DataField="WaterStatus" ItemStyle-HorizontalAlign="Center" />
<telerik:GridBoundColumn DataField="ModifiedBy" HeaderStyle-Width="20" HeaderText="Modified By" FilterControlWidth="80px" DataType="System.String" Visible="true" Display="false"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true"></Selecting>
<DataBinding Location="WaterWebService.asmx" SelectMethod="GetWaterAccounts" SelectCountMethod="GetCount" />
<ClientEvents OnRowSelected="rowSelected" OnDataBound="OnDataBound" OnRowDataBound="RowDataBound" ></ClientEvents>
<Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
Give a grid with multiple columns. How can I hide column that has no value?
I ve tryed something like this :
protected
void
RG_Import_PreRender(
object
sender, EventArgs e)
{
foreach
(GridColumn col
in
RG_Import.Columns)
{
bool
valueFound =
false
;
foreach
(var row
in
RG_Import.Rows)
{
var cell = row.Cells[col.Name].Value;
if
(cell !=
null
&& cell != DBNull.Value && !
string
.IsNullOrWhiteSpace(cell))
{
valueFound =
true
;
break
;
}
}
col.Visible = valueFound;
}
}
RadToolBar1.Items.FindItemByValue("buttonValue").Visible = true;
It results in the following exception:
Value property is not supported by RadToolBarDropDown
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Value property is not supported by RadToolBarDropDown
This makes using it very difficult (indeed impossible).
I note that this has come up before but it seems like the problem is being ignored
Hi,
I have a databound radgrid and I need to get and set the value of a checkbox column client side.
I'm using the following for the other columns, which I have adapted from code found on this site.
var myMasterTable = Grid.get_masterTableView();
var myCell = myMasterTable.getCellByColumnUniqueName(myMasterTable.get_dataItems()[myRowIndex - 1], ColumnName);
var myCellValue = myCell.innerHTML;
if (myCellValue == " ") { myCellValue = ""; }
return myCellValue;
But unlike the other columns it returnsthe below html and not the actual value?
"<span class="aspNetDisabled"><input id="grid_Properties_ctl00_ctl04_ctl50" type="checkbox" name="grid_Properties$ctl00$ctl04$ctl50" checked="checked" disabled="disabled"></span>"
How do I get the checked state and also set the checked state via javascript? Is their abuilt in method for this?
Thanks in advance
In itemDataBound I am conditionally changing an integer column, but the sum aggregate footer reflects the original values from the query. How do I get the changed value reflected in the sum?
Hi,
i would like to know if it is possible to include in the individual 'cells' of a diagram any HTML content or better still other UI controls, such as Cards, even better at runtime.
Thank you
i would like to set the text of the the "Day/Week/Month/Year"-Buttons in the top right corner
Can this simple be done in code behind without using a resx file as I've already have a custom localization provider linked to a database
i.e. GanttChart.ToolbarButtons[0].text = "test"
Hello Telerik-Team,
Could you tell me, how I can change the title text of the time selection?
I want to translate it to my language. I added a screenshot, where I marked, what I mean.
Regards