Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views
When I go to run my project that I mostly just copy/pasted from advanced form template thing I get this error.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: The base class includes the field 'ResRoom', but its type (CareTracker.Web.UI.Pages.ResourceControl) is not compatible with the type of control (ASP.pages_resourcecontrol_ascx).

Source Error: 

Line 119:                     <li>
Line 120:                        <!-- Resource controls should follow the convention Res[Resource Name] for ID -->
Line 121:                        <scheduler:ResourceControl runat="server" ID="ResRoom" Type="ResRoom" Label="Room:" Skin='<%# Owner.Skin %>' />
Line 122:                     </li>
Line 123:                     <li>



can anyone help/
Ed
Top achievements
Rank 1
 answered on 25 May 2011
6 answers
218 views
I have a tooltip manager with declaration:

<telerik:RadToolTipManager ID="rttmFLC" 
                OffsetX="1" 
                Width="400" 
                Height="400" 
                HideEvent="LeaveToolTip"
                runat="server" 
                OnAjaxUpdate="OnAjaxUpdate"
                RelativeTo="Element"
                Position="MiddleRight"
                ContentScrolling="Auto"
>       
</telerik:RadToolTipManager>


In code behind I load the tooltip content. The content is comprised of an image. I have found that, if the image is taller than the tootip height, a vertical scroll bar appears. However, if the image is wider than the tooltip width, a horizontal scroll bar does not appear. I have tried this by loading a simple html <img> tag in the tootip

ContentTemplateContainer.Controls collection, as well as adding a user control with an image in it. Both ways, no horizontal scrollbar. I have also tried to set the ToolTipManager ContentScrolling to "Both" instead of "Auto". Again no, horizontal scrollbar. For the time being, I can set the image width to 100%, so that the entire image width is seen in the tooltip. However, this will obviously make it so the image doesn't appear as it actually is, but rather as a "thumbnail" of sorts. Any idea why I can't get the horizontal scrollbar to show up?

Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 25 May 2011
2 answers
72 views

I wanted to know if there is an event/method for templated RadGrid columns/items where I can specifically set the culture that a specific templated value is rendered in separately from the culture used on the rest of the page/values.

Example:  The user is viewing the page in Japanese and that is the culture for the overall site, but all prices in a certain column in a RadGrid need to be listed as US prices with the $ currency while all other resources need to still be in Japanese.  

For a specific datagrid and templated column, how can I set the culture that a particular column's values are rendered under?

Currently code like the following would show a price of 30 as 30¥ instead of $30.  In the code behind (not declaratively), when binding occurs I need to be abel to say that the price should render in the en-US culture, en-GB, etc.


<telerik:GridTemplateColumn UniqueName="ExamplePriceArea" ReadOnly="True" HeaderText="ExamplePrice">
    <ItemTemplate>
        <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price", "{0:C}") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
jgill
Top achievements
Rank 1
 answered on 25 May 2011
2 answers
146 views
Hello,

I am using radchart with Skin = "Vista"

This skin shows only horizontal major grid lines. But I also widh to display vertical major grid lines with this skin. How to explicitly display the vertical major grid lines ?
prayag ganoje
Top achievements
Rank 1
 answered on 24 May 2011
1 answer
80 views
Hi

I have created a grid with 3 columns and I am able to detect a row selection on the client side.

I want to query the row for an ID attribute, so that I can pass this ID to a server function.

I have tried using a hidden column but when I do that my call to

getCellByColumnUniqueName fails because the cell doesn't exist.

surely this is a fairly common requirement.

Gimmik
Top achievements
Rank 1
 answered on 24 May 2011
2 answers
91 views
I have a simple RadGrid with a GridCheckBoxColumn and a GridTemplateColumn with an asp:CheckBox in the EditItemTemplate.  So every row has two checkboxes on it.

When I finished work Tuesday, these checkboxes displayed.  When I next started work on the grid Thursday, they did not.

I cannot figure out why they do not display.

Points On This:
1. When I display the page containing the grid in FireFox, the checkboxes display..
2. When I use View Source to save the HTML of the page that is not displaying the checkboxes and then I open that page in IE8, the checkboxes display.
3. In the debugger in the code behind, the visible property of the asp:checkbox is true.
4. I put an asp:textbox in the same EditItemTemplate as the asp:checkbox and the asp:textbox displays.

5. In the debugger on the client, I can see that the width of the asp:checkbox is set to 0.  I tried manually changing the width in the debugger - it seemed to work but when I rechecked the width, it was still 0.

The HTML sent to the browser for the two columns is the following:

<td style="width:80px;">
  <input id="RadGrid1_ctl00_ctl04_ctl00" type="checkbox" name="RadGrid1$ctl00$ctl04$ctl00" onclick="SelectDeselectRow(0, this);" />
</td>
<td style="width:80px;">
  <span style="display:inline-block;width:50px;">
    <input id="RadGrid1_ctl00_ctl04_chkSelected_2" type="checkbox" name="RadGrid1$ctl00$ctl04$chkSelected_2" />
  </span>
  <input name="RadGrid1$ctl00$ctl04$txtSelected_2" type="text" value="1" id="RadGrid1_ctl00_ctl04_txtSelected_2" onclick="SelectDeselectRow_2(0);" style="width:30px;" />
</td>

The best idea I have on what is happening is that there a script (generated by the RadGrid or by ASP.Net) that runs after the page is loaded that sets the width to 0, causing the checkbox to not be visible.  And that this script only runs in IE8.  I have looked at the script at the end of the page (which I believe is where the registered scripts go) and do not see anything that looks suspicious.

Anyone have any ideas on why the checkboxes do not display?

Thanks,

John

John
Top achievements
Rank 1
 answered on 24 May 2011
4 answers
125 views

 

Hi,

I am using grid inside combobox. Grid has the grouping and the pager. The scenario is when user selects the item of the group the selected item value is set, the combobox is collapsed, and the user is redirected to the specific places. However, when the user clicks on the group header or anywhere on the pager, the action must be completely ignored. Currently the combobox is collapsed with the empty selected value. Could you please help me to achieve the desire behavior?

Thank you, 

Tatiana

P.S. I am using v. 2009 Q3

DW Web Team Member
Top achievements
Rank 2
 answered on 24 May 2011
11 answers
150 views
Hi,
I am using OnClientAppointmentMoveEnd to determine if the user is trying to move an appointment to a disabled timeslot:

function onAppointmentMoveEnd(sender, args) {
    var start = args.get_targetSlot().get_startTime();
    var end = new Date(start.getTime() + args.get_appointment().get_duration());
 
    var slotElement = $telerik.$(args.get_targetSlot().get_domElement());
    if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled")) {
        // Prevent appointment move to disabled timeslots.
        alert("This venue is not available in this time period.");
        args.set_cancel(true);
    }
         
    warnIfOccupied(start, end, sender, args);
}

It runs without an error but it also skips over the conditional statement when it shouldn't.

I can verify that this works when I use it on the event OnClientAppointmentResizeEnd. This code works correctly and stops the user dragging the appointment into a disabled area:

function onAppointmentResizeEnd(sender, args) {
    var start = args.get_appointment().get_start();
    var end = args.get_targetSlot().get_endTime();
 
    warnIfOccupied(start, end, sender, args);
 
    var slotElement = $telerik.$(args.get_targetSlot().get_domElement());
    if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled")) {
        // Prevent appointment move to disabled timeslots.
        alert("This venue is not available in this time period.");
        args.set_cancel(true);
    }
}

It seems that the (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled")) is not available to the OnClientAppointmentMoveEnd event.

Please advise if I am simply "doing it wrong" or, if this is in fact, a bug.

Thanks.
Kevin Kembel
Top achievements
Rank 1
 answered on 24 May 2011
2 answers
88 views
Hi

I have a little problem. I have a grid and I want to show a context menu when I click inside the grid, but if I click on a row of the grid, I want to show the context menu A and if I click in the grid, but not on a row, I want to show the context menu B. For doing that, I tried to make a context menu for when I click on a row and I created another context menu who target the entire grid. So, it okay when I don't click on a row, but when I do, two context menu appears and it's the wrong that stay. May someone help me with this ? Thanks.
David
Top achievements
Rank 1
 answered on 24 May 2011
5 answers
199 views
Hi,

I'm using a grid and I followed this demo to make a context menu wich allow to add, edit or delete a user. The problem is that I want that a confirm window appears when I click on the delete item. So, I used a WindowManger.RadConfirm(), wich call a JS function. There, I verified if the paramater is true or false. If true, so it mean the user click on okay and then, with a ajaxRequest, I call a function in the code-behind who delete the user. Everything will be just find, if it wasn't for just one thing : the grid isn't automatically update and the user stay in the list even after it is delete. I had to close my window and open it again to show my grid with the correct data. I tried to do a dataRebind, but it doesn't work. Can someone tell me what to do to refresh my grid. Thanks !!!    

David
David
Top achievements
Rank 1
 answered on 24 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?