Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
126 views
Hi!

I have set the doctype to xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

When setting this, some new browsers works differenty. For example the following lines of code will give error in both Opera 10.51 and Firefox 4 Alpha:
var tableElement = document.createElement('TABLE');
...
var row = tableElement.insertRow(-1);

This code is copied from the RadWindow.js.
The reason is that when upper case is used (TABLE), then a generic html element is created and the insertRow function will not be valid.
Instead the following code would work:
var tableElement = document.createElement('table');
...
var row = tableElement.insertRow(-1);

When searching your javascript code, this error may exist in more controls, but for now my only problem is the RadWindow that wont open for this reason.

An other similar problem that I have experienced with my own javascript is that getElementsByTagName also should be used with lower case. Found many places in your code that are using this function with upper case. I haven't verified any errors in RadControls with this function, but there should be...

Regards
Rikard










Svetlina Anati
Telerik team
 answered on 09 Apr 2010
1 answer
111 views
Hello,

I have a site (Rad AJAX 2010 Q1 C# 3.5) that has a masterpage that contains a RadMenu.  The contents of my radmenu is populated by an XML file (I have many XML files for different user roles).  What I'd like to have is when a menu item is selected, the content page  is loaded w/o re-loading the master page.  I saw a thread from a year ago showing a way to do this if all of the things to be shown in the content page are .ascx controls.  Converting a fairly sizable number of aspx content pages to ASCX' is more of a refactoring than I can afford to do now.  Since the ascx suggestion to do something like this is a year or so old and there are new controls like XMLHttpPanel out now - is it possible to accomplish this concept now w/o the ascx refactor suggestion.  An extra bonus would be to have a loading... graphic displayed during the content page load.  If its possible to get an example of how to do this I am sure that other developers would benefit by it.

Thanks in advance,
AJ
Peter
Telerik team
 answered on 09 Apr 2010
3 answers
85 views
Hi there,

Having spent several hours trying to work this out, I thought I'd just post it hear in case anyone else has any similar issues.

I found this great article here, which implied I could implement my idea:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/manual-insert-update-delete-using-formtemplate-and-sql-backend.aspx


However, having set a handler for the OnUpdateCommand event (let's say RadGrid1_UpdateCommand), the flow would never enter into the handler when I clicked the Update button on my FormTemplate. As soon as I allowed EnableViewState again, it started working again - albeit with another caveat...

It seems that, even though I only wanted to allow EDIT on this particular RadGrid (ie NO Delete and NO Insert), I still had to enter stub handlers (ie DataGrid1_InsertCommand and DataGrid1_DeleteCommand) and declare them against the right events (ie OnInsertCommand and OnDeleteCommand).

I really wish this stuff was better documented! I nearly gave up on getting this to work. Not everyone uses DataSources, and the documentation is abysmal for people using decent Business Logic & Data Access Layers.

Thankfully, it's all working nicely now, but some better documentation would have helped in getting this sorted less painfully...
Nikolay Rusev
Telerik team
 answered on 09 Apr 2010
5 answers
98 views
Hi my question is quite urgent,

Something happened to my Visual Studio 2010 that it won't show 3.5 nor 2.0 controls in my 3.5 framework projects, it happened suddenly and in all new 3.5 and existing 3.5 projects I can only see 4.0 Rad controls available, 3.5 are grayed out, I've tried reinstalling telerik rad controls but it doesn't seem to help.

Any suggestions ?
Daniel
Telerik team
 answered on 09 Apr 2010
9 answers
281 views
Hi,

I have a problem in my announcement in my MOSS 2007,  After I enabled RadeditorMoss. The page always validated the body even it is unempty and then the announcement cannot save anymore. Do you have any solution on my problem?

Please see the attached files for you ready reference.

Thank you.
Stanimir
Telerik team
 answered on 09 Apr 2010
1 answer
224 views
I have 2 grid columns that are bound to 2 datetime fields.  The database allows NULL values because there are times that a user can fill out some information on the form but leave the datetime empty.  The problem is when I save the edited grid rows any blank datetime fields get saved back to the database as '1/1/1900 12:00 AM'.  I have tried setting the ConvertEmptyStringToNull=true but it doesn't affect the save.
Radoslav
Telerik team
 answered on 09 Apr 2010
1 answer
254 views

Hi Telerik Team,

We are currently evaluating  your RadTabStrip and RadMultipage controls to use in our project.

We have the following requirements,

1) We have RadTabstrip control and RadMultipage control in the form. On Clicking (or) Loading on the TabStrip Item, We want to view the corresponding . aspx page  in the Multipage Control.

2)We have get the Page Url and Page Title  from Database. Page Title assign to the radtabstrip and Pageurl Assign to the Multipage Control, Based on Page Url, the Page will be open inside the Multipage Control.

 

Notes,

 We have existing .aspx page url, page Title get from database, this Corresponding page url .aspx page will  load in multipage control and  corresponding Page title assign to the Tab strip.

Right now we are using this Coding for loading RadTabstrip and  RadMultipage Control

  for (int i = 0; i < DtBindScreenValue.Rows.Count; i++)

    {

     RadTab RadTabVar = new RadTab();

     RadTabVar.Text = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

     RadTabVar.Value = Convert.ToString(DtBindScreenValue.Rows[i]["aspxPageUrl"]);

     RadTabVar.ImageUrl = Convert.ToString(DtBindScreenValue.Rows[i]["Image"]);

     pnxWindowStrip.Tabs.Add(RadTabVar);

 

      RadPageView pageView = new RadPageView();

      pageView.ID = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

      PnxMultipageView.PageViews.Add(pageView);

     

      RadTabVar.PageViewID = pageView.ID;

   

   }

 

This is our page screen Shot. This page contain radtabstrip and Multipage control.

Please provide as a working sample with our requirement.

Thanks in advance.

 

Regards,

 

 

 

 

 

Veronica
Telerik team
 answered on 09 Apr 2010
1 answer
80 views
Hello,

I am using the latest version of ASP.Net Ajax controls. I created a Visual Studio web project (using the Telerik template)  that includes a default.aspx page with a RadChart, Everything works correctly but now I need to deploy it to a Sharepoint 2007 site.

What is the way to add this project (the aspx page, associated resources, settings, etc) to Sharepoint?
Is it possible to integrate this new page into my Sharepoint site using a very simple method like a page viewer web part (standard web part that comes with Sharepoint)?

Thank you,
M. R.
Peter
Telerik team
 answered on 09 Apr 2010
3 answers
164 views
Hi
I have an input box on my Master page.
The only event to hand is 'OnTextChanged' so I can type something in the text box and hit enter or click the button and it posts back to the code 'Master_Search_TextChanged' however that is also true of moving your mouse out of the box and clinking on another link. The event 'Master_Search_TextChanged' is always fired regardless of ony change in user intention how can you stope this without using classic code of one text box and one button ?
I have tried using Javascript to consume or control events (eg 'DisableOffFocusSearching') as outlined in the code libs but nothing works.
Any suggestions
Doug.


<div class="search FloatFlds">  
<%-- 
<telerik:RadTextBox   
                                  
ID="Master_Search1" ShowButton="true" BorderWidth="0px" ButtonsPosition="Right" 
 EmptyMessage="Search" AutoPostBack="true" CssClass="box-" runat="server" EnableAjaxSkinRendering="true" 
OnTextChanged="Master_Search_TextChanged" AutoCompleteType="Search" BorderStyle="None" 
Width="200px" Skin="WebBlue">  
<ClientEvents OnButtonClick="DisableOffFocusSearching" /> 
</telerik:RadTextBox>
--%> 
 
<div style="float: left; display: inline">  
<asp:TextBox ID="Master_Search" runat="server"   
AutoCompleteType="Search"   
CssClass="box" BorderWidth="0px" Width="179px"></asp:TextBox></div>  
 
<div style="float: right; display: inline">  
<asp:ImageButton ID="LinkButton19" BorderStyle="None" BorderWidth="0px" 
OnClick="Master_Search_TextChanged" 
 ImageUrl="~/App_Themes/t/resources/css/images/buttons-bullets/search_btn.gif" 
runat="server" /></div>  
</div> 
<!-- 

 

function DisableOffFocusSearching(sender, eventArgs) {
if (sender.get_enabled()) sender.disable(); else sender.enable(); } //DisableOffFocusSearching

 

 

 



-->
Dimo
Telerik team
 answered on 09 Apr 2010
1 answer
127 views
I have an ComponentArt treeview control that is skinned to look like a menu control per my clients request.  It looks and work perfect except for that fact it is not a Telerik control.  I would love to use the RadTreeView control but I cannot figure out all of the css components needed to make it work properly.  Please see the attached image of the two controls side by side and you will see what I am trying to accomplish.  I followed the example of how to create your own skin which was very useful but I just can't figure out what I'm missing.

 

.RadTreeView_Skins,  
.RadTreeView_Skins a.rtIn,  
.RadTreeView_Skins .rtEdit .rtIn input  
{  
        background-image: url(TreeView/item_bg.gif);  
 
    background-color:#666666;  
    border: 1px solid #666666;   
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
}  
 
.RadTreeView_Skins .rtPlus,   
.RadTreeView_Skins .rtMinus  
{  
    background-image: url('TreeView/plusminus.png');  
}  
 
.RadTreeView_Skins .rtChecked,  
.RadTreeView_Skins .rtUnchecked,  
.RadTreeView_Skins .rtIndeterminate  
{  
    background-image: url('TreeView/TriState.png');  
}  
 
.RadTreeView_Skins .rtHover .rtIn   
{  
    background-image: url(TreeView/item_Expanded_bg.gif);  
    border: 1px solid white;  
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
    cursor:hand;  
    color:#000;  
    width:350px;  
}  
 
.RadTreeView_Skins .rtSelected .rtIn  
{  
    background-image: url(TreeView/item_expanded_bg.gif);  
    border: 1px solid white;  
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
    cursor:hand;  
    color:#000;  
    width:350px;  
}  
 
.RadTreeView_Skins .rtSelected .rtLoadingBefore,  
.RadTreeView_Skins .rtSelected .rtLoadingAfter,  
.RadTreeView_Skins .rtSelected .rtLoadingBelow  
{  
    color: #333;  
}  
 
.RadTreeView_Skins .rtLoadingIcon  
{  
    background-image: url('TreeView/LoadingIcon.gif');  
}  
 
.RadTreeView_Skins .rtLI .rtEdit .rtIn  
{  
    border-color: #6c6c6c;  
    background: #fff;  
}  
 
.RadTreeView_Skins_disabled .rtIn,  
.RadTreeView_Skins .rtDisabled .rtIn  
{  
    color: #ccc;  
      
} 
Peter
Telerik team
 answered on 09 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?