Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
89 views
Hi,

This is probably something I have done incorrectly, but wondered if you had come across the behaviour before.

I have a RadMenu on a master page, and the master page on my Default.aspx.

The Default.aspx contains a number of other controls including RadScheduler, RadSplitter and a few others.

When I open the application for the first time and select any option from the RadMenu it opens a new blank window (as expected) but then reloads Default.aspx and not the page I was expecting.

If I close this page down, the menu then works perfectly until I close the application and start again, when it does the same the very first time I try to access the menu, then is OK again until I close down.

When a menu option is hovered over, the correct page is being displayed at the bottom of the browser, but it always calls Default.aspx the very first time I try to use the menu.

I am Using RadControls 2008 Q2.

Any ideas?

David Penny
Pillar Software
David Penny
Top achievements
Rank 2
 answered on 11 Aug 2008
3 answers
103 views
Hi,
          I am using the rad Combo box in a  MOSS 2007 webpart. To increase the performence of the page, I set the EnableEmbeddedScripts property to false and referenced the scripts using ScriptReference in the ScriptManager. However I am getting a javascript error when I select a item of the combox. The error says: 
Sys.ArgumentTypeException: Object of type 'Telerik.Web.Animation.DiscreteAnimation' cannot be converted to type '' Parameter name instance

 The combo definition is as follows:

<telerik:RadComboBox ID="radComboSSNEINCode" EnableEmbeddedScripts="false"  HighlightTemplatedItems="true" runat="server" AllowCustomText="true" MarkFirstMatch="true" MaxLength="1" DataTextField="Code" DataValueField="Name">
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                            <ExpandAnimation Duration="200" />
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container,"Value")%>
                                            </ItemTemplate>
                                        </telerik:RadComboBox>

The script references are added as follows:


        protected override void OnInit(EventArgs e)
        {
            if (ScriptManager.GetCurrent(this.Page) == null)
            {
                ScriptManager rsm = new ScriptManager();
                rsm.ID = "ScriptManager1";
                
                rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/Core.js"));
                rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/AnimationScripts.js"));
                rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/NavigationScripts.js"));
                rsm.Scripts.Add(new ScriptReference("~/_layouts/WebPIE/Scripts/RadComboBoxScripts.js"));
                this.Page.Form.Controls.Add(rsm);
            }
            base.OnInit(e);
        }

Please let me know if am missing some javascripts. These are the scripts defined in the documentation.
Veselin Vasilev
Telerik team
 answered on 11 Aug 2008
1 answer
91 views
Hi

I have been unable to implement a custom skin for RadSpell. I came across this post while looking through the forums:
http://www.telerik.com/community/forums/thread/b311D-bcedat.aspx


Does my version support custom skins for RadSpell? If yes, could you give me the link to the help file that tells how to do it.

Rgds
Shuchi
Lini
Telerik team
 answered on 11 Aug 2008
10 answers
321 views
I started with the "Prometheus" version, and have everything changed that was needed, to run the new controls.
The one thing i not can figure out, is where the setting has gone,  to use a window like a splash screen?
Or how i can create a splash screen with this version?

I have search everywhere, but still didn't found it.
Help on the window control is (for now) not available here, so can someone point me a direction :-) 
 


Georgi Tunev
Telerik team
 answered on 11 Aug 2008
2 answers
180 views
I have a RadGrid with users, privileges, etc. as the rows.  In edit mode, I want to allow passwords to be changed.  So I have form edit mode enabled, and I have <ItemTemplate>...</ItemTemplate> and <EditTemplate>...</EditTemplate>  In the EditTemplate, I have two password fields.

My question is how can I use the built-in validators to compare the passwords?  I can't get to the "other" control because it is a template (I can't set the ControlToValidate property.)  I tried custom validation and I get the "ConfirmPassword" (which is set to validate) as the args value, but how do I find the corresponding row which is

Added (new)
Edited (old)

I need to handle both.

A pointer to an example would be greatly appreciated.  Validating ANY two user values in a form edit against each other is fine.

Thanks,
Tim

Missing User
 answered on 11 Aug 2008
3 answers
255 views
Using a radalert from a radwindow and the radalert is not modal and shows behind the radwindow.  You have to move the radwindow to be able to see the radalert and you can close the radwindow while the radalert reminds open.


RadWindoManager definition
    <telerik:RadWindowManager   
                id="Singleton"   
                runat="server" 
                Skin="Web20" 
                Behaviors="Move, Close" 
                DestroyOnClose="true" 
                Modal="true" 
                VisibleStatusbar="false">  
    </telerik:RadWindowManager> 
 


Code that opens the radwindow
        function showReportSelector()  
        {                      
            //Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show.  
            var oWnd = window.radopen("reportsDialog.aspx""ReportSelector");  
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close );  
            oWnd.add_close(onReportSelected);  
            oWnd.set_modal(true);  
            oWnd.setSize(470,190);  
        }  
 

Code that opens the radalert
        function OK_Clicked()  
        {  
            var oWindow = GetRadWindow();  
            var selectedIndex = document.getElementById("lstReports").selectedIndex;  
            if (selectedIndex == -1)  
            {  
                oWindow.BrowserWindow.radalert("Please select a report", 200, 100, 'Warning');  
                return false;  
            }  
              
            var selectedReportID = document.getElementById("lstReports").options[selectedIndex].value;  
            oWindow.argument = selectedReportID;  
            oWindow.close();  
        }  
 

What am I missing?
Georgi Tunev
Telerik team
 answered on 11 Aug 2008
3 answers
127 views
Hi there,

I've been using RadGrid for ASP.NET and am now looking into the ASP.NET AJAX version. However, the Blue skin that I used for the ASP.NET version is not present in the AJAX version. I found a thread elsewhere that provides a link to the deprecated skins, but these appear only suitable for the Dock and Tabstrip controls. Is there a standard way to "port" the RadGrid for ASP.NET Blue skin for use with the newest version of the Grid control?

Thanks,
Mark
Kevin Babcock
Top achievements
Rank 1
 answered on 11 Aug 2008
1 answer
207 views
I am trying to set font size X-Small for all cells.  I get this size in the command template and in the headers for the columns.  But font size of data in cells is bigger.  How can I fix it?  HTML for the radgrid is below.

<

rad:RadGrid ID="RadGrid1" AllowMultiRowSelection="True" Skin="WebBlue" runat="server"

AllowAutomaticDeletes="True" Width="999px" PageSize="40" AllowPaging="True" AutoGenerateColumns="False"

DataSourceID="ObjDataSource1" ShowStatusBar="True" EnableAJAX="true" EnableAJAXLoadingTemplate="true"

LoadingTemplateTransparency="50" OnPreRender="RadGrid1_PreRender" OnItemCreated="RadGrid1_ItemCreated"

OnDeleteCommand="RadGrid1_DeleteCommand" OnUpdateCommand="RadGrid1_UpdateCommand"

OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand"

OnItemDataBound="RadGrid1_ItemDataBound" GridLines="None" Font-Bold="False"

Font-Italic="False" Font-Overline="False" Font-Size="X-Small"

Font-Strikeout="False" Font-Underline="False">

<AlternatingItemStyle Font-Bold="False" Font-Italic="False"

Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False"

Font-Underline="False" Wrap="True" />

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False"

Wrap="True" />

<PagerStyle Mode="Slider" />

<ClientSettings>

<Selecting AllowRowSelect="true" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>

</ClientSettings>

<MasterTableView CommandItemDisplay="Top" DataKeyNames="SCS_SKU_ID" DataSourceID="ObjDataSource1"

EditMode="EditForms" AutoGenerateColumns="False" Width="100%"

TableLayout="Fixed" font-bold="False" font-italic="False" font-overline="False"

font-size="X-Small" font-strikeout="False" font-underline="False" >

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<Columns>

<rad:GridBoundColumn Visible="False" DataField="SCS_SKU_ID" HeaderText="SCS_SKU_ID"

UniqueName="SCS_SKU_ID" ReadOnly="true" />

<rad:GridBoundColumn DataField="SKU_NameUsedBySCS" HeaderText="SCS_SKU#"

UniqueName="SKU_NameUsedBySCS" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="SCS_ProcGroup_Name" ReadOnly="True" HeaderText="PGC"

UniqueName="SCS_ProcGroup_Name" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="SCS_ProcGroup2_Name" ReadOnly="True" HeaderText="PGC2"

UniqueName="SCS_ProcGroup_Name" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="LowestBatchQty" HeaderText="LBQ"

UniqueName="LowestBatchQty" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="RequiredCapacityRCAP" HeaderText="RCAP"

UniqueName="RequiredCapacityRCAP" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="BatchIncrementQty" HeaderText="BIQ"

UniqueName="BatchIncrementQty" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="EndOfDistribution" HeaderText="EOD"

UniqueName="EndOfDistribution" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="Yield" HeaderText="Yield" UniqueName="Yield" >

</rad:GridBoundColumn>

<rad:GridCheckBoxColumn

UniqueName="ActiveYN"

HeaderText="Active"

DataField="ActiveYN">

</rad:GridCheckBoxColumn>

<rad:GridBoundColumn DataField="LeadTime" HeaderText="LT" UniqueName="LeadTime" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="Cost" HeaderText="Cost" DataFormatString=" {0:N2}"

UniqueName="Cost" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="Opt" HeaderText="SCS_SKU" UniqueName="Opt" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="SKU_ID" ReadOnly="True" HeaderText="SC_SKU_ID"

UniqueName="SKU_ID" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="SKU_Name" ReadOnly="True" HeaderText="SKU"

UniqueName="SKU_Name" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="OnHandActual" HeaderText="TBOH"

UniqueName="OnHandActual" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="WorkInProcessA" HeaderText="WIPa"

UniqueName="WorkInProcessA" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="WorkInProcessB" HeaderText="WIPb"

UniqueName="WorkInProcessB" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="PurchaseOrder" HeaderText="DI"

UniqueName="PurchaseOrder" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="Allocation" HeaderText="DO"

UniqueName="Allocation" >

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="AverageDailyDemand" ReadOnly="True" HeaderText="DOSr"

UniqueName="AverageDailyDemand" DataFormatString=" {0:N2}" >

</rad:GridBoundColumn>

<rad:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Forecast.gif" CommandName="Fcst"

Text="Forecast" UniqueName="F">

</rad:GridButtonColumn>

<rad:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/ForecastCalc.gif"

CommandName="FcstC" Text="ForecastCalc" UniqueName="FC">

</rad:GridButtonColumn>

<rad:GridButtonColumn ConfirmText="Delete?" ButtonType="ImageButton" ImageUrl="~/Images/Delete.gif"

CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">

</rad:GridButtonColumn>

<rad:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Edit.gif" CommandName="Edit"

Text="Edit" UniqueName="EditColumn">

</rad:GridButtonColumn>

</Columns>

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False"

Wrap="True" />

<AlternatingItemStyle Font-Bold="False" Font-Italic="False"

Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False"

Font-Underline="False" Wrap="True" />

<CommandItemTemplate>

<div style="padding: 10px 0px;">

&nbsp;&nbsp;

<asp:LinkButton ID="LinkButtonAddNew" Font-Size="X-Small" runat="server" CommandName="InitInsert"><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />

Add new

</asp:LinkButton>

&nbsp;

<asp:LinkButton ID="lbAA" Font-Size="X-Small" runat="server" CommandName="AA"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Checked.gif" />

Activate All

</asp:LinkButton>

&nbsp;

<asp:LinkButton ID="LinkButtonDeleteSelected" Font-Size="X-Small" OnClientClick="javascript:return confirm('Delete selected items?')"

runat="server" CommandName="DeleteSelected" CausesValidation="false"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />

Delete Selected

</asp:LinkButton>

&nbsp;&nbsp;&nbsp;

<asp:LinkButton ID="LinkButtonRefresh" Font-Size="X-Small" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />

Refresh

</asp:LinkButton>

<asp:CheckBox ID="chkShowInactivesInGrid" style="vertical-align:bottom;width:22;height:22;"

Text="Show Inactive" runat="server" Font-Size="X-Small" />

</div>

</CommandItemTemplate>

</MasterTableView>

</rad:RadGrid>

Dimo
Telerik team
 answered on 11 Aug 2008
0 answers
60 views
I know this is not natively supported, but we need an approach for this.
Bob
Top achievements
Rank 1
 asked on 11 Aug 2008
3 answers
162 views
How can I change my Client.Net Profile First Name or Nick Name? Those fields are not updateable when I view my profile.
Thanks.
Paul
Telerik team
 answered on 11 Aug 2008
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?