Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views

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

 

Marin Bratanov
Telerik team
 answered on 05 Nov 2015
8 answers
350 views

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

Danail Vasilev
Telerik team
 answered on 05 Nov 2015
1 answer
204 views

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.

Kostadin
Telerik team
 answered on 05 Nov 2015
3 answers
151 views

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 

Bozhidar
Telerik team
 answered on 05 Nov 2015
15 answers
1.3K+ views

 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

 

 

 

 

 

 

 

Radoslav
Telerik team
 answered on 05 Nov 2015
12 answers
908 views
I have a RadGrid with column ->

<telerik:GridBoundColumn UniqueName="Description" HeaderText="Description" DataField="ShortDescription" HeaderStyle-Width="15em" SortExpression="ProductCatalogDescription" FilterControlWidth="16em">


Whenever the 'SortExpression' is set, the Ascending/Descending image (up/down arrow) is missing
when you cilck on the column header. If I remove 'SortExpression', then it shows up.

Is this a bug?
Phil
Top achievements
Rank 1
 answered on 05 Nov 2015
2 answers
671 views

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

                         

Top Coder
Top achievements
Rank 1
 answered on 05 Nov 2015
2 answers
421 views
I am getting the following error when I run a web page using RadScheduler Custom Provider:

Provider name cannot be null or empty.

I placed in the web config exactly what is supplied in the demo as well as examples posted on the site and I am still getting the above error.

Here is what is within my web.config:

<?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>




This is the following code within my provider:

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>


I really need help with this. A quick response to my issue would be greatly appreciated...

thanks in advance


xtremex xploit
Top achievements
Rank 1
 answered on 04 Nov 2015
4 answers
158 views
Hi,
My Environment: VS 2010 SP 1, EF 4/5, Teleri RadControls AJAC Q3 SP1 - 12.3.1205.0

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
Bind RadGrid to EF context executes the same query 3 times (see SQL Profiler). I also bind GridView to EF context this executs query 1 time.
Bind RadGrid to EntityDatasource this executes the query 1 time.
Whats the problem ? Is this a default behavior ?

Huy Viet
Top achievements
Rank 1
 answered on 04 Nov 2015
4 answers
379 views

Hello,

 Does anyone have an example to do the following?

 I have a RadHTMLChart on an ASP.NET form.

I have this bound to the SQL select.

It displays the data in the chart perfectly.  No problems.

What I want to do, is make it so that the RadHTMLChart is updated when the data is changed.

I have created a JavaScript iteration, and I call the Repaint on the RadHTMLChart, but this does not appear to query the data again.  (I can't tell if that is the problem, or the problem is that the Ajax isn't displaying the results.  Not sure how to figure out which is the problem?)

I have looked at the Telerik examples extensively, and I've seen the real time examples regarding static data (Not from SQL) and I've seen the SQL examples that are not real-time.  I'm looking for an example that basically puts the two together.  A real time way to update the RadHTMLChart when the data is changed.

 If this isn't clear, let me know and I'll reword it.  Any basic examples that anyone has would be great.  I just need something to work off of, because I can't seem to get the results I need from the examples I've found online.

 

Thank You

Kevin J Baird

Kevin J
Top achievements
Rank 1
 answered on 04 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?