Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I am using Telerik RadGrid for AJAX UI. The grid is being used in batch edit mode. Grid has a column which needs to display dropdown in edit mode. In telerik forums, the approach is used by using SQLDatasource. But I wish to populate the dropdown when the the cell is clicked. I guess the only way to achieve is to use the client side api. Can somebody guide me on how to achieve this.
Shridhar
Top achievements
Rank 1
 answered on 22 Sep 2016
1 answer
97 views

Hi,

 

I am trying to achieve what is shown in the KendoUi version screenshot in my WebUi project.

Is this possible? 

 

I currently have grouping by resource vertically but would like to be able to add sub resources that each have their own lane as in the Kendo example.

 

Is this possible?

Dimitar
Telerik team
 answered on 22 Sep 2016
4 answers
236 views
Hi,

I'm trying to show more than one projects on a single GanttChart. I've tried using an xmlProvider an using the structure <Projects><Project><Tasks><Task>, but nothing happens. The xmlProvider throw me an exception "incorrect structure". There's any way to do that?

my code:
<telerik:RadGantt runat="server" ID="GanttChart" CssClass="GanttChart"  OnDataBound="GanttChart_DataBound" Skin="Silk" ListWidth="400px" Height="450px" Width="1000px" SelectedView="WeekView" AutoGenerateColumns="false" WorkWeekStart="Monday" WorkWeekEnd="Friday" >
   <Columns>
      <telerik:GanttBoundColumn DataField="Title" HeaderText="Attivita" DataType="String" UniqueName="Title" Width="150px" AllowEdit="false"></telerik:GanttBoundColumn>
     <telerik:GanttBoundColumn DataField="Start" HeaderText="Inizio" DataType="DateTime" UniqueName="Start" DataFormatString="dd/MM/yy" Width="65px" AllowEdit="false" />
     <telerik:GanttBoundColumn DataField="End" HeaderText="Fine" DataType="DateTime" UniqueName="End" DataFormatString="dd/MM/yy" Width="65px" AllowEdit="false" />
     <telerik:GanttBoundColumn DataField="PercentComplete" HeaderText="Completamento" DataType="Number" UniqueName="PercentComplete" Width="110px" AllowEdit="false" />
      </Columns>
     <YearView UserSelectable="true" />
     <DataBindings>
      <TasksDataBindings IdField="ID" ParentIdField="ParentID" StartField="Start" SummaryField="Summary"    EndField="End" TitleField="Title" PercentCompleteField="PercentComplete" OrderIdField="OrderID" />
<DependenciesDataBindings TypeField="Type" IdField="ID" PredecessorIdField="PredecessorID"  SuccessorIdField="SuccessorID" />
  </DataBindings>
  </telerik:RadGantt>
My code behind
public XElement GetGantTasksByProjectId(int projectId)
        {
            using (var db = new HrNoteEntities())
            {
                var tasks = (from t in db.vw_sw_GanttTasks
                             where t.ProjectId == projectId
                             orderby t.ParentId, t.Start
                             select new
                             {
                                 ID = t.ID,
                                 ParentId = t.ParentId,
                                 Start = t.Start,
                                 End = t.End,
                                 PercentComplete = t.PercentComplete == null ? 0 : t.PercentComplete,
                                 Summary = t.Summary == 1 ? true : false,
                                 ProjectId = t.ProjectId,
                                 Title = t.Title
                             });
 
                XElement tasksList = new XElement("Tasks");
 
                int hasNext = 0;
 
                foreach (var item in tasks)
                {
                    XElement task;
 
                    if (item.ParentId > 0)
                        hasNext = 0;
                    else
                        hasNext = 1;
 
 
                    task = new XElement("Task",
                        new XElement("ID", item.ID),
                        new XElement("ParentID", item.ParentId),
                        new XElement("Start", item.Start.ToString()),
                        new XElement("End", item.End.ToString()),
                        new XElement("Title", item.Title),
                        new XElement("PercentComplete", ((decimal)item.PercentComplete).ToString("G")),
                        new XElement("Summary", item.Summary),
                        new XElement("Expanded", true),
                        new XElement("OrderID", item.ProjectId)
                        );
 
                    if (hasNext == 1 && tasksList.HasElements)
                        tasksList.Add(new XElement("NextID", item.ID));
 
                    tasksList.Add(task);
                }
                return tasksList;
            }
        }
 
        public XDocument GetGanttByProjectId(int projectId)
        {
 
            XDocument xdoc = new XDocument();
            XElement project = new XElement("Project");
            xdoc.Declaration = new XDeclaration("1.0", "utf-16", "true");
 
            project.Add(GetGantTasksByProjectId(projectId));
            xdoc.Add(project);
 
            return xdoc;
 
        }
 
 
// Binding
 
GanttChart.DataSource = model.GetGanttDataSource(selectedProjectId);
 
GanttChart.DataBind();


Any Idea?

Thanks,
Guss
Top achievements
Rank 2
Veteran
 answered on 22 Sep 2016
1 answer
149 views

Hello I hope you can help me.

I want to show fixed hours in xaxis, but graphic all values in datasource

In this example, I want to have in xaxis 10:00, 11:00, 12:00, 13:00, 14:00, but maybe in my datasource i'll have values: 10:02, 10:10, 11:15 .

 

 

Marin Bratanov
Telerik team
 answered on 22 Sep 2016
13 answers
192 views
Hi

I use telerik RadScheduler for application in which i have to make reservations using the scheduler.
The problem what i have is this. Due to our database design we have reservations that use multiple resources.
For example i have reservation in which i use Resource 1 and Resource 2.
Also the application is grouped by this resources: Resource 1, Resource 2, Resource 3  ...
In our database the relation between reservation - resource is many to many so when i make select to bind it to the scheduler i have the same reservation two times, one for Resource 1 and one for Resource 2. This reservation is show twice in the Resource 1 column and in Resource 2 column.
I have allowed drag and drop functionality. Before this on the scheduler everything worked fine.
When i drag and drop the reservation from Resource 1 to another time it's OK (Resource 1 is first column, than comes Resource 2 column). But when i try to drag the reservation from Resource 2 (this is basically the same reservation as that in Resource 1) appointment update method handler doesn't get executed.
I think this is because the two reservations (in the database is one reservation) have the same ID.
In the attachment you have the image of my scenario.

Can anybody tell me how to find work around this problem.

Thanks
Peter Milchev
Telerik team
 answered on 22 Sep 2016
1 answer
112 views

Hi, 

Is it possible to have RadLinkButton in Datalist? Because the OnItemCommand() event in DataList is not firing. 

Can anyone show me an example?

Marin Bratanov
Telerik team
 answered on 22 Sep 2016
1 answer
145 views

Hi there.

I just upgraded to 2016.3.914.35 and now a blue border appears around my radmenu when clicking on it to expand an option. Please refer to the attached screen shot.

This is only in chrome.

It doesn't appear in MS Edge, MS Internet Explorer or Firefox.

Please help.

Thanks in advance.

 

Dimitar
Telerik team
 answered on 22 Sep 2016
1 answer
218 views

Hi ,

 I have a tab strip with five "li" tags.Two tabs contains grids in it.The last tab which is also having the grid is not loading as it is not hitting the "onTabSelect" function.

All other tabs are hitting this function but last one does not.This is happening only in Microsoft Edge Browser.

function onTabSelect(e) {
    $("#load").text("Loading ...");
    uncheckedSelectedTab();    
    if (e.item.innerText == "ABC") {
        Method1();
    }  //Added for 105423 - end
    else if (e.item.innerText == "DEF") {
        Method2();
    }
    else if (e.item.innerText == "PQR") {
        Method3();
    }
    .....
}

 

Please help.

 

Regards,

Sandhya.

 

Sandy
Top achievements
Rank 1
 answered on 22 Sep 2016
1 answer
195 views

I need to add an image icon in GridColumnGroup near the column text.

Is there a way to add it?

Eyup
Telerik team
 answered on 22 Sep 2016
1 answer
38 views

Hi Team,

I am facing a issue in RadGrid, when EditMode="Batch",BatchEditingSettings-EditType="Cell" BatchEditingSettings-OpenEditingEvent="Click".

If I have result of 10 rows, I click on a cell in a columns and I need to choose a value from dropdown, but I do not select any value and click on another cell in same column, then I receive a Error : Unable to get property 'replace' of undefined or null reference with below reference.

b.RadComboBox.htmlDecode=function(c){return b.RadComboBox.replace(c,{"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&"});
};
b.RadComboBox.htmlEncode=function(c){return b.RadComboBox.replace(c,{"&":"&amp;","<":"&lt;",">":"&gt;"});
};
b.RadComboBox.isIEDocumentMode8=function(){return document.documentMode&&document.documentMode==8;
};
b.RadComboBox.replace=function(e,d){for(var c in d){e=e.replace(new RegExp(c,"g"),d[c]);

Can you please help me on this.

~

Sandeep

 

Pavlina
Telerik team
 answered on 22 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?