Hello,
My problem is this:
I have an upload control (Cloud or Async depending on the setup) in a mulitpage tab.
I have a checkbox that the user has to check to say that they have the right to upload the file.
I would like to disable the Upload until the user checks the checkbox
If I set the Upload Enabled to false in the code behind, when I set it to enabled with javascript (upload.set_enabled(true)) the Upload no longer functions (the file dialog does not open when the control is clicked).
I have tried to set upload.set_enabled(false) when the document is ready but this doesn't work because the Upload is on a tab it isn't rendered until that tab is open, I think, and so a $find(uploadclientid) in javascript returns null.
Is there a workaround for any of this?
Thank you
Paul Herzberg
Hello,
I have a 15 Tabs on my TabStrip(each tab has 10 child Tabs). It Show all Tabs in One Line on Big Screen(like Desktops or Big Monitors)
But on small screens(Laptops) TabStrip shows as Two Lines and occupying 20% off screen height.
I tried to use ScrollChildren="true" but it didn't work
So is there any way if it's small a screen then display rest of the Tabs like Menu option?
<
telerik:RadGrid
ID
=
"grdReferralSearch"
runat
=
"server"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowCustomPaging
=
"true"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
OnItemDataBound
=
"grdReferralSearch_OnItemDataBound"
OnItemCreated
=
"grdReferralSearch_ItemCreated"
Width
=
"100%"
Skin
=
"Windows7"
ShowGroupPanel
=
"false"
CellSpacing
=
"0"
PageSize
=
"50"
OnPageIndexChanged
=
"grdReferralSearch_PageIndexChanged"
OnPageSizeChanged
=
"grdReferralSearch_PageSizeChanged"
>
<
GroupingSettings
ShowUnGroupButton
=
"true"
CaseSensitive
=
"false"
/>
<
MasterTableView
DataKeyNames
=
"Id"
AllowFilteringByColumn
=
"True"
ShowHeader
=
"true"
AllowMultiColumnSorting
=
"false"
>
<
ItemStyle
BorderStyle
=
"Solid"
/>
<
SortExpressions
>
<
telerik:GridSortExpression
FieldName
=
"ReferralName"
SortOrder
=
"Ascending"
/>
</
SortExpressions
>
<
HeaderStyle
Font-Bold
=
"true"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ReferralName"
HeaderText
=
"Referral Name"
SortExpression
=
"ReferralName"
FilterControlWidth
=
"100"
ItemStyle-Width
=
"100"
/>
</
Columns
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
AlwaysVisible
=
"True"
Position
=
"Top"
HorizontalAlign
=
"Right"
/>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (IsPostBack == false)
{
BindReferralLookUp();
}
if (Page.IsCallback == false)
{
BindReferralLookUp();
}
}
catch (Exception ex)
{
ShowError(ex.Message);
}
protected void grdReferralSearch_PageIndexChanged(object sender, GridPageChangedEventArgs e)
{
try
{
grdReferralSearch.CurrentPageIndex = e.NewPageIndex;
BindReferralLookUp();
}
catch (Exception ex)
{
ShowError(ex.Message);
}
}
private void BindReferralLookUp()
{
try
{
grdReferralSearch.VirtualItemCount = 10000;
grdReferralSearch.DataSource = GetDataSource();
grdReferralSearch.DataBind();
}
catch (Exception ex)
{
throw ex;
}
private List<
ReferralSearchLookUp
> GetDataSource()
{
try
{
lblTotalFound.Text = string.Empty;
string referralName = string.Empty;
if (!string.IsNullOrEmpty(txtReferralName.Text.Trim()))
{
referralName = txtReferralName.Text.Trim();
}
int pageIndex = grdReferralSearch.CurrentPageIndex + 1;
int pageSize = grdReferralSearch.PageSize;
int startIndex = (pageIndex - 1) * pageSize + 1;
int endIndex = (pageIndex * pageSize);
var data = ReferralsData.ReferralSearch(referralName, startIndex, endIndex);
return data;
}
catch (Exception ex)
{
throw ex;
}
}
Hi
I have a RadGrid with batch edit mode and in cell edit mode, i have radtextbox with multiline enable. I want enter should work as a next line in radtextbox with multiline but when i hit enter, it close edit mode.
Hi
Is it possible to define, which rows of a grid shall get the alternate style depending on a database value instead of alternate every second row?
Kind regards
GridTextBoxColumnEditor editor = manager.GetColumnEditor("CustomerID") as GridTextBoxColumnEditor;
editor.TextBoxControl.Enabled = false;
Is it possible to change the viewport breakpoints? I want the xs max-Width to change at 380px instead of 360 px.
Hi,
(using Telerik.Web.UI 2015.1.401.45)
I have my RadSchedular setup like this:
<
telerik:RadScheduler
ID
=
"RadScheduler1"
SelectedView
=
"WeekView"
OnClientDataBound
=
"wsOnSchedulerDataBound"
OnClientAppointmentsPopulating
=
"wsOnClientAppointmentsPopulating"
OnClientNavigationComplete
=
"wsOnClientNavigationComplete"
OnClientAppointmentInserting
=
"wsOnClientAppointmentInserting"
OnClientAppointmentEditing
=
"wsOnClientAppointmentEditing"
OnClientAppointmentDeleting
=
"wsOnClientAppointmentDeleting"
OverflowBehavior
=
"Expand"
StartInFullTime
=
"true"
StartEditingInAdvancedForm
=
"false"
AllowDelete
=
"true"
AllowEdit
=
"true"
AllowInsert
=
"true"
EnableRecurrenceSupport
=
"false"
AppointmentStyleMode
=
"Default"
Culture
=
"nl-NL"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Sunday"
runat
=
"server"
>
<
WebServiceSettings
Path
=
"wsPlanningServices.asmx"
ResourcePopulationMode
=
"ServerSide"
/>
<
AdvancedForm
Modal
=
"true"
></
AdvancedForm
>
<
AppointmentContextMenuSettings
EnableDefault
=
"true"
/>
<
TimeSlotContextMenuSettings
EnableDefault
=
"true"
/>
<
DayView
HeaderDateFormat
=
"dd-MM-yyyy"
/>
<
WeekView
HeaderDateFormat
=
"dd-MM-yyyy"
ColumnHeaderDateFormat
=
"ddd d MMM"
/>
<
MonthView
HeaderDateFormat
=
"MMMM yyyy"
/>
<
AgendaView
HeaderDateFormat
=
"dd-MM-yyyy"
/>
</
telerik:RadScheduler
>
As you can see, I explicitly set the culture to "nl-NL" and also specified a custom WeekView.ColumnHeaderDateFormat.
Now the column headers should read as eg. "Vr 15 juni", but instead they are rendered as "Fri 19 Jun".
So the columns headers are still displayed in English, despite the explicit "nl-NL" culture setting.
What am I missing here?