Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
277 views
Is there any way that I can access the IsInEditMode from the javascript?

what do I need to do in order this to work?

my javascript looks like this:

function UpdateGridOnPostback_LOB_overview(controlId) { 
  RowDeselected_LOB_overview(nullnull); 
 
function RowDeselected_LOB_overview(sender, eventArgs) { 
  var masterTable = $find('LOB_overview').get_masterTableView(); 
  if(masterTable.get_isItemInserted() == true) { 
    __doPostBack('LOB_overview$ctl00$ctl02$ctl02$PerformInsertButton',''); 
  } 
  else { 
    var updateItems = false
    var items = masterTable.get_dataItems(); 
    for(i = 0; i < items.length; i++) { 
      if(IsInEditMode(items[i])) 
        updateItems = true
    } 
    if(updateItems == true
      masterTable.updateEditedItems(); 
  } 
 
function IsInEditMode(obj) { 
 
  // need to Access isInEditMode here 
 
 return false

Daniel
Telerik team
 answered on 20 Jan 2009
1 answer
174 views
(I was asking this question in a thread in the ASP.Net TabStrip forum, but thought I should move it here...)

I'm using the AJAX-Enabled ASP.NET RadTabStrip in a vertical left orientation, and the width is limited to 150px.  I tried applying a style recommended in the other forum (see the head tag in the code below) but the width still maxes out at 150px.

My test page is very simple:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="RadTabStrip Width Test.aspx.vb" Inherits="AJAXEnabledWebApplication1.RadTabStrip_Width_Test" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
    <style type="text/css">  
        .RadTabStripLeft .rtsLevel,  
        .RadTabStripRight .rtsLevel,  
        .RadTabStripLeft .rtsLevel .rtsUL,  
        .RadTabStripRight .rtsLevel .rtsUL  
        {  
              width: 100% !important;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div style="width: 500px">  
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Width="100%" Orientation="VerticalLeft">  
                <Tabs> 
                    <telerik:RadTab runat="server" Text="First tab">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="This is a very very long tab name">  
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
        </div> 
    </form> 
</body> 
</html> 
 

Any tips to get this working?  When I examine the generated page I see that rtsUL has its width set to 150px.

Thanks,
Tom

Serrin
Top achievements
Rank 1
 answered on 20 Jan 2009
1 answer
229 views
Hi,

The file upload progress bar ( RadProgressArea ) is not displaying using ASP.NET Development Server and iis7.0 ( Lauching my App by Pushing Ctrl+F5) however when I upload my site to my server2003 machine running iis6.0 then everything displays correctly..  I;ve tried to follow the instructions for configurating iis7 but it doesn't seem to make any difference.. 

Any help would be creately appreciated..

Atanas Korchev
Telerik team
 answered on 20 Jan 2009
2 answers
107 views
I have been using this fantastic control for months now and love it.  I need to find out how to construct a RadPanel so that each header or section contains no items but rather has an embedded control (in this case a series of Silverlight 2.0 apps) stretched 100% width and height to consume the entire area of each outer item or group.

I can place the control in the ItemTemplate of each group but the group does not collapse.  Only after I add a child item, and then add the control to that child item's template will it allow the parent group to collapse.

Can this be achieved?

Thanks
Reid
Top achievements
Rank 2
 answered on 20 Jan 2009
1 answer
123 views

When I add a node on the client-side, I set the ExpandMode property to ServerSideCallBack. The node gets created but the plus sign next to the node does not appear. Only after refreshing the page when the tree gets reloaded will it appear. How can I get it to appear immediately after adding the node. Here is my code:

        tree.trackChanges();  
        var node = new Telerik.Web.UI.RadTreeNode();  
        node.set_value(id);  
        node.set_text(nodeName);  
        node.set_imageUrl(imageURL);  
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack);  
 
        nodes = tree.get_nodes();  
        nodes.insert(position, node);  
          
        var elem = node.get_element();  
        elem.setAttribute('title', description);  
        node.select();  
        node.scrollIntoView();  
        tree.commitChanges(); 
Atanas Korchev
Telerik team
 answered on 20 Jan 2009
0 answers
73 views
how do i make it so that the description in the tab fit. because right now my description creates second line on the tab that has a black color to it . can you help? thank you. remember the width of the tab can only be 150px. so really i want to have it dynamically fit the description in there. thanks.
appdev
Top achievements
Rank 1
 asked on 20 Jan 2009
1 answer
245 views
Hi,
Has anybody figured out a way to use these with the RadCombobox? If not, is there some other alternative to get the same functionality?
Thanks ... Ed
Atanas Korchev
Telerik team
 answered on 20 Jan 2009
6 answers
230 views
Hi all!

First of all let me say you did a great work in Prometheus. Controls are absolutely amazing, I have never seen anything like this in my life! Very good work.

Unfortunately I have two issues:

1. The RadEditor is not rendered properly as you can see below. Don't know why, but others browsers are ok. I'll try another skin, but this my favour.

IE 7 Version: 7.0.6001.18000
Chrome: 1.0.154.43
Firefox: 3.0.5

http://www.amdreality.cz/IE.jpg
http://www.amdreality.cz/firefox.jpg
http://www.amdreality.cz/chrome.jpg

2. The second problem makes me crazy for a long time! When I use VS 2008 and debug the website I can open the image manager and others dialogs without any problem. But, when I deploy my solution to MOSS 2007 I'm not able to open any dialogs which are handled by DialogHandler. I know, i know, there were few threads about registering the handlers in Web.Config. I saw all of them and tried everything but nothing :((

Here is part of my web.config:

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0,

Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0,

Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" />
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral,

PublicKeyToken=121fae78165ba3d4" />
    </handlers>
  </system.webServer>

But as I said before everything is ok when I use asp .net development server (cause web.config of sharepoint is different then web.config of my web application, i know, but the registration code is same in both files). What's wrong?

Thank you very much for your help
Lini
Telerik team
 answered on 20 Jan 2009
2 answers
111 views
Has anybody succesfully managed to place a RadToolTip control onto a RadComboBoxItem?

I can see that you can set a ToopTip for a RadComboBoxItem however I would like to make a custom ToolTip that contains an image. I only want this to appear on several RadComboBoxItems in my item list.

I've read several posts that utilise the TargetControlID of the RadToolTip control however I've enceountered 2 problems with this method.

1. I cannot set an ID attribute on a RadComboBoxItem (to target)
2. When using TargetControlID='<%# this.RadComboBox1.ClientID + "_Input" %>' I always get a compile error saying - Name 'this' is not declared (This might be because I'm using vb.net? )

I'm assuming TargetControlID='<%# this.RadComboBox1.ClientID + "_Input" %> would be wrong approach anyway as It looks like that targets the whole combo box control and not just an indivual item.

Any ideas if this is possible and how one might achieve it?

Kind Regards
James

 

 

 

James
Top achievements
Rank 2
 answered on 20 Jan 2009
0 answers
51 views
i am getting an error "cannot find column -1" while searching through the filter item. There are other filter controls as well which are working fine. It is happenning only with one filter control. I am binding a list to the source of the grid.

I wont be able to send a sample application because it is the part of a complex application. is anybody familiar with this issue?
Indranik
Top achievements
Rank 1
 asked on 20 Jan 2009
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?