Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
670 views
I am working on OrgChart tool. I need to create an Org Chart Horizontally and Vertically.
 
Scenario:
 - One parent node (Parent)
 - 8 nodes under parent. These 8 nodes should be horizontal. (Child nodes)
 - Each of these nodes has 10 nodes. These nodes have to be vertical. This saves space. (Grand Child nodes)
 - Printing functionality or saving functionality.
 
Please see the screenshot image of my desired ouput.
 
Regards,
 Keshab
Boyan Dimitrov
Telerik team
 answered on 15 Sep 2014
1 answer
59 views
In the OnClientCommandExecuting function, I know I can select all text by doing:

editor.fire("SelectAll");

How can I cause no text to be selected?
Danail Vasilev
Telerik team
 answered on 15 Sep 2014
2 answers
88 views
Hello,

I'm having problem to change the Radeditor toolbar dynamically in the Client script after aspx page load. I would like to load the different toolbar for the Radeditor on the fly depending on different user context selection so that the toolbar would have different function buttons available. I execute the following JavaScript code but the toolbar buttons do not reflect what I defined in the toolsfile xml file.  Do I need to call other client api to force reload the toolbar file?

launchEditor: function (editor, title) {

  if (title = 'Dsplay Name') {
     editor.ToosFile = "~/Toolbar/DisplayNameToobar.xml";
  } else if (title = 'FootNote') {
     editor.ToosFile = "~/Toolbar/FootNoteToobar.xml";
  } else {
     editor.ToosFile = "~/Toolbar/MiscToobar.xml";
  } 

},

Thanks,
Chuck


 
Danail Vasilev
Telerik team
 answered on 15 Sep 2014
1 answer
173 views
Hi,

I know you probably won't have an answer or resolution for me, but perhaps you can give me some ideas...

We are using version 2014.2.724.40 of your AJAX controls for ASP.NET.

I am using the old RadUpload and the RadProgressArea and RadProgressManager.  This was all working fine (the progressarea displayed fine), until we added a web application firewall (FortiWeb) device in front of our web server.

The web application firewall allows us to do virus scanning on the uploaded files, before the file upload process even begins.

As soon as I turned that feature on in our web application firewall, the ProgressArea no longer is being displayed during an upload.  It appears that the web application firewall maybe "breaks something" in the communication between the server and the client, during the upload process.

I don't expect you to solve that, but could you:
1.  Give me some ideas to possible troubleshoot this, or
2.  Give me some ideas on how to create some type of custom solution to display something to the users when the file is uploading?

I see that there is a onclientprogressstarted client even on the progressmanager, but I don't see a "onclientprogressended" event.  Without and "end" event, how would I know the file upload process is complete?  In other words, I know I could use the progressstarted client side event to display an animated icon or a modal div or something to the user when the upload has started.  But how would I know when the upload has ended so that I can hide whatever it is that I display?

Thanks,
Michael

Peter Filipov
Telerik team
 answered on 15 Sep 2014
4 answers
126 views
Hi All,

In order to provide consistent skinning I'd like to add a second commanditemtemplate to the bottom of my grid.  I use one at the top to provide the grid with a title and some attractive (ish) buttons for adding new records, refreshing etc.  I'd now like a second bar along the bottom to place any extra information in such as icons descriptions etc...

Is there a way to do a built in second commanditemtemplate or do I need to make a fake one?  

Worst case I suppose that one way to do it might be to do a custom pager and then simply give that a second row, this appearing like an extra bar...

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 15 Sep 2014
1 answer
66 views
Hi,

Is there any example where I can learn how to bind one resource style in my scheduler with web service binding without performance issue in there ?
thank you
Plamen
Telerik team
 answered on 15 Sep 2014
17 answers
304 views
When I add RadScriptManager to my .aspx Page the ASP.Net validators stop working,
by which I mean i still get a post back.

I've read a couple of entries on this Forum about the same exact problem.
the first solution is to re-register the 'Telerik.Web.UI.WebResource.axd' in the config file...
I removed all 'Telerik.Web.UI.WebResource.axd' from the config file,
 then I placed a RADScriptManager on my aspx page and I clicked the option on the RADScriptManager that does register the 'Telerik.Web.UI.WebResource.axd'.
The 'Telerik.Web.UI.WebResource.axd' get registered in the Config file, but that didn't solve my validation issue.

The Second entry on this Forum talks about the config file missing some .Net related httpHandlers which are needed to make RadScriptManager function properly.
while a couple of people talk about it, no one shows a list of the required httpHandlers.

Can someone please give me a list of the httpHandlers required to solve the RadScriptManager and ASP.Net Validators issue?

Please not that:
1. my application was written in Net 2.0 and converted later to .Net 3.5  
Using the 'Target Framework' Drop Down List on the Web Site Property Pages on Visual Studio 2008.
2. I'm using IIS 7

Thanks in Advance.
Bozhidar
Telerik team
 answered on 15 Sep 2014
3 answers
89 views
In looking at the AJAX release history here:
http://www.telerik.com/support/whats-new/aspnet-ajax/release-history

It refers to each version as Q# YYYY

But where can I find how that references to an actual version number?

For instance, how do I know which Q3 release 2013.3.1324.40 is?
Marin Bratanov
Telerik team
 answered on 15 Sep 2014
7 answers
276 views
Hi

I have a radgrid and a radscheduler. Users are able to drag tasks from the radgrid onto the radscheduler.
This works fine on occasion, but more often it does not work. I've been debugging and the issue seems to be with the
var htmlElement = eventArgs.get_destinationHtmlElement();
This is sometimes returning the correct element (which would be the td on the scheduler), but it is more than often returning the dragged rows and not the actual destination element.

So often the htmlElement being returned is:
<div id="ct100_ContentPlaceHolder_RadGrid1_DraggedRows" class="RadGrid Radgrid_WebBlue GridDraggedRows GridDraggedRows _WebBlue" style="z-index:99999; width:400px; position:absolute; top:227px; left:930px" tabindex="0">
  <table class="rgMasterTable" rules="all" border="1" style="width:100%;table-layout:auto;empty-cells:show;">
    <tbody>
<tr class="rgRow rgSelectedRow">
          <td class="rgSorted">2013-10-09 08:00</td>        
          <
td>Blah blah blah</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
    </tbody>
  </table>
</div>

when in actual fact what should be being returned is:
<td class="rsAptCreate rsAptCreateRow1">&nbsp;</td>

There is no difference in the way in which I drag and drop. When I hover the dragged content over the scheduler, the cells highlight in blue - to show it is hovered correctly. It's very frustrating as it is erratic and it's not working more than it is actually working.
I'm using Chrome and have a master page. I've used the following page as the example.
The code for the radgrid is as follows:
<telerik:RadGrid runat="server" ID="RadGrid1" GridLines="Both"
                    AutoGenerateColumns="False" OnRowDrop="RadGrid1_RowDrop" Skin="WebBlue"  Height="100%"
                    OnNeedDataSource="RadGrid1_NeedDataSource"
                    OnItemCreated="RadGrid1_ItemCreated"
                    OnItemCommand="RadGrid1_ItemCommand" AllowSorting="true">
                    <ClientSettings AllowRowsDragDrop="True" EnableAlternatingItems="false">
                        <Selecting AllowRowSelect="True"></Selecting>
                        <ClientEvents OnRowDropping="rowDropping" OnRowDblClick="onRowDoubleClick"></ClientEvents>
                    </ClientSettings>
                    <MasterTableView DataKeyNames="TaskId,UserId,DueDateTime">
                        <SortExpressions>
                            <telerik:GridSortExpression FieldName="DueDateTime" SortOrder="Ascending"></telerik:GridSortExpression>
                        </SortExpressions>
                        <Columns>
                            <telerik:GridDateTimeColumn DataField="DueDateTime" HeaderText="Due" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderStyle-Width="120px"></telerik:GridDateTimeColumn>
                            <telerik:GridBoundColumn DataField="Details" HeaderText="Task" SortExpression="Details" UniqueName="Details" AllowFiltering="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="UserId" HeaderText="UserId" ReadOnly="True" SortExpression="UserId" UniqueName="UserId" Display="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Fullname" HeaderText="Assigned" ReadOnly="True" SortExpression="Fullname" UniqueName="Fullname"></telerik:GridBoundColumn>                                           
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

The code for the scheduler is as follows:
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Details"  DataKeyField="TaskId"
                DataReminderField="Details" DataSourceID="DSTasks"
                DataStartField="DueDateTime" DataEndField="EstEndTime" DataSubjectField="Details" Skin="WebBlue"
                GroupBy="User" TimelineView-UserSelectable="false" OnNavigationComplete="RadScheduler1_NavigationComplete" Height="1350px"
                WeekView-HeaderDateFormat="ddd d, MMM" CustomAttributeNames="TaskTemplateName"
                 
                OnAppointmentCommand="RadScheduler1_AppointmentCommand"
                OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                >
                <AdvancedForm Modal="true"></AdvancedForm>
                <ResourceTypes>
                    <telerik:ResourceType KeyField="id" Name="User" TextField="name" ForeignKeyField="UserId" DataSourceID="DSUsers"></telerik:ResourceType>
                </ResourceTypes>
                <AppointmentTemplate>
                    <div><%# Eval("Subject")%> (<%# Convert.ToDateTime(Eval("Start")).ToString("HH:mm")%>-<%# Convert.ToDateTime(Eval("End")).ToString("HH:mm")%><%# Eval("TaskTemplateName")%>)</div>
                </AppointmentTemplate>
            </telerik:RadScheduler>

The javascript for the drag event is as follows:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function rowDropping(sender, eventArgs) {
            // Fired when the user drops a grid row
            var htmlElement = eventArgs.get_destinationHtmlElement();
            var scheduler = $find('<%= RadScheduler1.ClientID %>');
 
            if (isPartOfSchedulerAppointmentArea(htmlElement)) {
                // The row was dropped over the scheduler appointment area
                // Find the exact time slot and save its unique index in the hidden field
                var timeSlot;
 
                if ($telerik.$(htmlElement).parents(".rsApt").length != 0)
                    timeSlot = scheduler.getAppointmentFromDomElement(htmlElement).get_timeSlot();
                else
                    timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);
 
                $get("<%=TargetSlotHiddenField.ClientID %>").value = timeSlot.get_index();
 
                // The HTML needs to be set in order for the postback to execute normally
                eventArgs.set_destinationHtmlElement("<%=TargetSlotHiddenField.ClientID %>");
            }
            else {
                // The node was dropped elsewhere on the document
                eventArgs.set_cancel(true);
            }
        }
 
        function isPartOfSchedulerAppointmentArea(htmlElement) {
            // Determines if an html element is part of the scheduler appointment area
            // This can be either the rsContent or the rsAllDay div (in day and week view)
            var test1 = $telerik.$(htmlElement).parents().is("div.rsAllDay");
            var test2 = $telerik.$(htmlElement).parents().is("div.rsContent");
 
            return $telerik.$(htmlElement).parents().is("div.rsAllDay") || $telerik.$(htmlElement).parents().is("div.rsContent")
        }
 
        function onRowDoubleClick(sender, args) {
            sender.get_masterTableView().editItem(args.get_itemIndexHierarchical());
        }
    </script>
</telerik:RadScriptBlock>

Please let me know if I'm doing anything wrong, or if this happens to be a known issue. I have browsed other posts, but haven't found any related content. I initially tested drag and drop functionality on 2 radgrids and was getting the same issue.




Bozhidar
Telerik team
 answered on 15 Sep 2014
1 answer
122 views
Hello,

I have a RadGrid with Export Settings - Excel Format=BIFF

When I export the grid, all my numbers, currency and text are coming center aligned in the excel. Also my headers are not coming as bold.
Can you investigate/advise?

Best Regards,

Vikas
Kostadin
Telerik team
 answered on 15 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?