Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
244 views
Hello,

i was wondering if there is a way to tell the control to render each appointment on a separate row even if the appointments do not overlap.

Right now the controls renders it:      [A]  [B]  [C]
Is there a way to tell it to render:        [A]
                                                                 [B]
                                                                        [C]

I tried using grouping on the appointment id but the performance suffered a lot. The amount of data is about 300-400 appointments for number of slots 90. Please let me know if there is a fast and simple way to do this. Thank you.

Regards
Robin
Ivana
Telerik team
 answered on 23 Mar 2012
2 answers
97 views
is it possible to remove the following code from the rawHTML used to generate pdf?

<thead>
        <tr>
            <th scope="col"> </th>
        </tr>
    </thead>

This is the header, but I have showheader at false and it is still rendering these items. 
Phillip
Top achievements
Rank 1
 answered on 23 Mar 2012
4 answers
417 views
HI,

I am using RADWindow on Master page, when user clicks any button I have a JavaScript that finds, sets the NavigateURl property of RADWindow control as follows:

<

script type="text/javascript">  

 

function OpenCreateVirtualFarmWindow(button, args) {  

var oManager = GetRadWindowManager();  

var oWnd = oManager.getWindowByName("CaasRADWindow");  

oWnd.SetSize(400, 400);

oWnd.SetUrl("/CaasCustomerPortal/CreateFarm.aspx");  

oWnd.Show(); 

return false;   

}

</

script


Step 2) Inside the CreateFarm.aspx we have  a "Create" and "Cancel" button, I want to close this RADWindow when the user hits Cancel button. How to achieve that in the CreateFarm.aspx.cs, I mean how do I get reference to instance of RADWindow and CLOSE it?
Marin Bratanov
Telerik team
 answered on 23 Mar 2012
1 answer
63 views
Hi,

I want to create a control which is derived from RadGrid. I want to add a RadTextBox and a RadButton above the Grid and want to
implement this in the derived class.

Normally, I would create both controls in CreateChildControls and Render them at the correct location in RenderContents.
Unfortunately, I get the following error message in RenderContents when calling
radTextBox.RenderControl(writer);

Script control 'radTextBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl

I don't wan't to create a new userControl with my two controls and the RadGrid. Could you please tell me how I can add child controls to a control derived from RadGrid?

Thanks!
Tsvetina
Telerik team
 answered on 23 Mar 2012
1 answer
45 views
Hi Guys,

I would like to be able to make some changes to the hyperlink manager and was hoping you could let me know what's involved in this.

The main change is simply just to add some text at the top of the window of the first tab. Is there any functionality in place already that will allow this or does it need changes?

Thanks as always.
Rumen
Telerik team
 answered on 23 Mar 2012
1 answer
101 views
Another twist to this functionality - so Ive read http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx and it works fine for one radeditor but the OnClientLoad event handler doesnt seem to be registered for the other radeditors in my page. They are inside multipages on other tabs.

Please advise.

Thanks.

Roland
Rumen
Telerik team
 answered on 23 Mar 2012
1 answer
49 views

The grid is based on code from a sample client side grid but I'm having a problem with data hanging around after changing pages. For this sample, assume there's 215 lines of data but the grid is set to 200 lines.  When the page changes to page 2, it correctly displays 15 lines on the screen but in the data structures that the javascript can access it sees 200 lines (which makes sense, I know the grid maintains it's original size even if it isn't showing all the lines) but all 200 lines have data bound to them (the first 15 are the new 15, the other 185 are left over from page 1).
Is it right that the extra lines on the second page still have data bound to them?  The grid seems to know to only display the first 15, how do I in my code tell which lines I should be retrieving data from for my totals?

Thanks,
Sean

 

           

function GridCommand(sender, args) {
  GetGridData(true);
}
 
function GetGridData(sendEnteredData) {
  PageMethods.GetData(currentPageIndex, tableView.get_pageSize(), sortField, sortOrder, enteredData, updateGrid, errorInCall);
}
 
function updateGrid(result) {
  var tableView = createGrid.get_masterTableView();
  tableView.set_dataSource(result);
  tableView.dataBind();
  updateTotals();
}
 
function updateTotals() {
  var items = createGrid.get_masterTableView().get_dataItems();
 
  if (items != null && items.length > 0) {
    for (var i = 0; i < items.length; i++) {
      if (items[i].get_dataItem() != null) {
        // I'm expecting only the first 15 lines would make it here if on the second page but all 200 still have data bound
      }
    }
  }
}

 

 

Martin
Telerik team
 answered on 23 Mar 2012
1 answer
92 views
Hello,

I'm attempting to create a custom field editor with a combo box with checkboxes. The problem I'm having is that only a single value is being extracted by RadFilterSqlQueryProvider.

When I walk through the code of the custom editor, the ExtractValues() method gets all the checked items. However, the SetEditorValues() method only passes in a single value.

To implement this, just use the code examples provided by Telerik and set CheckBoxes = true on the RadComboBox. Modify the ExtractValues() method to loop through the CheckedItems collection and add to the array. Then loop through the array in SetEditorValues();

Also, I am not using the Apply button I use FireApplyCommand() on PostBack. Plus, it seems that I have to use the RecreateControl() method on the RadFilter. Otherwise, I don't get any values back.

Any help would be appreciated.

Blair
Tsvetina
Telerik team
 answered on 23 Mar 2012
11 answers
135 views
Hi Guys,

I wonder if any one can shed some light on an issue we are having?

The webpage we have an issue with has a telerik:RadDateTimePicker. If the 'MultViewColumns' and 'MultiViewRow' properties are not set then the navigation works on the calendar when it pops up works fine, as does the quick month/Year selection.

However as soon as we set the 'MultiViewColumns' to 2 or more the navigation quits working, along with the quick Month/Year selection. The List of months and years pops up but selecting anything does not refresh the calendar to teh correct new month.

The html code we are using below:

<telerik:RadDateTimePicker ID="fdCourseStartDateDateTimePicker" 
        runat="server" 
        Skin="GCI"
        EnableEmbeddedSkins="false" AutoPostBackControl="Calendar" >
    <DateInput ID="DateInput2" runat="server" DateFormat="D" ReadOnly="true" >
    </DateInput>
    <TimePopupButton runat="server" Visible="false" />
    <Calendar ID="fdCourseStartDateCalendar" 
            runat="server" 
            EnableEmbeddedSkins="false" 
            Skin="GCI"
            UseRowHeadersAsSelectors="False" 
            UseColumnHeadersAsSelectors="False"
            MultiViewColumns="2" >
        <FastNavigationSettings 
            DateIsOutOfRangeMessage="Erk!" 
            EnableTodayButtonSelection="true" />
    </Calendar>
</telerik:RadDateTimePicker>

If any one can advise it will be aprreciated.

Best regards,
Dib.
Andrey
Telerik team
 answered on 23 Mar 2012
6 answers
121 views
Hi;

I have a simple grid that is connected to ObjectDataSource usinf EF. The filter works fine, but when I click on any column, i get error:
"Microsoft JScript runtime error: Could not complete the operation due to error c00ce514."

Could you please advise what to do.

Note: I have another similar Grid in another page with AllowSorting=True, but when I click on any column, nothing happens.

Thanks!
Ben Hayat
Top achievements
Rank 2
 answered on 23 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?