Hi,
I'm following this demo :
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultvb.aspx
My binding is correct but the item template table is always showing "Loading..." without displaying any result no matter what.
Even If I remove the table inside inside ItemTemplate
<ItemTemplate>
</ItemTemplate>
I always get "Loading..."
I'm using Telerik version 2014.1.225.35
Any help please ?
Thanks
hi all
i have a grid view and i add a
<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl ="../App_Themes/Grid/Images/detal.gif" CommandName="Dtl" HeaderText ="unit detail" FilterControlAltText="Filter Dtl column" UniqueName="Dtl" >
i want to open a window to view the detail in page with grid datakeyname itemcode just like this NavigateUrl ="Default3.aspx?ItemCode"= itemcode
please help
I need to create a HtmlGraph like the attached image.
In the Yaxis I need to show when value =1 => "No Cumplio" and value=2 =>"Cumplio".
How I can do this?
There are only 2 values for Yaxis 1 or 2.
thanks
Hi,
I'm implementing a RadGrid inside the RadDataForm. The purpose is to collect a list of objects that are tied to the main object that the dataform is collecting information from. I'm taking in this subgroup with textboxes and then store it in a list of objects in session and posted back onto the RadGrid. However, the problem I'm running into currently is that I'm also trying to incorporate the RadGrid InPlace edit mode, and whenever I go to try and edit the object, the grid disappears. However, it seems like if I refresh it, it does go into edit mode but will not display the values in the columns. I've configured the NeedDataSource on the RadGrid but it doesn't seem to call it on the pageload or postback functions even though I specifically tell it to call these functions in the front-end with OnNeedDataSource and so forth. I've also tried to explicitly call OnItemCreated and OnItemDataBound to see if it hits the code behind but the grid doesn't seem to be referencing those functions either. What's the best approach to implement this functionality? I know you can reference the naming container of the object but I can't seem to get the RadGrid to reference its naming container, so not sure what I'm doing wrong.
I am working on Gantt Chart but I have a problem. For my application need I have to add a checkbox Column in left of Gird Part. Also want to an option to select any task by clicking on a task title. So after clicking on this Task title I have to get the task Id from server side code. After getting this Id I have to do some operation and hen want to rebind the chart. I did it in RadGrid and RadTreeList and t working okay. But I want to visualize this using Gantt Chart.
Please see attached screen.
Is it possible to make
Hi,
I bound a radGrid to ObjectDataSource control that returns list of User objects. One of User properties is PHONE which returns user's phone number or NULL as string.
I bound the PHONE property to a grid bound column, as follow:
<telerik:GridBoundColumn |
DataField="PHONE" |
UniqueName="PHONE" |
HeaderText="Phone" |
DataFormatString="{0:###-###-####}"> |
</telerik:GridBoundColumn> |
however, it seem that the value is not formmatted...what I'm doing wrong?
Avidan
I have a form with a rad button, with single click enabled.
On that form I have a RadProgressArea with the cancel button.
When the cancel button is pressed on the RadProgressArea - The RadButton doesn't re-enable.
How do I get it to re-enable, I tried the code below, but the button remains in it's disabled state.
If Not Response.IsClientConnected Then
'Cancel button was clicked or the browser was closed, so stop processing
radbutton.enabled = true
exit sub
end if
<?
xml
version
=
"1.0"
?><
br
>
<
configuration
><
br
>
<
configSections
><
br
>
<
sectionGroup
name
=
"telerik.web.ui"
><
br
>
<
section
name
=
"radScheduler"
type
=
"Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4"
allowDefinition
=
"MachineToApplication"
/><
br
>
</
sectionGroup
><
br
>
</
configSections
><
br
>
<
telerik.web.ui
><
br
>
<
radScheduler
defaultAppointmentProvider
=
"Integrated"
><
br
>
<
appointmentProviders
><
br
>
<
add
name
=
"ClassSchedSchedulerData"
type
=
"Scheduler3.RDSchedulerProvider"
persistChanges
=
"false"
/><
br
>
</
appointmentProviders
><
br
>
</
radScheduler
><
br
>
</
telerik.web.ui
><
br
>
<
appSettings
><
br
>
<
add
key
=
"Telerik.ScriptManager.TelerikCdn"
value
=
"Disabled"
/><
br
>
<
add
key
=
"Telerik.StyleSheetManager.TelerikCdn"
value
=
"Disabled"
/><
br
>
</
appSettings
><
br
>
<
system.web
><
br
>
<
compilation
debug
=
"true"
targetFramework
=
"4.0"
><
br
>
<
assemblies
><
br
>
<
add
assembly
=
"System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/><
br
>
<
add
assembly
=
"System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/><
br
>
<
add
assembly
=
"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/><
br
>
<
add
assembly
=
"System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/><
br
>
</
assemblies
><
br
>
</
compilation
><
br
>
<
pages
><
br
>
<
controls
><
br
>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/><
br
>
</
controls
><
br
>
</
pages
><
br
>
<
httpHandlers
><
br
>
<
add
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
validate
=
"false"
/><
br
>
<
add
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
validate
=
"false"
/><
br
>
<
add
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
validate
=
"false"
/><
br
>
<
add
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
validate
=
"false"
/><
br
>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/><
br
>
</
httpHandlers
><
br
>
<
httpModules
/><
br
>
</
system.web
><
br
>
<
system.webServer
><
br
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/><
br
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
/><
br
>
<
handlers
><
br
>
<
remove
name
=
"ChartImage_axd"
/><
br
>
<
add
name
=
"ChartImage_axd"
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/><
br
>
<
remove
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
/><
br
>
<
add
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/><
br
>
<
remove
name
=
"Telerik_Web_UI_DialogHandler_aspx"
/><
br
>
<
add
name
=
"Telerik_Web_UI_DialogHandler_aspx"
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/><
br
>
<
remove
name
=
"Telerik_RadUploadProgressHandler_ashx"
/><
br
>
<
add
name
=
"Telerik_RadUploadProgressHandler_ashx"
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/><
br
>
<
remove
name
=
"Telerik_Web_UI_WebResource_axd"
/><
br
>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
preCondition
=
"integratedMode"
/><
br
>
</
handlers
><
br
>
</
system.webServer
><
br
>
</
configuration
><
br
>
using System;<
br
>
using System.Collections.Generic;<
br
>
using System.Linq;<
br
>
using System.Web;<
br
>
using Telerik.Web.UI;<
br
>
using System.Data;<
br
>
using SchedEZ.DataAccess;<
br
>
using SchedEZ.Utilities;<
br
>
<
br
>
<
br
>
namespace Scheduler3<
br
>
{<
br
>
public class RDSchedulerProvider : SchedulerProviderBase <
br
>
{<
br
>
<
br
>
<
br
>
#region Declarations<
br
>
<
br
>
<
br
>
private IDictionary<
int
, Resource> _staff;<
br
>
private IDictionary<
int
, Resource> _students;<
br
>
private IDictionary<
int
, Resource> _equipments;<
br
>
private IDictionary<
int
, Resource> _buildingRooms;<
br
>
<
br
>
<
br
>
private Boolean _persistChanges = false;<
br
>
<
br
>
<
br
>
public enum eResourceType<
br
>
{<
br
>
BuildingRoom = 0,<
br
>
Staff = 1,<
br
>
Equipment = 2,<
br
>
Student = 3<
br
>
}<
br
>
<
br
>
<
br
>
#endregion<
br
>
<
br
>
<
br
>
#region Properties<
br
>
<
br
>
<
br
>
#endregion<
br
>
<
br
>
<
br
>
#region General Code<
br
>
<
br
>
<
br
>
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)<
br
>
{<
br
>
if (config == null)<
br
>
{<
br
>
throw new ArgumentNullException("config");<
br
>
}<
br
>
<
br
>
<
br
>
string persistChanges = config["persistChanges"];<
br
>
if (!string.IsNullOrEmpty(persistChanges))<
br
>
{<
br
>
if (!bool.TryParse(persistChanges, out _persistChanges))<
br
>
{<
br
>
throw new Exception("Invalid value for PersistChanges attribute. Use 'True' or 'False'.");<
br
>
}<
br
>
}<
br
>
else<
br
>
{<
br
>
_persistChanges = true;<
br
>
}<
br
>
<
br
>
<
br
>
}<
br
>
<
br
>
<
br
>
public override IDictionary<
ResourceType
, IEnumerable<Resource>> GetResources(ISchedulerInfo schedulerInfo)<
br
>
{<
br
>
Dictionary<
ResourceType
, IEnumerable<Resource>> resCollection = new Dictionary<
ResourceType
, IEnumerable<Resource>>();<
br
>
<
br
>
<
br
>
var myInfo = schedulerInfo as RDSchedulerInfo;<
br
>
int classSchedID = myInfo.ClassSchedID;<
br
>
<
br
>
<
br
>
// load the resources<
br
>
if (_staff == null)<
br
>
_staff = ResourceStaff.loadResources(classSchedID);<
br
>
<
br
>
<
br
>
if (_equipments == null)<
br
>
_equipments = ResourceEquipment.loadResources(classSchedID);<
br
>
<
br
>
<
br
>
if (_students == null)<
br
>
_students = ResourceStudent.loadResources(classSchedID);<
br
>
<
br
>
<
br
>
if (_buildingRooms == null)<
br
>
_buildingRooms = ResourceBuildingRoom.loadResources(classSchedID);<
br
>
<
br
>
<
br
>
<
br
>
<
br
>
resCollection.Add(new ResourceType(Enum.GetName(typeof(eResourceType), eResourceType.Staff), true), _staff.Values);<
br
>
resCollection.Add(new ResourceType(Enum.GetName(typeof(eResourceType), eResourceType.Student), true), _students.Values);<
br
>
resCollection.Add(new ResourceType(Enum.GetName(typeof(eResourceType), eResourceType.BuildingRoom), false), _buildingRooms.Values);<
br
>
resCollection.Add(new ResourceType(Enum.GetName(typeof(eResourceType), eResourceType.Equipment), true), _equipments.Values);<
br
>
<
br
>
<
br
>
return resCollection;<
br
>
}<
br
>
<
br
>
<
br
>
public override IEnumerable<
Appointment
> GetAppointments(ISchedulerInfo schedulerInfo)<
br
>
{<
br
>
var myInfo = schedulerInfo as RDSchedulerInfo;<
br
>
int classSchedID = myInfo.ClassSchedID;<
br
>
<
br
>
<
br
>
List<
Appointment
> appointments = new List<
Appointment
>();<
br
>
<
br
>
<
br
>
DataSet ds = ClassSchedWeekDayTime.getDataView_ByClassSchedID(classSchedID);<
br
>
<
br
>
<
br
>
if (!ds.IsEmpty())<
br
>
{<
br
>
foreach(DataRow dr in ds.Tables[0].Rows)<
br
>
{<
br
>
// create an appointment based on the data collected<
br
>
Appointment appt = ClassSchedule.addAppointment(dr);<
br
>
<
br
>
<
br
>
// load resources<
br
>
LoadResources(appt);<
br
>
<
br
>
<
br
>
// add to the appointments list<
br
>
appointments.Add(appt);<
br
>
}<
br
>
<
br
>
<
br
>
}<
br
>
<
br
>
<
br
>
return appointments;<
br
>
}<
br
>
<
br
>
<
br
>
<
br
>
<
br
>
private void LoadResources(Appointment apt)<
br
>
{<
br
>
// set the resource for each type<
br
>
<
br
>
<
br
>
//Student<
br
>
// students will be in every class schedule<
br
>
foreach (KeyValuePair<
int
, Resource> res in _students)<
br
>
apt.Resources.Add(res.Value);<
br
>
<
br
>
<
br
>
//Staff<
br
>
List<
Staff
> sf = ResourceStaff.FindByID(apt.ID.toInt());<
br
>
if (!sf.IsEmpty())<
br
>
{<
br
>
foreach (Staff itm in sf)<
br
>
apt.Resources.Add(_staff[itm.StaffId]);<
br
>
}<
br
>
<
br
>
<
br
>
//Equipment<
br
>
List<
Equipment
> eq = ResourceEquipment.FindByID(apt.ID.toInt());<
br
>
if (!eq.IsEmpty())<
br
>
{<
br
>
foreach (Equipment itm in eq)<
br
>
apt.Resources.Add(_equipments[itm.EquipmentId]);<
br
>
}<
br
>
<
br
>
<
br
>
//Equipment<
br
>
List<
BuildingRoom
> br = ResourceBuildingRoom.FindByID(apt.ID.toInt());<
br
>
if (!br.IsEmpty())<
br
>
{<
br
>
foreach (BuildingRoom itm in br)<
br
>
apt.Resources.Add(_buildingRooms[itm.BuildingRoomID]);<
br
>
}<
br
>
<
br
>
<
br
>
}<
br
>
<
br
>
<
br
>
public override void Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert)<
br
>
{<
br
>
base.Insert(schedulerInfo, appointmentToInsert);<
br
>
}<
br
>
<
br
>
<
br
>
public override void Update(ISchedulerInfo schedulerInfo, Appointment appointmentToUpdate)<
br
>
{<
br
>
base.Update(schedulerInfo, appointmentToUpdate);<
br
>
}<
br
>
<
br
>
<
br
>
public override void Delete(ISchedulerInfo schedulerInfo, Appointment appointmentToDelete)<
br
>
{<
br
>
base.Delete(schedulerInfo, appointmentToDelete);<
br
>
}<
br
>
<
br
>
<
br
>
#endregion<
br
>
}<
br
>
<
br
>
<
br
>
}<
br
>
Protected
Sub
RadGrid1_NeedDataSource(sender
As
Object
, e
As
Telerik.Web.UI.GridNeedDataSourceEventArgs)
Handles
RadGrid1.NeedDataSource
Dim
d
As
New
Ares4AgsmEntities
Dim
q = From i
In
d.Computer
Select
i.SamAccountName, i.SerialNumber
RadGrid1.DataSource = q
End
Sub