<
telerik:RadGrid
ID
=
"RadGrid2"
runat
=
"server"
AllowPaging
=
"True"
OnNeedDataSource
=
"RadGrid2_NeedDataSource"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
AllowMultiColumnSorting
=
"True"
>
</
MasterTableView
>
</
telerik:RadGrid
>
public
DataTable GetDataTable(
string
query)
{
String ConnString =
""
;
//ConnString = ConfigurationManager.ConnectionStrings["CapacityManagement"].ConnectionString;
ConnString = ConfigurationManager.ConnectionStrings[2].ConnectionString;
SqlConnection conn =
new
SqlConnection(ConnString);
SqlDataAdapter adapter =
new
SqlDataAdapter();
adapter.SelectCommand =
new
SqlCommand(query, conn);
DataTable myDataTable =
new
DataTable();
conn.Open();
try
{
adapter.Fill(myDataTable);
}
finally
{
conn.Close();
}
return
myDataTable;
}
protected
void
RadGrid2_NeedDataSource(
object
source, GridNeedDataSourceEventArgs e)
{
(source
as
RadGrid).DataSource = GetDataTable(
"SELECT Date, Location, EquipmentType, InstalledPorts, UsedPorts, ReservedPorts, AvailablePorts, Utilization, ThreeMonthUtil, TwelveMonthUtil From tblSAMPortsLocationSummary"
);
}
Hello,
I just updated from Q2 2014 to Q3 2015 and run into a strange artifact.
I've styled the RadComboBox using a custom style sheet(RadComboBox_CUSTOM) and a custom image (rcbSprite). In the new version of Telerik all RadComboBox items now looked as they where focused by default - but not according to my CSS file, instead it seems to be a defallt background positioning).
I have tried to look what has beaked since last version we had, but cannot find anything. I've created a small test project for this issue.
Kind regards
Robert
Hello,
I will wish to clarify the following properties :
- StorageClass
- ServerSideEncryptionMethod
- CannedACL
I do not see how, thank you for your help.
Vincent
Hi
Is there a way to set the size of the exported PDF boxes in the org chart?
I have quite a large org chart to export and it would be really useful if I could increase the size of certain boxes (for example, where a manager has many subordinates, I'd like the make the manager's box larger).
Is this possible?
I was trying to create an iframe in RadEditor, I encountered some javascript error. Even I can reproduce on RadEditor demo site.
Please see my video: http://screencast.com/t/LMiX8qm2
Is it a known issue or if there is any solution?
Thanks a lot.
Hello,
I want row selection when Shift + Up or Down arrow key is press in RadGrid but not working in IE 11 specifically. My Telerik dll is 2011.1.519.35.
My Code is as follows
<telerik:RadGrid ID="dgHistory" runat="server" AutoGenerateColumns="false" onkeydown="CheckShiftKey(this,event)"
AllowSorting="false" AllowMultiRowSelection="True" GridLines="None" Height="0px">
<PagerStyle AlwaysVisible="false" />
<SelectedItemStyle CssClass="ToothChartSelected" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<MasterTableView DataKeyNames="ChartHistoryID">
<HeaderStyle CssClass="ChartingRadGridColumnHeader" />
<ItemStyle CssClass="ChartingRadGridRow" VerticalAlign="Top" />
<Columns>
<telerik:GridBoundColumn DataField="RType" HeaderText="Type" Display="false"
UniqueName="RecordType" HeaderStyle-Width="80px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RID" HeaderText="ID" Display="false" UniqueName="RecordID"
HeaderStyle-Width="50px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ID" HeaderText="OID" Display="false" UniqueName="OID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DDate" HeaderText="Date" UniqueName="DisplayDate"
HeaderStyle-Width="55px" DataFormatString="{0:MM/dd/yy}">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="false" AllowKeyboardNavigation="true">
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" EnableRealTimeResize="true" />
<ClientEvents OnRowDataBound="function(s,e){ RowDataBound(s,e);}" OnKeyPress="CheckShiftKey"
OnRowContextMenu="OnContextMenu" OnRowClick="OnLeftClick" OnGridCreated="function(s,e){ BindGridHotkeys(s,e); SetHistoryGridHeight(s, e); tc$.historyGridCo=s;}"
OnRowSelected="RowSelected" OnRowDblClick="onrowdblclick" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
</Scrolling>
</ClientSettings>
</telerik:RadGrid>
and client side script is
function CheckShiftKey(sender, args) {
var keyCode = args.get_keyCode();
if (args.get_isShiftPressed()) {
if (keyCode == 38 || keyCode == 40) {
if (sender._activeRow != null) {
var nextRow = sender._getNextActiveRow(sender._activeRow, keyCode);
if (!nextRow) return;
var nextItem = $find(nextRow.id);
var currentItem = $find(sender._activeRow.id);
if (nextItem.get_selected()) {
currentItem.set_selected(false);
}
}
}
}
}
Thanks,
Prajwal Thakur
Hi everyone,
We're in the market for a new tool for creating online help/documentation for our web application. Anybody have any suggestions?
Thanks,
Tom
I am encountering an issue when combining RadMenu with LightWeight Rendering on a page with a RadGrid using Classic Rendering. Enabling Filtering on the Grid causes the submenu items on the RadMenu to appear incorrectly.
I am using 2015.3.930.40
If I render both controls with LightWeight rendering or render both controls with Classic rendering everything appears correctly. It only appears incorrectly when Filtering is enabled on the grid.