Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
100 views

Hi,

When using a ClientDataSource to populate a couple of drop downs I have a routine in the first one that on selected item changing it triggers the second one to update.

The issue I have is that if you change the first one again it doesn't update the second drop down, tracing it, it seems that it doesn't actually do anything with the clientdatasource even though the itemsrequested event fires once it is done (doing nothing!).

I am using  the following code to trigger the update on the second combo.

Any suggestions? It is worth noting again that this works the first time, it is on the second update that it doesn't change the drop down.

Regards

Jon

child.clearItems();
child.set_text('Loading');
child.requestItems(null, false);

Veselin Tsvetanov
Telerik team
 answered on 05 Aug 2016
20 answers
205 views
Hello

Sometime when an all-day appointment spans more than a couple of days in month view, blank spaces are inserted on certain days and the cell height is increased above the value that I specified.

In the example I'm providing, the first screenshot shows an all-day appointment ('Problem appointment') starting on April 1 and ending on April 4.  Everything is formatted properly and as expected (see radScheduler_GoodFormatting).

However, in the second screenshot, the end date has been changed to April 5 - you will notice that the cell height has been increased for all rows and that there are now some random blank appointments in the cell for April 5 (see radScheduler_BadFormatting).

This issue seems to happen randomly when appointments span several days and I'm not sure what's happening...the browser source code for the BadFormatting example shows that 2 blank divs have been inserted in April 5 for some reason right after the 10:30 appointment:
<div class="rsWrap" style="z-index:6;height:25px;"></div> <div class="rsWrap" style="z-index:6;height:25px;"></div> Here is the rest of the relevant code that I'm using:

Page css
<style type="text/css"
         
        .RadScheduler_Sitefinity .rsMonthView .rsTodayCell
        {
            background: orange !important ;
        }
         
                       
        /* formats each app item container in Month view  */
        .RadScheduler_Sitefinity .rsMonthView div.rsWrap
        
              height: 20px !important;
              padding: 1px 0 1px 0 !important;
        }
         
     
        /* formats the actual label that appears in each app item container in Month view */
        .RadScheduler_Sitefinity .rsMonthView div.rsApt
        {
            height: 20px !important;
            overflow: hidden;                   
        }
         
       
    </style>

The scheduler
<telerik:RadScheduler
            CustomAttributeNames="resourceLabelColour,eventID" ID="RadScheduler1"
            runat="server"
                        
            OnClientAppointmentClick="viewAppInfo"
             
            DataEndField="appEndTime" DataKeyField="appID"
            DataSourceID="SqlDataSource1" DataStartField="appStartTime"
            DataSubjectField="appSubject" height="1000px" Skin="Sitefinity">               
        </telerik:RadScheduler>

Page_Load
Me.RadScheduler1.SelectedDate = DateTime.Now
            Me.panelFilter.Width = Unit.Percentage(100)
            Me.RadScheduler1.SelectedView = SchedulerViewType.MonthView
            Me.RadScheduler1.MonthView.VisibleAppointmentsPerDay = 6
            'Me.RadScheduler1.MonthView.MinimumRowHeight = 6
            'Me.RadScheduler1.MonthView.AdaptiveRowHeight
 
            Me.RadScheduler1.FirstDayOfWeek = DayOfWeek.Monday
            Me.RadScheduler1.LastDayOfWeek = DayOfWeek.Sunday
            Me.RadScheduler1.TimelineView.UserSelectable = False
 
            Me.RadScheduler1.ReadOnly = False
            Me.RadScheduler1.AllowEdit = False
            Me.RadScheduler1.AllowDelete = False

As I said, this issue seems to happen randomly and I'm not sure why...any help or suggestions are greatly appreciated

Thanks

Brian
Veselin Tsvetanov
Telerik team
 answered on 05 Aug 2016
8 answers
734 views
Hi,

I have a RadGrid which is populated by a datasource and the columns are not autgenerated. The data returned in the RadGrid is retrieved using a parameter @Name (this corresponds to the customer name selected in a combobox) and shows corresponding quotes for this customer, So I am selecting only one customer to show multiple quotes in the resulting grid. this all works fine :) The problem is when I want to go into edit mode in order to add a new quote under this customer. I can't find a way to autofill editform fields with Default data such as AccountNumber (since the customer has been chosen we now know the account number and shouldn't need to enter this).

Is there any way to implement this easily if possible :)

Kind Regards
Ben
Maria Ilieva
Telerik team
 answered on 05 Aug 2016
2 answers
451 views
Hi,

I am using the RadSplitter, RadPane and RadSplitterBar.

May I know how to remove the border line (black colour) that generated by the RadPane or just make the border line to others colour?

Thanks.
Peter
Top achievements
Rank 1
 answered on 05 Aug 2016
5 answers
126 views

When i right click on the table inside the editor contetn area and select table properties/cell properties. i receive this error

Table Wizard Unknown server tag 'dc:TableLayouts'. 

Ianko
Telerik team
 answered on 05 Aug 2016
6 answers
192 views

see the attachment....

 

Radscheduler not displaying correctly on first time run.

 I didn't give any height or width to the scheduler.

If again I reload or postback the page, It would be perfect.

How do I Solve it...

Adam
Top achievements
Rank 1
 answered on 04 Aug 2016
2 answers
252 views

I have a grid inside a content placeholder in a masterpage. The css for the parent div of the grid is set to overflow-x:auto, so the grid scrolls horizontally. I added an ajax loading panel and set the ScrollBars property to auto, but the loading panel still overflows the grid container element. it begin at the beginning of the container element where the grid begins but it goes all the way to the end of the page. 

 

How can I get the loading panel to stay within the width of the grid's container div?  

fred williams
Top achievements
Rank 1
 answered on 04 Aug 2016
1 answer
79 views

Hi, I have a problem with a raddock, when a postback occurs, it changes its position, goes to the left of the page.

How can i resolve the issue?

 

Thanks

Danail Vasilev
Telerik team
 answered on 04 Aug 2016
1 answer
57 views

I'm creating a graph with multiple LineSeries - the X axis is of DateType.  There are only a few dates (right now I'm testing with 4: 01/01/2013, 01/01/2014, 01/01/2015, 01/01/2016).  If I have 8 series - the graph will render but if my number of series is higher (say 20) - it will crash on both Chrome and IE.

If I keep my high number of series and now limit my date range to within a single year but have many dates (say I partition that year by month into 12 DateTime items on the X axis) - it renders correctly and quickly.  This doesn't seem to make sense as there is more data here!

I'm creating binding a DataTable where I create a new column per series.  Appreciate some advice on what might be causing this and how to resolve it - thanks.

Stamo Gochev
Telerik team
 answered on 04 Aug 2016
9 answers
1.6K+ views
Hello,
I need to set some radgrid cell values client-side, via javascript.  Then at postback I need to access those values.  Currently I'm setting the cell's innerHTML property, which displays correctly in the grid.  However, at postback all the cell values revert to "&nbsp;".  At postback, I am not re-binding the grid.  
Thanks!
-rusty

Here's how I set values on the client-side:

// For all selected rows, set the cell value.
function rgSetSelectedRowValue(rg, columnName, val) {
    var table = rg.get_masterTableView();
    var selectedRows = table.get_selectedItems();
    for (var i = 0; i < selectedRows.length; i++) {
        var row = selectedRows[i];
        var cell = table.getCellByColumnUniqueName(row, columnName);
        cell.innerHTML = val;
    }
}

Here's how I access values server-side:

// loop on grid rows
foreach (GridDataItem item in RadGrid1.MasterTableView.Items) {
string foo = item["ReplacementID"].Text;
string bar = item["comment"].Text;
...
}




satish
Top achievements
Rank 1
 answered on 04 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?