Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
59 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
233 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
99 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
3 answers
146 views
I'm looking to implement a batch-edit grid, and one of the fields is going to need a dropdown as the edit control.

The demo (http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx) uses declarative databinding.  Based on the architecture of my project, I'd prefer to bind the dropdown serverside.  However, I can't seem to figure out the server-side events needed to get at the control in the code-behind.

Can someone point me in the right direction?

Thanks.

j
Clyde
Top achievements
Rank 1
 answered on 14 Sep 2014
11 answers
496 views
Dear all
I have a problem which seems to be very common with the RadAjaxmanager but with no real solution in the forums. I have a very simple function which causes an ajax postback from client side. This works fine once. After the first postback it gets a JavaScript client side error that the object is null - it cannot find the RadAjaxManager the second time..

 function OnClientResize() {
            var action = "CLIENTRESIZE|" + BrowserHeight() + "," + BrowserWidth();
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(action);
            return false;
        }

There has been multiple posts on this issue but no real cause and solution. Could someone please help us out here?

Cheers

Tonie

Mahmoud
Top achievements
Rank 1
 answered on 14 Sep 2014
6 answers
133 views
I wanted more values inside the Grid pagesizer (instead of 10,20,50), so i wrote the following code (partly from the web)

        public static void ConfigurePageSizer(GridPagerItem pagerItem)
        {
            RadComboBox _pageSizeComboBox = (RadComboBox) pagerItem.FindControl("PageSizeComboBox");
            _pageSizeComboBox.Items.Clear();
            int[] _pageSize = new [] {10,20,50,100,250,500,750,1000};
            foreach (int _Size in _pageSize)
            {
                RadComboBoxItem _item = new RadComboBoxItem();
                _item.Text = _Size.ToString(CultureInfo.InvariantCulture);
                _item.Value = _Size.ToString(CultureInfo.InvariantCulture);
                _item.Attributes.Add("ownerTableViewId", pagerItem.OwnerTableView.ClientID);
                _pageSizeComboBox.Items.Add(_item);    
            }
        }

and then called it from : ....

        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridPagerItem)
            {
                GridHelper.ConfigurePageSizer((GridPagerItem)e.Item);
            }
        }

But ... the problem is ...  the Grid page size combobox behaviour is now that is lost track of the current selected value, it always selects the first (10)

Please advice and/or Tips 

Kind regards,
      Hugo


Pavlina
Telerik team
 answered on 13 Sep 2014
2 answers
81 views
Hi there.

Can radgrid use dynamodb as a datasource?

Would our only option be to use the AWS SDK, create a collection of objects from querying dynamodb and use the radgrid object data source?

Thanks
Chris
Chris
Top achievements
Rank 1
 answered on 12 Sep 2014
4 answers
378 views
I have viewed the demo for custom CSS and found that I can accomplish the following:

1) when using the Metro skin on the Q1 2014 release, when you select a child node the top level node remains with the blue background. This confuses my client because it appears that both are selected. I have changed the indent and other properties, but that does not satisfy them.

2) I changed the ExpandedCssClass value to my custom "noBlue" as shown in the code.
.noBlue
{
   background-color:white !important;
}


3) This works

4) afterwards I spent an hour trying to generalize the style so that the default "rpExpanded" could be left in the panel definition, but the blue background on the expanded item suppressed. I have no clue

5) I found a sample in an older posting, not specific to my needs, but indicates to me that I need something that starts with ".rp" that references the background color or similar part of the panel control.
 
div.RadPanelBar_Default a.rpLink,
        div.RadPanelBar_Default div.rpHeaderTemplate,
         div.RadPanelBar_Default .rpTemplate
         {
                 color: red;
         }
.
Tomica
Top achievements
Rank 2
 answered on 12 Sep 2014
16 answers
557 views
Hello everybody,
I'm using radEditor and I noticed that when I type characters in the Greek language it converts them to their html entities. Is there a preference of some kind to avoid this behaviour? I want the editor to insert the actual unicode characters.

Thank you in advance,
Yannis Develekos
Jie
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
214 views
I have a RadGrid in asp.net application which is bound to a ObjectDataSource. Everything works great except filtering.

I traced the query on SQL Server Profiler and found out ...where columnName like '%arabic text%' which is not returning any row.

if you change this to...where columnName like N'%arabic text%' it gives you the correct result.

Is there any solution or work around?.


Thanks
Kesava.
Angel Petrov
Telerik team
 answered on 12 Sep 2014
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?