So paging was working now it doesn't. Here is the code and grid layout:
GRID
<telerik:RadGrid ID="grdReport" runat="server" AllowPaging="True" AllowSorting="False" ExportSettings-IgnorePaging="true" AutoGenerateColumns="False" PageSize="20" Skin="Office2010Blue" OnPageIndexChanged="grdReport_PageIndexChanged">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
<ExportSettings FileName="TestRejectReport" IgnorePaging="True">
</ExportSettings>
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField="Line" FilterControlAltText="Filter Line column" HeaderText="Line" UniqueName="Line">
<HeaderStyle HorizontalAlign="Center" Width="20px" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Process" FilterControlAltText="Filter Process column" HeaderText="Process" UniqueName="Process">
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Product" FilterControlAltText="Filter Product column" HeaderText="Product" UniqueName="Product">
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Tested" FilterControlAltText="Filter Tested column" HeaderText="Tested" UniqueName="Tested">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Passed" FilterControlAltText="Filter Passed column" HeaderText="Passed" UniqueName="Passed">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Failed" FilterControlAltText="Filter Failed column" HeaderText="Failed" UniqueName="Failed">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Yield" FilterControlAltText="Filter Yield column" HeaderText="Yield" UniqueName="Yield">
<HeaderStyle HorizontalAlign="Center" Width="30px" />
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Top5" FilterControlAltText="Filter Top5 column" HeaderText="(Count) Top n Rejects" UniqueName="Top5">
<HeaderStyle HorizontalAlign="Center" Width="800px" />
<ItemStyle HorizontalAlign="Left" Wrap="true" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
CODE:
I load a datatable (I did see the data in it) and then bind in a button event
grdReport.DataSource = dtReport;
grdReport.DataBind();
Session["Report"] = dtReport;
Session.Timeout = 30;
protected void grdReport_PageIndexChanged(object sender, GridPageChangedEventArgs e)
{
//**********
//pagination
//**********
DataTable dt = (DataTable)Session["Report"];
grdReport.DataSource = dt;
grdReport.Rebind(); // DataBind(); // note I have tried DataBind and Rebind here
}
I get no grid when a page is selected.
Thanks for your help in advance.
Mark
I'm having an issue where on some of the clients when they type in the RadAutoComplete the last character they type isn't registering. I'll attach screen shots from two machines with the same search term and different results. Has anybody else reported this behavior? I'm just loading the search list in code behind it is really straight forward.
<telerik:radautocompletebox runat="server" Style="width: 200px;" id="acbInsured" MaxResultCount="20" DataTextField="CompanyName" DataValueField="ClientKey">
</telerik:radautocompletebox>
public void SetInsuredSearchDatasource(IEnumerable<Contact> searchResults)
{
acbInsured.DataSource = searchResults.ToArray();
acbInsured.DataBind();
}
public override void OnLoad()
{
SetInsuredSearchDatasource(_reportService.GetInsuredNameSearchResults());
...
I'm at a bit of a loss as to why it happens on some but not others (Same browser).
Hello,
i use a split button, which has a RadContextMenu attached to it. Inside the RadContextMenu, there is one RadMenuItem which contains an ItemTemplate with multiple RadCheckBoxes.
How is it possible that the RadCheckBoxes inside the ContentTemplate uses the full available width? So there should be no padding/margin in the ContextMenu and the Checkbox stretches horizontally to use all of the existing space. I uploaded an example of how it looks like right now in the attachments of this post.
Code:
<
telerik:RadButton
EnableSplitButton
=
"true"
ID
=
"btn4"
AutoPostBack
=
"true"
runat
=
"server"
Text
=
"Example Button Text"
OnClientClicked
=
"OnClickedRadButton"
CommandName
=
"cmdBt4"
OnClick
=
"btn4_Click"
CausesValidation
=
"true"
>
</
telerik:RadButton
>
<
telerik:RadContextMenu
id
=
"rcmBtn4"
runat
=
"server"
>
<
Items
>
<
telerik:RadMenuItem
>
<
ItemTemplate
>
<
p
>
<
telerik:RadCheckBox
runat
=
"server"
ID
=
"rcb1"
CausesValidation
=
"false"
Checked
=
"true"
Text
=
"als Excel-Datei (.xlsx) exportieren"
AutoPostBack
=
"false"
/>
</
p
>
<
p
>
<
telerik:RadCheckBox
runat
=
"server"
ID
=
"rcb2"
CausesValidation
=
"false"
Checked
=
"true"
Text
=
"Checkbox Text 2"
AutoPostBack
=
"false"
/>
</
p
>
</
ItemTemplate
>
</
telerik:RadMenuItem
>
</
Items
>
</
telerik:RadContextMenu
>
I have the following grid defined, but the insert dialog is showing the title twice. How do I suppress the second iteration of this (see picture)?
<
telerik:RadGrid
AllowCustomPaging
=
"true"
AllowFilteringByColumn
=
"true"
AllowPaging
=
"true"
AllowSorting
=
"true"
AutoGenerateEditColumn
=
"true"
CellSpacing
=
"-1"
GridLines
=
"Both"
GroupPanelPosition
=
"Top"
Height
=
"690px"
ID
=
"AgenciesGrid"
OnDeleteCommand
=
"AgenciesGrid_OnDeleteCommand"
OnItemCreated
=
"AgenciesGrid_OnItemCreated"
OnNeedDataSource
=
"AgenciesGrid_NeedDataSource"
OnUpdateCommand
=
"AgenciesGrid_OnUpdateCommand"
PageSize
=
"20"
runat
=
"server"
ShowFooter
=
"true"
ShowStatusBar
=
"true"
>
<
GroupingSettings
CaseSensitive
=
"false"
></
GroupingSettings
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
/>
</
ClientSettings
>
<
GroupPanel
Text
=
"Drag and drop header to order by column"
>
</
GroupPanel
>
<
MasterTableView
AllowCustomPaging
=
"true"
AllowFilteringByColumn
=
"false"
AllowSorting
=
"true"
AutoGenerateColumns
=
"false"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"AgencyId"
EditMode
=
"PopUp"
>
<
RowIndicatorColumn
Visible
=
"false"
>
</
RowIndicatorColumn
>
<
Columns
>
<
telerik:GridEditCommandColumn
UniqueName
=
"editColumn"
>
<
HeaderStyle
Width
=
"40px"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"AgencyId"
ReadOnly
=
"true"
HeaderText
=
"AgencyId"
Display
=
"false"
UniqueName
=
"AgencyId"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AgencyName"
HeaderText
=
"Agency"
UniqueName
=
"AgencyName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AgencyPhone"
HeaderText
=
"Phone"
UniqueName
=
"AgencyPhone"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AgencyContact"
HeaderText
=
"Contact"
UniqueName
=
"AgencyContact"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
InsertCaption
=
"Add New Agency"
CaptionFormatString
=
"Edit Agency: {0}"
CaptionDataField
=
"AgencyId"
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hey,
My problem is that I'm trying to create a RadTileList programmatically to populate an Intranet staff page.
We've developed a page in which users can choose an image of themselves, along with fill out the details we don't keep in Active Directory, and then we pull the photo, AD information and profile information and pop it into a staff page. Works beautifully, and the Telerik controls really improve the look and feel of it.
Then we wanted to make a series of image galleries for different teams, different job roles etc. We can pull the data for these groups no problem. Then the plan is that everyone gets their image put into a gallery, which we're going to use the RadToolTip functionality on to preview before they can open the page to learn all about the member of staff. Herein lies my problem, because I can't populate the RadTileList using the byte array (byte[]) images.
Below is an example of how I'm TRYING to code it. Unfortunately I have so much to do on this project and so little time to do it in that I really can't afford to be spending much longer trying to get this to work. Any chance you could provide a solution?
protected void LoadStaffList(DataTable staffList, Image notAvailable)
{
var tileList = new RadTileList();
var tileGroup = new TileGroup();
var memoryStream = new MemoryStream();
var image = Resources.photonotavailable;
image.Save(memoryStream, ImageFormat.Png);
foreach (DataRow row in staffList.Rows)
{
var imageTile = new RadImageTile();
var userPhoto = row["UserPhoto"] != DBNull.Value ? row["UserPhoto"] : null;
imageTile.DataItem = (byte[]) userPhoto ?? memoryStream.ToArray(); <-- YOU CAN'T DO THIS!!
imageTile.Shape = TileShape.Square;
tileGroup.Tiles.Add(imageTile);
}
tileList.Groups.Add(tileGroup);
divTeamInformation.Controls.Add(tileList);
}
I'm assuming there's a way to use a RadBinaryImage or something else in place of the RadImageTile? Or some other way to set the data without writing the byte array to a temp file and then setting the temp file as the Image Source, because both of those would be incredibly annoying to have to do.
Any help you could provide would be massively appreciated. Apologies if it's a duplicate topic but I couldn't see one like it.
Thanks,
-Alexis
We have a custom application that creates a Telerik RadHtmlChart object from an external DLL method.
We also have a second custom application that uses MVC and Kendo components.
I understand that both RadHtmlChart and Kendo charts are using the same underlying server-side wrapper from the Kendo UI chart widgets.
My question is, how can I request that same external DLL using MVC/razor, and have it sent back to my view as a Kendo Chart? Is this possible?