Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
I have a splitter with 2 panes.  The top is a RadMenu that calls javascript functions to set the contentURL of the pane below.  The content URL page of the bottom pane opens a RadWindow.  The content of the rad window is a form that updates the database.  On Page_load of the RadWindow's contentURL page I set a textbox and radio button list from the database values. After submitting the form and updating the database correct I see the viewstate retains my new values. 

I click on the RadMenu to load the radWindow again although the original values prior to database update are still shown in the web form. 

1. Page events are not being fired the second time I try to load the radWindow
2. Turning off caching fixes the problem but is this the correct solution?

Where to go?
Georgi Tunev
Telerik team
 answered on 04 Sep 2009
3 answers
344 views
My understanding is this dll is used for VS design time. However, on the following page:

http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

It states "If you use Q1 2009 or later you need to install Telerik.Web.Design.dll in the GAC as well."

I just am trying to clarify, for a server whose only purpose is for hosting websites with Telerik controls, and not creating them in VS, is Telerik.Web.Design really needed in the GAC? I don't have it, and have not seen any errors as a result of this configuration, but wanted to try and better understand the statement found on the referenced page.

Thanks.



Vlad
Telerik team
 answered on 04 Sep 2009
5 answers
101 views
The form decorator seems to be messing up the rad upload control.   It styles the first item in the list initially, if you add a new item it is not styled and it looks different than the first.

Also - I'm using the Web20 skin and the initial decorated item has a cut off / cropped checkbox displaying.

Any suggestions on how I can get this fixed?

Thanks
Martin
Telerik team
 answered on 04 Sep 2009
7 answers
192 views
Hi,

How can I change the headerText for a grid in Runtime?

Thanks.
Milan G
tparus
Top achievements
Rank 1
 answered on 04 Sep 2009
4 answers
178 views

Running VS2008 pro V3.5 SP1
C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q2 2009
dll version 2009.2.701.20

File > Create New Website
Select RadControls vb.net Website

Creates Site
All Controls respond saying Could not load file or assembly Telerik.Web.Ui, Version 2009.2.701.20  Cannot find file specifed.

Dlls are in the Bin folder

Web Config refs include - N\ote that it never include a version.

 

<

 

add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>

This is a fresh install - of both VS2009 and RadControls
Running Vista. Is it some BS Vista thing? I have UAC turned OFF.

 

 

 

Tried repeatedly to run the 'Configure Telerkik  Web Site'

Please don't suggest adding to GAC.. I really don't want to have to deal with version control within each of the pages.

wtf ??





AkAlan
Top achievements
Rank 2
 answered on 04 Sep 2009
4 answers
242 views
I have a related combo box inside a form view insert item template that is returning the error message of "'regionsComboBox' is null or not an object".

I suspect that the issue is related to my use of the $find syntax of the 2nd combo box in the .aspx code, but cannot see it.

Can anyone see/help me with my error?

Here is my .aspx code:
     
    <script type="text/javascript"
        var regionsComboBox; 
         
        function pageLoad() { 
            regionsComboBox = $find('<%#((FormView)Container).FindControl("RadComboBox2").ClientID %>'); 
        } 
         
        function LoadRelatedRegions(combo, eventArqs) { 
            var item = eventArqs.get_item(); 
            regionsComboBox.set_text("Loading..."); 
 
            if (item.get_index() > 0) { 
                regionsComboBox.requestItems(item.get_value(), false); 
            } 
            else { 
                regionsComboBox.set_text(" "); 
                regionsComboBox.clearItems(); 
            } 
        } 
         
        function ItemsLoaded(combo, eventArqs) { 
            if (combo.get_items().get_count() > 0) { 
                combo.set_text(combo.get_items().getItem(0).get_text()); 
                combo.get_items().getItem(0).highlight(); 
            } 
            combo.hideDropDown(); //do not open region ddl when populated with regions. 
        } 
    </script> 
     
    <br /><br /> 
     
    <asp:ObjectDataSource ID="ObjectDataSource1"  
                                                OldValuesParameterFormatString="{0}"  
                                                runat="server"  
                                                SelectMethod="GetCountry"  
                                                TypeName="ResumeTableAdapters.ddlCountryTableAdapter"
        <SelectParameters> 
            <asp:ControlParameter ControlID="HiddenFieldGUID" Name="UserID" PropertyName="Value" Type="String" /> 
        </SelectParameters> 
    </asp:ObjectDataSource> 
     
    <asp:FormView ID="FormView1"  
                                runat="server"  
                                Caption="Related RadCombo inside a Form View Insert Item Template "  
                                BorderColor="Black"  
                                BorderWidth="1px"  
                                DefaultMode="Insert"  
                                Width="100%" > 
        <InsertItemTemplate> 
             
            <br /><br /> 
             
            <telerik:RadComboBox ID="RadComboBox1"  
                                                     AllowCustomText="false"  
                                                     DataSourceID="ObjectDataSource1"  
                                                     DataTextField="CountryShortNameIntl"  
                                                     DataValueField="CountryID"  
                                                     EnableLoadOnDemand="false"  
                                                     EnableTextSelection="true"  
                                                     EnableVirtualScrolling="true"  
                                                     Filter="StartsWith"  
                                                     Height="325px"  
                                                     HighlightTemplatedItems="true"  
                                                     MarkFirstMatch="true"  
                                                     MaxHeight="325"  
                                                     MaxLength="350"  
                                                     OnClientSelectedIndexChanged="LoadRelatedRegions"  
                                                     RadComboBoxImagePosition="<%$ Resources:Resource, Direction %>"  
                                                     Runat="server"  
                                                     Skin="Black"  
                                                     Width="55%"
                <ItemTemplate> 
                    <div style="padding: 2px;"
                        <asp:Image ID="ImageInsertCountryFlagIconPath" ImageAlign="AbsMiddle" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "CountryFlagIconPath") %>' Runat="server" SkinID="flag" /> 
                        <asp:Label ID="LabelInsertCountryShortNameIntl" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CountryShortNameIntl") %>' CssClass="genMed" /> 
                    </div> 
                </ItemTemplate> 
            </telerik:RadComboBox> 
             
            <br /><br /> 
             
            <telerik:RadComboBox ID="RadComboBox2"  
                                                     AllowCustomText="false"  
                                                     EnableTextSelection="true"  
                                                     EnableVirtualScrolling="true"  
                                                     ErrorMessage="StartsWith"  
                                                     HighlightTemplatedItems="true"  
                                                     LoadingMessage="Load Moi"  
                                                     MarkFirstMatch="true"  
                                                     OnClientItemsRequested="ItemsLoaded"  
                                                     OnItemsRequested="RadComboBox2_ItemsRequested"  
                                                     RadComboBoxImagePosition="<%$ Resources:Resource, Direction %>"  
                                                     Runat="server"  
                                                     Skin="Black"  
                                                     Width="50%" /> 
             
            <br /><br /> 
             
        </InsertItemTemplate> 
         
    </asp:FormView> 
     

Here is my .cs code:
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
 
    protected void LoadRelatedRegions(string countryID) 
    { 
        ddlRegionTableAdapter regionsTableAdapter = new ddlRegionTableAdapter(); //create regionsTableAdapter. 
 
        RadComboBox RadComboBox2 = (RadComboBox)FormView1.FindControl("RadComboBox2"); 
        RadComboBox2.DataSource = regionsTableAdapter.GetRegion(GetGuid(), Convert.ToInt32(countryID)); //assign the rad combo box datasource to the regionsTableAdapter. 
        RadComboBox2.DataTextField = "RegionNameIntl"//assign the data text field. 
        RadComboBox2.DataValueField = "RegionID"//assign the data value field. 
        RadComboBox2.DataBind(); //data bind the rad combo box. 
    } 
 
    protected void RadComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
    { 
        // e.Text is the first parameter of the requestItems method  
        // invoked in LoadRegions method  
        LoadRelatedRegions(e.Text); 
    } 
 
    protected Guid GetGuid() 
    { 
        Guid uid = new Guid(Membership.GetUser().ProviderUserKey.ToString()); //assign the users guid (userid) to the uid parameter using Guid.  
        return uid; //return the value;  
    } 
 


Matt
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
176 views
Hey,

I am in a big hurry by my boss.  I need a way to find a control that is on a webusercontrol via javascript.  I have tried document.getelementbyid and $find('<% RadControl.ClientId %>') and nothing is working properly.  If anyone can get back to me really quick I would greatly appreciate it.

Kyle
Charlie Crawford
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
140 views
Hi,

I have following datetime column:

<

 

telerik:GridDateTimeColumn PickerType="TimePicker" DataField="DrivingMinutesFromLastCity" HeaderText="Driving Time (MM)"

 

 

SortExpression="DrivingMinutesFromLastCity" DataType="System.DateTime" UniqueName="DrivingMinutesFromLastCity" DataFormatString="{0:HH:mm}" >

 

 

</telerik:GridDateTimeColumn>

 


now in the edit / insert form I have to enter only minutes in the form of HH:MM e.g. 00:50 . But in edit mode I have a small timeview button and when i type time 00:50 and press tab it converts it into 12:50 AM on the edit form. Time is represented in correct format (hh:mm) in the grid because i have setup dataformatstring. Now two questions:
1) How can I remove that TimeView button in the Edit mode?
2) How can I setup the input format for datetimecolumn , so that it should enter the time as it is entered e.g. 00:50 and not 12:50 AM.

Your help in this will be highly appreciated.

Cheers,
Ali
Syed M Ali Shah
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
84 views
Hello guys,

Im created an OnPopupOpening event for my Calendar control so that when a user clicks on the calendar control, i fire some javascript to control a few radio buttons on the page. The code ive got so far is :

<telerik:RadDatePicker id="radLastApplication" runat="server">
         <ClientEvents OnPopupOpening="setRadioButtonsOnPage();" />
</telerik:RadDatePicker>
 <script type="text/javascript">
       Telerik.Web.UI.Calendar.Popup.prototype.OnClick = function(e) {
            this.Opener.hidePopup();
       }  
 </script>

However with this code, my javascript fires correctly but the calendar wont display!! how can i get the calendar to display as well as fire my little javascript code too?

any help would be greatly appreciated!!

Cheer
Zef

Huzeifa Nabijee
Top achievements
Rank 1
 answered on 04 Sep 2009
0 answers
158 views
hi my friend,
i build an dotnetnuke project an create tabstrip wizard,but when i run my project see this error;
1.Error    1    The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.    ~...\APP_Outlook\Default.ascx.designer.cs    23    59    _APP_Outlook
2.Error    2    The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.    ~...\APP_Outlook\Default.ascx.designer.cs    32    62    _APP_Outlook

Mostafa Tehrani
Top achievements
Rank 1
 asked on 03 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?