Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
134 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
69 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
321 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
102 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
287 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
129 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
207 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
630 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
171 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
107 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?