Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
106 views
I have a custom <CommandItemTemplate> on this RadGrid that at runtime looks fine in terms of width but when I view it at design time every time I switch back to alter the contents, it's width is "crunched" up or shrunk.  The table that wraps all the items in the <CommandItemTemplate> is using a stylesheet class that is sized to 100% width.  But the template area itself seems to have no way to set the size. 

This is not a show stopper, again at runtime is fine but it is annoying.  Every time I switch to design view from markup view I need to :

  1. Re-Select the grid (after scrolling down to select the grid when many exist on the page)
  2. Click the Smart Tag
  3. Choose "Edit Templates" (and why does the popup not stick to the grid but rather goes to the top of the template until you choose a template type, requiring you to scroll up and down again?)
  4. Select the desired CommandItemTemplate in the popup smart tag window
  5. Resize the template with the mouse to regain perspective

 

Now maybe I am doing something wrong but the above steps are very redundant and slow us down.

Thank you
Reid
Top achievements
Rank 2
 answered on 28 Mar 2009
10 answers
196 views

I must be missing something..

When letting rad replace the ajax script manager, the page no longer loads as there is a missing "Sys" object?
The controls work with Ajax script manger fine, but Radscriptmanager breaks the code?..

Thanks

Todd Anglin
Top achievements
Rank 2
 answered on 28 Mar 2009
1 answer
136 views
We're using the RadEditor to edit some standard html content.  We have the tools setup such that a user can browse the actual html code of the content.  When a user tries to mouseover the "<>" tab icon to view the actual HTML, that icon disappears.  Perhaps this is a CSS conflict of some kind?  Please advise.
SL0194
Top achievements
Rank 1
 answered on 28 Mar 2009
2 answers
105 views
Hi there

I've got a small cosmetic problem regarding the RadTextBox (and possibly others).

Generally all of my controls are 500px wide (translated to 497px), which is set on the Width-property of the controls
Some of controls are hidden through CSS at page load in the code-behind using control.Style[HtmlTextWriterStyle.Display] = "none".

This works as expected, but when I through JavaScript shows the controls by doing

$get("<%=control.ClientID%>").style.display = "";

the controls shows to be 3px wider that the rest of the controls.

It looks like the controls are compensating for the borders when they are rendered vissible, but this doesn't seem to happen when they are hidden.

Is there any way I can force specific controls to calculate their correct widths on page load, even though they're hidden, perhaps through the clientside pageLoad event?
Bent
Top achievements
Rank 2
 answered on 28 Mar 2009
1 answer
234 views
After much searching I cannot find an answer to the following issue.  I have the following in my .aspx file:

      <asp:Button ID="cmdDisplayPopup" runat="server" style="display:none"/>
      <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="modalBackground"
        TargetControlID="cmdDisplayPopup" PopupControlID="pnlModal"
        DropShadow="True"></cc1:ModalPopupExtender>
      <asp:Panel ID="pnlModal" runat="server"
            BackColor="LightGray" Height="150px" Width="550px" style="display:none" CssClass="modalPopup">
            <div align="center">
                Some inputs
            </div>
            <div align="center">
                <asp:Button ID="cmdOK" runat="server" Text="OK" />
                <asp:Button ID="cmdCancel" runat="server" Text="Cancel" />
            </div>
            <div align="center">
                <br /><asp:Label ID="lblError" runat="server" CssClass="red"></asp:Label>
            </div>
      </asp:Panel>

To get the modal to display initially, I have the following js:

      function DisplayModal() {
         var btn = document.getElementById("cmdDisplayPopup");
         btn.click()
         }

In a Radgrid on the parent page, I have icons that have onclick("DisplayModal()").  Clicking the icon causes the modal popup to display as expected.  Everything is fine to this point.  There are some input fields on the page.  When the user clicks OK, these fields are used to do some processing and if there is an error, I need to redisplay the popup with the error message.  I can do this, but I get a page refresh.  The popup disappears and reappears during a postback. 

Paraphrased, the codebehind is:

     Protected Sub cmdOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOK.Click
        Execute some code here....
        If ERROR Then
            lblError.Text = ERROR MESSAGE TEXT
            ModalPopupExtender1.Show()
        End If
     End Sub

I have done much searching and made several attempts to Ajaxify this popup and have not been successful.  I would think the following would work:

                <telerik:AjaxSetting AjaxControlID="cmdDisplayPopup">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlModal"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>

But when I click the icon that fires the modal popup, it displays for an instant and then disappears.  Any help would be appreciated.  Thanks.


Matthew Schneider
Top achievements
Rank 2
 answered on 27 Mar 2009
6 answers
218 views
I have a pretty large project that I have been working on for a few months. All of the sudden today, I get errors on all my telerik controls in design mode. I am using 2008 Q3, and have been using it since it came out. This is one of the errors:

Error Creating Control - RadAjaxManager1'AjaxSettings' could not be initialized. Details: [A]Telerik.Web.UI.RadAjaxManager cannot be cast to [B]Telerik.Web.UI.RadAjaxManager. Type A originates from 'Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\lgrella2\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\-wd3emyp01\Telerik.Web.UI.dll'. Type B originates from 'Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\lgrella2\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\zfmhnqph01\telerik.web.ui.dll'.


I did not upgrade telerik or anything else on the machine, but all controls in many pages in my project have a similar error. That leads me to believe my web.config file is wrong. The lines referring to telerik in the web.config are:

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

and

 <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>


How do I fix this?

Thanks

Laura
Top achievements
Rank 1
 answered on 27 Mar 2009
1 answer
300 views
During my work using Telerik components I've had the opportunity to enhance the RadComboBox with the following functionality:
  • Web Service Methods with item-templates (see WebServiceItemTemplate tag in LavieComboBox). Templating is done client-side with my own method (not with Ajax 4).
  • Multi-selection
    • Modes
      • Select None - Allows you to inclusively multi-select items.
      • Select All - Allows you to select "all", excluding items.
    • Selection with mouse - Press & Drag will select or multiple items (range).
    • Show selected - will display partial list of only selected items (flag sent to web service / FetchMatchingItems).
    • Selection display - When more than one item is selected, the combo will note the number of items (modifyable text) - for example: "Selected 3 items".
    • Tooltip - When more than one item is selected, when hovering over the combo's input box, will display the list of selected items (actual values) or the exclusion list ("all except ...").
  • Keyboard - Support for arrows, space bar for selection, shift while navigating up/down for multi-select.
  • Paging - displays number of pages at bottom of combo, and allows user to switch pages (flag sent to web service / FetchMatchingItems)
  • Sorting - Allows sorting by clicking on the header column (flag sent to web service / FetchMatchingItems)
  • Filtering - supports Paging & display of current Selection
  • Skinning supported for all features (Use the RadComboBox on the left to switch skins)

Are there interested parties for this kind of enhancement?

See ComboBox1 Image for RadComboBox with Multi-select with dragging of mouse, paging.
See ComboBox2 Image for same RadComboBox with multiple items selected, showing in Tooltip the items that were selected.
See ComboBox3 Image for same RadComboBox, all items selected, with Hay skin.

Yaron Golan
Matthew R Longhouse
Top achievements
Rank 1
 answered on 27 Mar 2009
5 answers
234 views
Is there a way to set the index using the client side JS API? I have thumbnail images that when clicked i want the correct large image to show...currently i'm doing it using InitialItemIndex in the server side code, but want to avoid a postback...

thank you for the help!

 

Wayne
Top achievements
Rank 1
 answered on 27 Mar 2009
1 answer
52 views
I was encountering problems with the RadChart rendering in design mode when I ran across Zach's thread in the forums that state installing the 122007_telerik-web-ui-2009-1-316-trial-hotfix.zip hotfix would correct the problem. I went to the Internal builds and found that there was a build from 3/24 (Telerik.Web.UI_2009_1_324_dev_hotfix.zip) as well.

Bottom line is, I installed both hotfixes (316 first and then 324) but the rendering problem persists when I drop a RadChart onto a page.

Any assistance would be greatly appreciated.

Thanks

Jack
Top achievements
Rank 1
 answered on 27 Mar 2009
1 answer
144 views
Hi All

I have a radgrid with the header and item been taken from code behind.

In the .cs I have set the width

My Code:

protected

void rgvReport_ColumnCreated(object source, GridColumnCreatedEventArgs e)

 

{

 

if (e.Column is GridBoundColumn && !(e.Column.IsBoundToFieldName("Project/Date")))

 

{

e.Column.HeaderStyle.HorizontalAlign =

HorizontalAlign.Center ;

 

e.Column.ItemStyle.HorizontalAlign =

HorizontalAlign.Right;

 

e.Column.HeaderStyle.Width = 55;

e.Column.ItemStyle.Width = 55;

 

 

}

 

else

 

{

e.Column.HeaderStyle.Width = 70;

e.Column.ItemStyle.Width = 70;

}

}

But the header width is different from the Item width.

Please could anybody tell me how to rectify this problem.

Thank you

-Anto

Todd Anglin
Top achievements
Rank 2
 answered on 27 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?