Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
Hi,

I have a page which uses several RadDocks. This makes the code very unclear.
I tried to put a RadDock into a user control but this doesn't work.
What woud be the best way to organize many RadDock in the source code?

Best regards,
Robert
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 06 Oct 2008
8 answers
1.0K+ views
Hi,

I'm currently testing your RadGrid product but so far I did not succeed to make all the filter menus, pager button etc. appear in French.

I tried to set up the <globalization uiCulture="fr" culture="fr-FR"/> in my web config, in the page itself and even in the RadGrid control without success.

I saw some localization files in the App_GlobalResources but it doesn't seem to be for the RadGrid.

Well, could you give me a clue ?

Thank you
Regards,
AB
Markus
Top achievements
Rank 2
 answered on 06 Oct 2008
7 answers
288 views
Hi..
How do you do both types of paging on the same grid?
I'd like to do the alphabetic paging as well as the built in Slider.
Thanks again!
Pavel
Telerik team
 answered on 06 Oct 2008
1 answer
146 views
Ok, I have seen mention of this is several places on the forum and here is what I have found. I am using VS 2008 with a target framework of 2.0. When using version 2008.1.515.20 of Telerik.Web.UI.dll the ProgressArea displays just fine. However, when I use the later version of the dll (2008.2.826.20) the ProgressArea will not display on the page.

Telerik, what's going on here?

Thanks,

Mark
Veselin Vasilev
Telerik team
 answered on 06 Oct 2008
3 answers
149 views
I've tried to search for this and I'm sure it's often requested but I've had no luck finding it via Google or in the docs or examples.  What I want to do is have a grid with hierarchy (something like <DetailTables>)

My object model I'm binding is an IList of Customers which look like this

Customer
  Id
  Name
  Locations typeof(IList)

Each customer should be at the top level of the grid, when the user expands the grid it should return locations.  I've tried to set the DataMember of the DetailTable with no luck.

Most of the examples I see uses SQL statements on the ASPX page, however I already have an object model that's already populated.  I'm using NHibernate but this would be the same as if you were using Entity Framework (EF).  Any help is appreciated.

Thanks
Sebastian
Telerik team
 answered on 06 Oct 2008
5 answers
121 views
Hi

I am using Telerik 2008 Q2 SP2 (826) controls.

I am having an error with RadTimeView that will sometimes display the following error when I use a load-on-demand approach (i.e. setting a panel to visible="true"):

"Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value     cannot be undefined.
Parameter name: baseType"


If I go through the stack trace I get one more piece of information:

"Telerik.Web.UI.RadDateTimePicker.registerClass("Telerik.Web.UI.RadDateTimePicker",Telerik.Web.UI.RadDatePicker);"


Other RadControls work fine, specifically RadCombo and RadDatePicker.

How can I make this work?


Kind regards

Mark Eaton
Sebastian
Telerik team
 answered on 06 Oct 2008
2 answers
143 views
My radgrid doesnt  work fine on a double click. My problem is on many occasions the event for a double click is not triggered. It will respond after i have tried many times.
My code for c# and code behind is shown below:
C#
protected void rdgContacts_PreRender(object sender, EventArgs e)
{
foreach (GridDataItem item in rdgContacts.MasterTableView.Items){
if (item.Selected){strSelectedtxt = item["UserID"].Text; }}}
protected void rdgContacts_ItemCommand(object source, GridCommandEventArgs e){
if (e.Item is GridDataItem){GridDataItem dataItem = (GridDataItem)e.Item; dataItem.Attributes.Add("OnDblClick", "return ContactOpenWindow('" + strSelectedtxt + "');");}
} 

HTML Code/Java script

function ContactOpenWindow(strSelectedtxt){
window.open(
"frmSiteContacts.aspx?ID=" + strSelectedtxt,"", "location=0,status=0,scrollbars=0,width=600,height=430");}

Omlac
Top achievements
Rank 1
 answered on 06 Oct 2008
12 answers
195 views
Hi,

In my project i have a treview asp.net 2.0 populate with a classroom, when i select node classroom my scheduler filter with a classroom selected, when i select a node i save in session the classroom, in insert mode to scheduler i have a resourcetype(Dropdownlist) classroom, i select a classroom to dropdownlist and i insert a reservation, but i have all classroom into a resourtype, how i make when i make douple click on scheduler have automatically at first position in resourtype a node selected on treeview? I use a customadvancedTemplate....

Hi

Table Reservation(Appointment)

Subject
Start
End
Recurrence_rule
Data_Storga
Classroom_ID

Table Classroom

Classroom_ID
Classroom_Name
Rubihno
Top achievements
Rank 1
 answered on 06 Oct 2008
4 answers
135 views
Hi,

I'm using v3.6.5.0 of the TabStrip and am trying to get the value of each tab. I'm getting the following error message. "object doesn't support this property or method". I belive it's on the following line of code. alert(tabStrip.Tabs.item(i).value);

Can someone please suggestion how i can get the value of each tab item?
Code snippet below.

Thanks in advance!

function test()
{
    var tabStrip = <%=TabStrip.ClientID%>
    var text = tabStrip.SelectedTab.Value;  
 
    for ( var i=0; i < tabStrip.Tabs.length; i++)
    {        
        alert(tabStrip.Tabs.item(i).value);
    }    
      
}


Atanas Korchev
Telerik team
 answered on 06 Oct 2008
1 answer
155 views
Hi,
I have a detailsview with a radcombobox in the emptytemplate.  I want to validate this (I am using load on demand).  It seems I need to validate via javascript, but can not get this to working with examples you gave in other forums.  I want to prevent the users from typing in an incorrect code in the combo box - one that does not exist and pass validation.  Here's what I tried:
        function validateCombo(source, args)    
        {    
           args.IsValid = false;  
           var elements = document.getElementsByTagName('*');  
           var count = elements.length;  
           var targetId = 'rcbCAGE';  
           var i;  
           for (i = 0; i < count; i++) {  
                var element = elements[i];  
                var pos = element.id.indexOf(targetId);  
                if(pos >= 0 && element.type == 'text' ) {  
                    //found rad combo element  
                   var text = element.get_text();    
                   var item = element.findItemByText(text);    
                   if (item)    
                   {    
                       args.IsValid = true;    
                   }    
                }  
        } 

The line var text = element.get_test() throws an error that the method is not valid.

Here's a snippet of the HTML page:

        <asp:DetailsView ID="dvCageCode" DataKeyNames="CageCodeID" runat="server" AutoGenerateRows="False" 
            DataSourceID="CAGEData" Height="50px" Width="337px"   
            OnItemCommand="dvCageCode_ItemCommand"   
            OnItemCreated="dvCageCode_ItemCreated"   
            ondatabound="dvCageCode_DataBound"   
            onitemupdating="dvCageCode_ItemUpdating"   
            oniteminserting="dvCageCode_ItemInserting"   
            OnItemInserted="OnItemInserted" 
            OnItemUpdated="OnItemUpdated" 
            CellPadding="10" CommandRowStyle-Height="50px"   
                CommandRowStyle-VerticalAlign="Middle">  
              
<CommandRowStyle VerticalAlign="Middle" Height="50px"></CommandRowStyle> 
              
            <EmptyDataTemplate> 
                <table> 
                    <tr> 
                        <td nowrap="nowrap">Cage Code:</td> 
                        <td nowrap="nowrap">  
                            <telerik:RadComboBox ID="rcbCAGE" runat="server" EnableLoadOnDemand="true" MarkFirstMatch="false" 
                                    OnItemsRequested="rcb_ItemsRequested" OnSelectedIndexChanged="rcb_SelectedIndexChanged" AutoPostBack="true" ShowMoreResultsBox="true"  Skin="Mac" /> 
                            <asp:Label ID="lblCageRequired" runat="server" Text="*" CssClass="RequiredMark" Visible="true" /> 
                            <asp:RequiredFieldValidator ID="rValCageCode" runat="server" Text="Please select a CAGE Code" InitialValue="" ControlToValidate="rcbCAGE" ErrorMessage="*" Enabled="true" SetFocusOnError="true" ValidationGroup="Submit" Display="Dynamic" /> 
                            <asp:CustomValidator ID="cValCAGE"     
                                runat="server"     
                                ControlToValidate="rcbCAGE"    
                                ValidateEmptyText="True"    
                                ClientValidationFunction="validateCombo"    
                                ErrorMessage="Please select a CAGE Code from the list">    
                            </asp:CustomValidator>    
 
                        </td> 
                    </tr> 
                </table> 
            </EmptyDataTemplate> 
 

Thanks in advance for your help.
Gary
Rosi
Telerik team
 answered on 06 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?