Dear Sirs or Madams,
just for your information: On your website "https://demos.telerik.com/responsive-web-design-aspnet/samples/adaptive/media-player.aspx", the video-source is currently not available.
Kind Regards.
Hello, I have two grids on the same page in batch edit mode. When I submit a page via javascript code the second grid has command type of "Update" instead of "Insert". Please help!
<
div
class
=
"grid__col grid__col--1-of-2"
>
<
p
>Prescriptions</
p
>
<
telerik:RadGrid
ID
=
"gridPrescriptions"
runat
=
"server"
AutoGenerateColumns
=
"false"
AllowAutomaticInserts
=
"true"
AllowAutomaticUpdates
=
"true"
AllowSorting
=
"True"
AllowPaging
=
"True"
OnNeedDataSource
=
"gridPrescriptions_NeedDataSource"
Width
=
"100%"
DataKeyNames
=
"EscalationCaseRxId"
OnBatchEditCommand
=
"gridPrescriptions_BatchEditCommand"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
EditMode
=
"Batch"
>
<
BatchEditingSettings
EditType
=
"Row"
/>
<
CommandItemSettings
ShowSaveChangesButton
=
"false"
ShowRefreshButton
=
"false"
ShowCancelChangesButton
=
"false"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"RxNumber"
HeaderText
=
"Prescription Number *"
UniqueName
=
"RxNumber"
MaxLength
=
"50"
HeaderStyle-Width
=
"300"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"true"
>
<
RequiredFieldValidator
ForeColor
=
"Red"
Text
=
"*This field is required"
runat
=
"server"
>
</
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"DateOfService"
HeaderText
=
"Date of Service *"
UniqueName
=
"DateOfService"
HeaderStyle-Width
=
"400"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"true"
>
<
RequiredFieldValidator
ForeColor
=
"Red"
Text
=
"*This field is required"
runat
=
"server"
>
</
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridDateTimeColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
<
div
class
=
"grid__col grid__col--1-of-2"
>
<
p
>Benefit Verification</
p
>
<
telerik:RadGrid
ID
=
"gridBenefitVerification"
runat
=
"server"
AutoGenerateColumns
=
"false"
AllowAutomaticInserts
=
"true"
AllowAutomaticUpdates
=
"true"
AllowSorting
=
"false"
AllowPaging
=
"True"
OnNeedDataSource
=
"gridBenefitVerification_NeedDataSource"
Width
=
"100%"
DataKeyNames
=
"EscalationCaseBvId"
OnBatchEditCommand
=
"gridBenefitVerification_BatchEditCommand"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
EditMode
=
"Batch"
>
<
BatchEditingSettings
EditType
=
"Row"
/>
<
CommandItemSettings
ShowSaveChangesButton
=
"false"
ShowRefreshButton
=
"false"
ShowCancelChangesButton
=
"false"
/>
<
Columns
>
<
telerik:GridDateTimeColumn
DataField
=
"DateVerified"
HeaderText
=
"Date Benefit Verified*"
UniqueName
=
"DateVerified"
HeaderStyle-Width
=
"400"
DataFormatString
=
"{0:MM/dd/yyyy}"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"true"
>
<
RequiredFieldValidator
ForeColor
=
"Red"
Text
=
"*This field is required"
runat
=
"server"
>
</
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridDateTimeColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
function saveChanges() {
if (Page_IsValid) {
<%--var grid = $find("<%= gridPrescriptions.ClientID %>");
if (grid.get_masterTableView().get_dataItems().length > 0) {
grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
}
else {
var label = document.getElementById("<%= lblMessage.ClientID%>");
label.innerText = "Please add at least one prescription.";
label.style.color = "red";
label.style.display = "";
document.body.scrollTop = document.documentElement.scrollTop = 0;
}--%>
var gridRx = $find("<%= gridPrescriptions.ClientID %>");
var masterTableRx = gridRx.get_masterTableView();
if (masterTableRx.get_dataItems().length > 0) {
var gridBv = $find("<%= gridBenefitVerification.ClientID %>");
var masterTableBv = gridBv.get_masterTableView();
var batchEditManager = gridBv.get_batchEditingManager();
var tables = [];
//var changes1 = batchEditManager._changes;
//var changes2 = gridRx.get_batchEditingManager()._changes;
tables.push(masterTableRx);
tables.push(masterTableBv);
batchEditManager.saveTableChanges(tables);
}
else
{
var label = document.getElementById("<%= lblMessage.ClientID%>");
label.innerText = "Please add at least one prescription.";
label.style.color = "red";
label.style.display = "";
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
}
Hi,
I am increasing the font size for RadRadioButtonList, but the radio circle remain small. see attached image.
Is there a way to increase the size of the radio button?
Regards,
Omar
I have a RadGrid on my page that I use as a selector, and via it's SelectedIndexChanged I wanna set some header filter on another grid.
Each time the selection is changed in the first RadGrid (rgPendingRequests) I want to adjust the header filter of rgResponsables and filter the result. The user must then be able to change the header filter as he wish, in case the filter returns nothing.
This is the grid I wanna apply the header filter to
<
telerik:RadGrid
ID
=
"rgResponsables"
runat
=
"server"
Width
=
"100%"
Height
=
"220px"
AutoGenerateColumns
=
"False"
EnableViewState
=
"true"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
CssClass
=
"gridPartageResponsables"
EnableLinqExpressions
=
"false"
>
<
GroupingSettings
CaseSensitive
=
"false"
></
GroupingSettings
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
Selecting-AllowRowSelect
=
"true"
EnablePostBackOnRowClick
=
"true"
Scrolling-UseStaticHeaders
=
"true"
/>
<
MasterTableView
DataKeyNames
=
"ResponsableID"
AllowFilteringByColumn
=
"True"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Prenom"
Visible
=
"true"
HeaderStyle-Font-Bold
=
"true"
HeaderText
=
"Prénom"
UniqueName
=
"Prenom"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"Nom"
Visible
=
"true"
HeaderStyle-Font-Bold
=
"true"
HeaderText
=
"Nom"
UniqueName
=
"Nom"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"Courriel"
Visible
=
"true"
HeaderStyle-Width
=
"250px"
HeaderStyle-Font-Bold
=
"true"
HeaderText
=
"Courriel"
UniqueName
=
"Courriel"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"Telephone"
Visible
=
"true"
HeaderStyle-Width
=
"120px"
HeaderStyle-Font-Bold
=
"true"
HeaderText
=
"Téléphone"
UniqueName
=
"Telephone"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Here is my code Behind:
Protected
Sub
rgPendingRequests_SelectedIndexChanged(sender
As
Object
, e
As
EventArgs) _
Handles
rgPendingRequests.SelectedIndexChanged
Dim
PrenomCol = rgResponsables.MasterTableView.GetColumnSafe(
"Prenom"
)
PrenomCol.CurrentFilterFunction = GridKnownFunction.Contains
PrenomCol.CurrentFilterValue = rgPendingRequests.SelectedValues(
"FirstName"
)
Dim
NomCol = rgResponsables.MasterTableView.GetColumnSafe(
"Nom"
)
NomCol.CurrentFilterFunction = GridKnownFunction.Contains
NomCol.CurrentFilterValue = rgPendingRequests.SelectedValues(
"LastName"
)
rgResponsables.Rebind()
End
Sub
But even though the values appear in the header filter, the table is not filtered until I go to a header filter field and press enter...
I've tried everything I can think of, and could not make it work...
I could really use some pointer on what I'm doing wrong...
Hello,
we have a grid with client databinding. Backend is a WCF web service.
The requirement is, the client side column filter setting(user has a filter text in the column Title) shall be restored if the page has been reloaded(for example after adding a new item).
But the Contains-filter doesn't work with part-match. It works only if the filter-text equals the Title(full match). It is the same with StartWith-filter.
What wasI wrong?
The Telerik.Web.UI assembly version is 2015.2.826.45
Please help. Thanks.
function
applyFilter() {
var
grid = $find(
"<%= RadGrid_PublishedDocuments.ClientID %>"
);
var
tableView = grid.get_masterTableView();
var
column = tableView.getColumnByUniqueName(
"Title"
);
column.set_filterFunction(
"Contains"
);
tableView.filter(
"Title"
,
"dcr"
, Telerik.Web.UI.GridFilterFunction.Contains,
true
);
tableView.rebind();
}
Hi,
Is the attached app from the Telerik website a raddrawer?
Could you reveal the code for this?
Marc
<
link
rel
=
"stylesheet"
type
=
"text/css"
href="../Content/Dashboard/Dashboard.css?t=<%= DateTime.Now.Ticks %>" />