Hi,
I have two .aspx webpages, each one has a RadGrid on it. Both have a master page file in common so the calls for css files should be the same.
But, styles differ on page A from page B.
On page A Telerik.Web.UI.Skins.GridLite.css is in the combined css file. While on page B, Telerik.Web.UI.Skins.Grid.css is in the combined css file.
Why ?
Css files are called this way in the master page :
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
>
<
StyleSheets
>
<
telerik:StyleSheetReference
Name
=
"mytheme.mytheme.Grid.mytheme.css"
Assembly
=
"mytheme"
></
telerik:StyleSheetReference
>
</
StyleSheets
>
</
telerik:RadStyleSheetManager
>
And in the web.config I have set :
<
add
key
=
"Telerik.Web.UI.RenderMode"
value
=
"lightweight"
/>
I use a custom skin made with Telerik theme builder and skin assembly
After reviewing the documentation and help files I'm still doing something wrong. I can actually get the dropdown to display correctly on and insert and edit modes. Everything is working there fine and saving correctly. I'm having troubles with the value displaying on load. Here's what I've got.
<telerik:GridDropDownColumn UniqueName="WatchdogFrequencyddl" ListTextField="Name" ListValueField="Watchdogfrequencyid" DataField="Watchdogfrequencyid" |
SortExpression="Watchdogfrequencyid" HeaderText="Frequency" DropDownControlType="DropDownList" FooterText="RadComboBox column footer" > |
</telerik:GridDropDownColumn> |
protected void WDTGrid_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridEditableItem && e.Item.IsInEditMode) //fire for both edit and insert |
{ |
GridEditableItem eeditItem = e.Item as GridEditableItem; |
GridEditManager editMgr = editItem.EditManager; |
GridDropDownListColumnEditor wdfEditor = editMgr.GetColumnEditor("WatchdogFrequencyddl") as GridDropDownListColumnEditor; |
string s = DataBinder.Eval(editItem.DataItem, "Watchdogfrequencyid").ToString(); //the field should point to the ListValueField of the dropdown editor |
wdfEditor.DataSource = getWatchdogFrequency(); |
wdfEditor.DataBind(); |
wdfEditor.SelectedValue = s; |
} |
} |
Postback filter operation for Contains (for string types) does not work well...
Hi All,
I wanted to hide the default AsyncUpload button and call it using my custom button. The loading of file will still show once its called by my button.
My custom buttons is just <a href.. with FontAwesome.
<
a
href
=
"#"
onclick
=
"callUpload(); return false;"
><
i
class
=
"fa fa-camera large"
title
=
"Change Photo"
></
i
></
a
>
Any code for JavaScript that can call the AsyncUpload click?
Thanks in advance,
RJ
I have an issue with the minDate of the RadTimePicker.
Problem #1
My schedule is from 9AM to 2AM the next day.
I can show it properly in the time view picker.
However, when I set the MinDate and the MaxDate I am unable to select a schedule after midnight even thoug it's in the MinDate and MaxDate range.
Is there a workaround ?
Problem #2
The timeview picker won't show the last time if it's equal to EndTime.
The control will allow you to type it, but you don't see it in the timeview picker.
I patched it by adding 1 second to the end time. Is it a normal behavior ?
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadTimePicker
ID
=
"TimePicker1"
runat
=
"server"
TimeView-Interval
=
"30"
></
telerik:RadTimePicker
>
</
div
>
</
form
>
</
body
>
</
html
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
{
var startTime =
new
TimeSpan(9, 0, 0);
var endTime =
new
TimeSpan(1, 2, 0, 0);
TimePicker1.TimeView.StartTime = startTime;
TimePicker1.TimeView.EndTime = endTime.Add(
new
TimeSpan(0, 0, 1));
// Patch. Add 1 sec. to show the end time in the time view picker
TimePicker1.MinDate = DateTime.Today.Add(startTime);
TimePicker1.MaxDate = DateTime.Today.Add(endTime);
}
}
Hi, I'm trying to reproduce this chart style - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/multipleyaxes/defaultcs.aspx
with a sql datasource that looks like this:
Period Person Sales
1 Rick 100
1 Sue 200
2 Rick 120
2 Sue 180
So rick/sue would each have a bar for this respective sales in each period. I cant figure out how to bind the values in the chart?
Thank you
I have a dropdown column and am filtering the grid. The drop down has an ID field and a text field, as you would expect.
The filter is actually looking for the ID field, rather than the value field. What happens is when I try to enter a character search, the filter recognized the value entered should be numeric and rejects the search.
<telerik:GridDropDownColumn
DataField="RequestTypeID"
DataType="System.String"
FilterControlAltText="Filter RequestType column"
HeaderText="Request Type"
Allowfiltering="true"
ShowFilterIcon="true"
CurrentFilterFunction="Contains"
SortExpression="RequestTypeID"
UniqueName="RequestTypeID"
ListValueField="RequestTypeID"
ListTextField="RequestType"
DataSourceID="SqlDataSource2">
</telerik:GridDropDownColumn>
Help, please.