Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
When I enable static headers in my TreeList, the HeaderTemplate contents from  TreeListTemplateColumn from an Item do not expand and contract as the width of the tree list changes. If you look at the way the TreeList renders it's "_rtlHeader" div when in scroll mode, you see a fixed width set (width: 908px) in this case ). This value does not change as the tree list is resized. The item rows, and the other parts of the tree list properly resize ( mostly because they are all set to %'s). I tried to use HeaderStyle to override, and set it to 100%, but it has no effect. Are you having to hard code the width px due to the scrolling, and perhaps forgot an event handler to update this value on change? Is this a bug?

<div id="ctl00_MainContent_RadTreeList1_rtlHeader" class="rtlHeader" style="width: 908px; padding-right: 17px; "><div class="rtlScroller">
        <table cellspacing="0" class="rtlTable rtlHBorders rtlVBorders rtlHVBorders">
            <colgroup>
<col style="width:23px;">
<col style="width:23px;">
<col style="width:23px;">
<col style="width:100%;">
</colgroup>
<thead>
                <tr class="rtlHeader">
                    <th scope="col" class=" rtlCF  rtlCL   " colspan="4">
                    <table width="100%">
                        <tbody><tr>
                            <td align="left" valign="top" style="width:100px; text-align:right">
                                <span style="font-weight:bold">Package: </span><br>
                                <span style="font-weight:bold">Document: </span><br>
                                <span style="font-weight:bold">Checklist: </span>
                            </td>
                            <td align="left" valign="top" style="white-space: nowrap;">
                                <span id="ctl00_MainContent_RadTreeList1_ctl02_lblPackageInfo">asd</span><br>
                                <span id="ctl00_MainContent_RadTreeList1_ctl02_lblDocumentInfo">asd2</span><br>
                                <span id="ctl00_MainContent_RadTreeList1_ctl02_lblCheckListInfo">Test2.a  Checklist on 10/31/2011</span>
                            </td>
                            <td align="center" valign="middle" style="width:100%">
                             <span id="ctl00_MainContent_RadTreeList1_ctl02_lblCompletionStatusText">3 of 3 complete.</span><br>
                             <div id="ctl00_MainContent_RadTreeList1_ctl02_RadSlider1" class="RadSlider RadSlider_Office2007" style="height:22px;width:200px;">
                        <input id="ctl00_MainContent_RadTreeList1_ctl02_RadSlider1_ClientState" name="ctl00_MainContent_RadTreeList1_ctl02_RadSlider1_ClientState" type="hidden" value="{"value":3,"selectionStart":3,"selectionEnd":0,"isSelectionRangeEnabled":false,"orientation":0,"smallChange":1,"largeChange":0,"trackMouseWheel":true,"showDragHandle":false,"showDecreaseHandle":false,"showIncreaseHandle":false,"width":"200px","height":"22px","animationDuration":100,"minimumValue":0,"maximumValue":3,"trackPosition":1,"liveDrag":true,"dragText":"Drag","thumbsInteractionMode":1}" autocomplete="off">
                    <div id="RadSliderWrapper_ctl00_MainContent_RadTreeList1_ctl02_RadSlider1" unselectable="on" style="width: 200px; height: 22px; " class="rslHorizontal"><div unselectable="on" id="RadSliderTrack_ctl00_MainContent_RadTreeList1_ctl02_RadSlider1" class="rslTrack" style="left: 0px; width: 198px; height: 6px; "><div unselectable="on" id="RadSliderSelected_ctl00_MainContent_RadTreeList1_ctl02_RadSlider1" class="rslSelectedregion" style="width: 198px; "><!-- --></div></div></div></div>    
                            </td>
                            <td align="right" valign="top" style="white-space: nowrap;">
                                <a href="javascript:void(0)" class="rfdSkinnedButton"><input type="submit" name="ctl00$MainContent$RadTreeList1$ctl02$btnMarkChecklistAsComplete" value="Mark Checklist as Complete" id="ctl00_MainContent_RadTreeList1_ctl02_btnMarkChecklistAsComplete" class="rfdDecorated" tabindex="-1"></a>
                                 
                            </td>
                        </tr>
                    </tbody></table>
                </th>
                </tr>
            </thead><tbody style="display:none;">
                <tr>
                    <td colspan="1"> </td>
                </tr>
            </tbody>
        </table></div></div>
Andrey
Telerik team
 answered on 09 Dec 2011
4 answers
442 views
I am using RadControls for ASP.NET AJAX Q1 2010 SP1 for the project I am working on.

I am trying to use the RadStyleSheetManager to consolodate and compress my external css files. In my master page, inside the <form> tag I am trying to add the following:
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" OutputCompression="AutoDetect">
    <StyleSheets>
        <telerik:StyleSheetReference IsCommonCss="False" Path="/style/styles.css" />
        <telerik:StyleSheetReference IsCommonCss="False" Path="/RadControls/Menu/Skins/Default/Menu.Default.css" />
        <telerik:StyleSheetReference IsCommonCss="False" Path="/RadControls/Grid/Skins/ShopIngenix/Grid.ShopIngenix.css" />
        <telerik:StyleSheetReference IsCommonCss="False" Path="/RadControls/Grid/Skins/PriceList/Grid.PriceList.css" />
    </StyleSheets>
</telerik:RadStyleSheetManager>


When I run the project I get the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
 
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
 
Stack Trace:
 
 
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.ScriptEntrySlot.GetSerializedAssemblyInfo(ScriptEntry scriptEntry) +208
   Telerik.Web.UI.ScriptEntrySlot.SerializeScriptEntry(ScriptEntry scriptEntry) +71
   Telerik.Web.UI.ScriptEntryUrlBuilder.TryAddScriptEntry(ScriptEntry scriptEntry) +56
   Telerik.Web.UI.ScriptEntryUrlBuilder.RegisterScriptEntry(ScriptEntry scriptEntry) +237
   Telerik.Web.UI.RadStyleSheetManager.Page_PreRenderComplete(Object sender, EventArgs e) +258
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8701886
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029


All the css files exist, and are valid. I am not sure where to even begin. I checked my web.config and I have the httpHandlers:
    <httpHandlers>
        <remove verb="*" path="*.asmx"/>
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
        <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
        <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
        <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false" />
</httpHandlers>
    <httpModules>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add name="URLRewriter" type="URLRewriter.ModuleRewriter, URLRewriter"/>
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
        <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
</system.web>


Ideas?
Ashok
Top achievements
Rank 1
 answered on 09 Dec 2011
2 answers
571 views
Hi,
I have a Radio button group on my page as part of a form . How do i detect which of the radio buttons has been selected in the server side code.? Is there an easier way than testing each button to see if it is checked?

Chris

 

<telerik:RadButton ID="NordicInclBtn" runat="server" GroupName="NordicsGroup" Checked="true"
  
Skin="Office2010Blue" Text="RadButton" ToggleType="Radio" AutoPostBack="false">
  
<ToggleStates>
  
<telerik:RadButtonToggleState Text="Include" PrimaryIconCssClass="rbToggleRadioChecked" />
  
<telerik:RadButtonToggleState Text="Include" PrimaryIconCssClass="rbToggleRadio" />
  
</ToggleStates>
  
</telerik:RadButton>
  
<telerik:RadButton ID="NordicExcBtn" runat="server" GroupName="NordicsGroup" AutoPostBack="false"
  
Skin="Office2010Blue" Text="RadButton" ToggleType="Radio">
  
<ToggleStates>
  
<telerik:RadButtonToggleState Text="Exclude" PrimaryIconCssClass="rbToggleRadioChecked" />
  
<telerik:RadButtonToggleState Text="Exclude" PrimaryIconCssClass="rbToggleRadio" />
  
</ToggleStates>
  
</telerik:RadButton>
  
<telerik:RadButton ID="NordicOnlyBtn" runat="server" GroupName="NordicsGroup" AutoPostBack="false"
  
Skin="Office2010Blue" Text="RadButton" ToggleType="Radio">
  
<ToggleStates>
  
<telerik:RadButtonToggleState Text="Only" PrimaryIconCssClass="rbToggleRadioChecked" />
  
<telerik:RadButtonToggleState Text="Only" PrimaryIconCssClass="rbToggleRadio" />
  
</ToggleStates>
  
</telerik:RadButton>

 

 

 

 

Chris
Top achievements
Rank 1
 answered on 09 Dec 2011
1 answer
58 views
I am trying to add a Required validation to a bound Drop Down Box.  I have code that does this for a text box and it works, but it doesn't work for a Drop Down box.

This Works:

    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated


        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then


            Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editor As GridTextBoxColumnEditor = DirectCast(item.EditManager.GetColumnEditor("CurrencyTarget_NativeCurrent"), GridTextBoxColumnEditor)
            Dim cell As TableCell = DirectCast(editor.TextBoxControl.Parent, TableCell)
            Dim validator As New CompareValidator ' RequiredFieldValidator()


            editor.TextBoxControl.ID = "NCReqValidator"
            validator.ControlToValidate = editor.TextBoxControl.ID
            validator.Operator = ValidationCompareOperator.GreaterThanEqual
            validator.ValueToCompare = "0"
            validator.ErrorMessage = "* Native Current is a required field"
            cell.Controls.Add(validator)

        End If
End Sub

But when I add the same code for a drop down box, it does not:

    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated


        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
            Dim item2 As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editor2 As GridDropDownListColumnEditor = DirectCast(item2.EditManager.GetColumnEditor("ddCountryCode"), GridDropDownListColumnEditor)
            Dim cell2 As TableCell = DirectCast(editor2.DropDownListControl.Parent, TableCell)
            Dim validator2 As New CompareValidator ' RequiredFieldValidator()

            editor2.DropDownListControl.ID = "CCReqValidator"
            validator2.ControlToValidate = editor2.DropDownListControl.ID
            validator2.Operator = ValidationCompareOperator.NotEqual
            validator2.ValueToCompare = "XXX"
            validator2.ErrorMessage = "* Country Code is a required field"
            cell2.Controls.Add(validator2)

        End If


    End Sub
Pavlina
Telerik team
 answered on 09 Dec 2011
5 answers
125 views
Hello

Is there something to enable in order to interact with the scheduler and his appointments... ?

I try on Android (ASUS Transformer) and I can't open or resize an appointment.

Thanks in advance
Ivan Zhekov
Telerik team
 answered on 09 Dec 2011
1 answer
34 views
Hi,

I just saw your new home page(attached image),we've a requirement to build the same functionality (as shown in the red rectangular box in the image). I was just about to search for this functionality in your website....and how lucky am I to find it in your home page... :-) Could you please let me know whether I can use telerik radajax controls to achieve this same functionality? If yes, which controls should I use?  Could you please provide a sample example?

Regards,
SW
Ivan Zhekov
Telerik team
 answered on 09 Dec 2011
1 answer
45 views
In your example of the grid paging, if it only displays a few lines the grid height will shrink in so the controls below it will more up filling the space. my question is in your example you use your script manager not the default asp script manage that i need for some of the other controls on the form. Do I HAVE to use your script manager to make the grid work properly.
Also the "Page size" combo box does not display correctly as well, the box is not shown but you a select it a it does drop down with the dropdown in transparent state.
Is there a way to have the paging controls FIX to the bottom and the scroll bar will not over lay it?

Thank John
Pavlina
Telerik team
 answered on 09 Dec 2011
3 answers
72 views
Is it possible to use a date picker for the AsynchUpload additional field?

Any help would be appreciated.

Allan
Bozhidar
Telerik team
 answered on 09 Dec 2011
5 answers
212 views
Hello,

We are evaluating your product. It works perfect.
The only question I have right for now is related to export to PDF.

I cannot find a way to add something like "Page 1 of 9", "Page 2 of 9" and so on to the footer of the pages in exported document. I'm looking at your example with Sushi Menu and my export work exactly like the example: there is no footer with page numbers.
Please advice how can I get the needed functionality.

Best Regards,
Olga

Daniel
Telerik team
 answered on 09 Dec 2011
3 answers
76 views
Hi,

I just saw a little bug on the tooltip on the demo website: http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx

When the tooltip is centered at the bottom, everything is fine:
http://dl.dropbox.com/u/368403/Telerik/TooltipBottom.png 

But, when we set the Tooltip Center top, this little image which "point" the source element, is inside the tooltip instead of outside:
http://dl.dropbox.com/u/368403/Telerik/TooltipTop.png

Thank you
Marin Bratanov
Telerik team
 answered on 09 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?