Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
Today I bought the Telerik premium collection and after install, I try to make a webform adding a RadTreeview but its send me an error in desing view  "failed to created a designer 'Telerik.Web.UI.RadTreeView,Telerik.Web.UI,Version 2009.1.402.35,Culture= neutral, PublicKeyToken= 121fae78165ba3d4".
I try to add the library Telerik.Web.Desing.dll but in Bin directory doesn´t appear, I don´t know how I´m  doing wrong.
Thank you.   
Atanas Korchev
Telerik team
 answered on 27 Apr 2009
1 answer
150 views
I am trying to load a comboBox when the grid goes into edit mode and everything I try comes back as DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'DisplayText'. the way that I am trying to bind it is by a sqlDataSource.

I have tried it many different ways and I am at a total loss... Can someone help ? 

Here is my grid
 <telerik:RadGrid ID="rgPRCA" runat="server"
                        DataSourceID="SqlDataSource1"
                        GridLines="None"
                        OnItemUpdated=rgPRCA_ItemUpdated
                        OnDataBound="rgPRCA_DataBound"
                        AllowPaging="True"
                        AllowSorting="True"
                        AutoGenerateEditColumn="false"
                        AllowAutomaticUpdates="True" >
    <ExportSettings>
    <Pdf PaperSize="Letter" FontType="Subset"></Pdf>
    <Excel Format="Html"></Excel>
    <Csv RowDelimiter="NewLine" ColumnDelimiter="Comma"></Csv>
    </ExportSettings>
    <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR"
            Frame="Border" TableLayout="Auto"
            CommandItemDisplay="None"
            AutoGenerateColumns="False"
            DataKeyNames="Login"
            DataSourceID="SqlDataSource1">
    <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False">
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False" Resizable="False">
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
    <Columns>
    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
            <ItemStyle CssClass="MyImageButton" />
        </telerik:GridEditCommandColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Login"
            FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Login"
            SortExpression="Login" UniqueName="Login" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Attendee"
            FilterListOptions="VaryByDataType" ForceExtractValue="None"
            HeaderText="Attendee" SortExpression="Attendee" UniqueName="Attendee">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Location"
            FilterListOptions="VaryByDataType" ForceExtractValue="None"
            HeaderText="Location" SortExpression="Location" UniqueName="Location">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Role"
            FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Role"
            SortExpression="Role" UniqueName="Role">
        </telerik:GridBoundColumn>
        
        <telerik:GridDateTimeColumn UniqueName="CallDate" PickerType="DatePicker" HeaderText="CallDate"
            DataField="CallDate">
            <ItemStyle Width="120px" />
        </telerik:GridDateTimeColumn>
      
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter"
            DataField="PassPhrase" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" HeaderText="PassPhrase" SortExpression="PassPhrase"
            UniqueName="PassPhrase">
        </telerik:GridBoundColumn>
        // here is where I am having issues
          <telerik:GridDropDownColumn DataSourceID="sqlCallAttended" ListTextField="DisplayText" ListValueField="ValueText"
             SortExpression="DisplayText" HeaderText="CallAttended" DropDownControlType="RadComboBox"
            DataField="DisplayText">
        </telerik:GridDropDownColumn>

        
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter"
            DataField="CallAttended" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" HeaderText="CallAttended"
            SortExpression="CallAttended" UniqueName="CallAttended">
        </telerik:GridBoundColumn>
    </Columns>
<EditFormSettings ColumnNumber="2" CaptionDataField="Attendee" CaptionFormatString="Edit properties of {0}">
                    <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                        Width="100%" />
                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                    </EditColumn>
     <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
 </EditFormSettings>
</MasterTableView>
    </telerik:RadGrid>

here is what i have for SQL: it just returns ID, DisplayText, ValueText

 <asp:SqlDataSource ID="sqlCallAttended" runat="server"
        ConnectionString="<%$ ConnectionStrings:EDCCConnectString %>"
        SelectCommand="PRCA_GetCallAttendedList"
        SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>

I also have a RadManager
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgPRCA">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPRCA" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" Transparency="25">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0;" />
    </telerik:RadAjaxLoadingPanel>

Pavlina
Telerik team
 answered on 27 Apr 2009
4 answers
192 views
I've been working my way through your tutorial on creating a custom skin for PanelBar (located at http://www.telerik.com/help/aspnet-ajax/panel_appearancecreatingacustomskin.html) and it seems to refer to styles that do not exist in the source css file.  For example, .RadPanelbar_Green  ul.rpRootGroup doesn't exist in the file Panelbar.Default.css, which is supposed to be the source for the PanelBar.Green.css file we are meant to work with in the tutorial.  I'm wondering if this tutorial was written for an earlier version of the css files.  Could someone enlighten me?  Am I missing something?

The skins I'm working with are from the 4/16 hotfix.

Thanks.

Laurie
Laurie
Top achievements
Rank 2
 answered on 27 Apr 2009
1 answer
96 views
Hi guys,
I am using the radChart with the feature ScrollMode="XOnly" enabled and the Zoom disabled (EnableZoom="false").

I defined the event radChart_BeforeLayout where I would like to change the labels of the XAxis:

for( Int32 x = 0; x < radChart.PlotArea.XAxis.Item.Count; x++ )
{
    radChart.PlotArea.XAxis.Item[x].TextBlock.Text = <my value>;
}

but the labels are always 1 to N and they are also highlighted without the possibility to remove the style and change the labels :o(

I tried to remove the ScrollMode (none) and in that way it works. Where is the error? Could you help me?

I am using the last released version: 2009_Q1_402.

Many thanks in advance!
Dino
Giuseppe
Telerik team
 answered on 27 Apr 2009
1 answer
126 views
The networking guys are starting the transition from Exchange 2003 to Exchange 2007, so I finally get to play with using the Exchange provider with the RadScheduler.  So far, the initial setup using my personal email account has gone fairly smoothly and it's  pretty awesome how everything seems to work so well!  So on to my question...

How do I get it to work with public folders or to load another user's calendar (to which the logged in user has access rights in Exchange)?  The provider only takes a username, password, and domain along with the server URL.  I don't see how to specify a particular folder or path.  Looking at Telerik's source code for the Exchange provider, I do see that the DistinguishedFolderIdNameType enumerated date type includes an option for publicfoldersroot, but it doesn't appear to be used anywhere.

Similarly, I'd also like User A, who has access rights to User B's calendar, to be able to do so, but, again, I don't see where I can specify the alternate calendar location.

Has anyone figured either of those out?
T. Tsonev
Telerik team
 answered on 27 Apr 2009
3 answers
74 views
Has anyone run into the issue of window.print(); within a radwindow to cause Internet Explorer to crash? This is only affecting some users of IE 6.0.28 and IE6.0.29. I am using the standard method of OpenRadWindow / RadWindowManager. Its happening constantly to my users.

I have tried multiple variations of the following to no avail


<
a href="javascript:" onclick="window.print();return false;">print</a>

 

 

mac
Top achievements
Rank 1
 answered on 27 Apr 2009
2 answers
258 views
Do you have any guidance for using a relative font size and normal line height, so wrapped menu item text takes up less vertical space? I have a vertical-oriented menu in a fixed-width column, with as many as 30 top-level items, mostly with long text. The default style either spills the text out past the column border, or if I specify wrapping the text, the menu becomes very long because of the greater-than-normal line height.

I want to use a relative font size of 1 em, so it scales when the user changes the browser's text size. When I over-ride the css as follows, I get the font size and line height, but the images used for highlighting menu items as you move the cursor over the menu no longer line up with the text.
        .RadMenu_Default .rmLink
        {
         /*font: normal 12px/23px "Segoe UI", Arial, sans-serif;*/
         color: #000;
         line-height:normal !important;
         text-decoration: none;
        }

The other problem I have with the 23-pixel line height is that when I set the menu item text to wrap to the available space, the menu items become too tall. I would rather assign a margin between line items, and have a normal line height so the wrapped text doesn't take up so much vertical space.
        .rmLink
        {
             white-space: normal;
        }
Kamen Bundev
Telerik team
 answered on 27 Apr 2009
1 answer
163 views
I am using RadAjaxManager in a page. As soon as I add the RadAjaxPanel I get the following~3a~3cbr /~3e ~3cbr /~3e ~3ctable width~3d~22100~25~22 bgcolor~3d~22~23ffffcc~22~3e ~3ctbody~3e ~3ctr~3e ~3ctd~3e~3ccode~3e~3c/code~3e ~3cpre~3e~5bNullReferenceException~3a Object reference not set to an instance of an object.~5d Telerik.WebControls.RadAjaxUtils.RadControl.GetUpdatingUpdatePanel~28Control target~29 +101 Telerik.WebControls.RadAjaxUtils.RadControl.IsInAjaxUpdatePanel~28Control target~29 +50 Telerik.WebControls.RadAjaxUtils.RadControl.Page_PreRenderComplete~28Object sender~2c EventArgs e~29 +21 System.EventHandler.Invoke~28Object sender~2c EventArgs e~29 +0 System.Web.UI.Page.OnPreRenderComplete~28EventArgs e~29 +8695102 System.Web.UI.Page.ProcessRequestMain~28Boolean includeStagesBeforeAsyncPoint~2c Boolean includeStagesAfterAsyncPoint~29 +1029 ~3c/pre~3e ~3c/td~3e ~3c/tr~3e ~3c/tbody~3e ~3c/table~3e ~3cbr /~3e ~3cbr~3e ~3cbr /~3e ~3cbr /~3e ~3c/br~3eWhat could be the reason for this~3f Am I missing some settings in this page~3f~3cbr /~3e ~3cbr /~3e Thanks in advance~2c~3cbr /~3e -Abhijit~3cbr /~3e ~3cbr /~3e ~3cbr /~3e
Pavlina
Telerik team
 answered on 27 Apr 2009
6 answers
198 views
Dear Sirs

I have the following problem you might be able to help me.

I have the following scenario:
I have a RadGrid inside an Ajax update Panel.

If someone tries to insert an entry that already exists and the DB doesnt permit this I get an error.

I now use the Grid Item onInserted event handler where I get the error message I need.

What I do wanna do now is get that error message formated and that formated error string back in my Website's clientside javascript where I use this string to display the error message.

Any clues on how to get that error message back to the client?
Christoph
Top achievements
Rank 1
 answered on 27 Apr 2009
3 answers
132 views
Dear all,

I inherited someone else "design" (or lack of... to be more precise) and keep bumping into increasing complexities because it uses a master page and somewhat complex Ajax logic (which is required).

This page is the only one to use that master page and I am really wondering why am I loosing my few hair left on this?
Surely, life is a lot easier with no Master Page and Ajax Proxy...

There will be quite a few much simpler pages later on and then I don't mind using a master page for them as I can easily understand the benefits.

So, I am quite tempted to ditch this master page in the complex page...

Would I upset any of you in doing so?

Eric


PS: my real expertise is SQL Server so I have not played that much with master pages, hence my "candid" question
Eric
Top achievements
Rank 1
 answered on 27 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?