Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
219 views
I have come at this from several directions, but here is what I seem to be down to:

I am using a custom content provider.

I have a gridcontextmenu item that opens a radwindow for editing of file properties. I can open this window, make changes, save them, close the window and everything works fine. 

function gridContextMenuClicked(toolbar, args) {
    var buttonValue = args.get_item().get_value();
        if (buttonValue == "properties_Menu") {
 
        var explorer = $find("<%= RootFileExplorer.ClientID %>");
        var selectedItem = explorer.get_selectedItem();
        if (selectedItem) {
            var itemPath = selectedItem.get_path();
 
            ShowPropertiesDialog(itemPath);
        }
    }
}

One thing that I do is to refresh the explorer OnWindowClose.

function OnWindowClose(sender, args) {
    RefreshExplorer();
 
}
 
function RefreshExplorer() {
    var explorer = $find("<%= RootFileExplorer.ClientID %>");
    explorer.refresh();
}

This has no problems.

To attach the click handler I use some code I found in the KB (I believe).

function OnClientLoad(explorer, args) {
    attachHandlers(explorer);
    explorer.add_ajaxRequestEnd(function () { attachHandlers(explorer); });
}
 
 
function attachHandlers(explorer) {
             
    var gridContextMenu = explorer.get_gridContextMenu();
    gridContextMenu.add_itemClicked(gridContextMenuClicked);
 
    var tree = explorer.get_tree();
    tree.add_contextMenuItemClicked(treeContextMenuClicked);
 
}

This code also functions. 

Here is where the problem occurs. I have also created several "filters" outside of the FileExplorer. They are simple controls, such as a DropDownList and a TextBox used to filter the results of my content provider. To force refresh of the FileExplorer I am clearing the nodes on Page_Load. I tried to find a solution for days, and this is the only way I was able to get both the grid and the tree to refresh.

RootFileExplorer.TreeView.Nodes.Clear();

The result of this seems to be that when the attachHandlers javascript method is called, explorer.get_gridContextMenu() returns null. This obviously throws an error and the whole thing fails. If I don't have it do the attachHandlers() the context menu in my grid no longer works.

I brought up this problem in another thread. The responder (who I just saw as I looked for the thread -- I did not receive an email even though I am subscribed) mentions sending my code. It would not be possible to get a distributable, packaged version of the content provider and other code in any sort of timely manner. Hopefully the details I have provided above will be enough to shed some light.
Rohan
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
81 views
(title is no longer related sorry about that)

I think I'm going crazy...

here's my combobox

 <telerik:RadComboBox ID="myCombo" AutoPostBack="true"  Width="337" runat="server"></telerik:RadComboBox>

In code behind, on indexchanges, I want to populate another combobox... the issue is it keeps the value of the first item regardless the changing index... when the postback is over "myCombo" has the first item selected and not the one I choose?!?

What's wrong????????
Ivan Zhekov
Telerik team
 answered on 18 Jul 2012
1 answer
170 views
Hi 


I have already developed a windows application. Now i am going to convert the windows application to web application.. I want to use the same theme used in windows application in my web application also. Is there any easy way to convert the themes from windows to web.


Will Telerik provides various themes for whole application? I need apple theme to be applied in my application.. Please provide me the apple theme css Files...



Thanks 
O.D.
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
59 views
Hi,
     I have a linkbutton in the commanditemtemplate of my radgrid. I want to select all the items in my radgrid on clicking the linkbutton in clientside. Please guide me.
thanks in advance
savyo
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Jul 2012
1 answer
50 views
I want to achieve the following:

The grid should display the result of a search request on our backend (this one is easy). But because 2 columns are difficult to compute, these columns are initially left blank. After the page with the grid is completely rendered to the user (with 2 columns beeing empty), he can begin working with the data. In the background (AJAX?) a second request to our server is submitted to get the values of the 2 missing columns. When the request returns the additional data, the corresponding columns are filled. Without interrupting the user.

Is this possible? And how? I don't find any documentation about clientside binding of single columns.
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Jul 2012
1 answer
96 views
Hi,

We are currently experiencing an issue in IE8 and IE9 (although I have not tested it in other browsers), where we have a RadFormDecorator on a master page targeting only buttons.  We have several user controls and pages that include their own ASP.NET AJAX UpdatePanels.  It seems when we add controls, such as adding rows with buttons to a GridView dynamically, an issue arises where upon window.unload event fire, the Core.js library iterates through all the telerik controls it is aware of on the page and attempts to dispose of any associated handlers.  There is an assumption within specifically, window.$telerik._removeHandler that attempts to dereference the _events member of an argument passed in but there is no _events member and so a null argument exception bubbles up to the user before, preventing the page from posting until the user acknowledges the error. 

I am guessing that the RadFormDecorator is keeping track (via the DOM) of the items it is manipulating and since the buttons are being added dynamically, they are somehow circumventing the registration process that RadFormDecorator is using and so when the window.unload event fires, that information that is assumed to exist is not present.  This is again, just a guess.

We have attempted several of the suggestions found on this forum and on the web but to no avail, specifically:
1. changing the rendering mode to IE7 mode
2. hooking into the client-side api via ASP.NET AJAX pageLoad(sender, args){telerik.decorator.decorate()}
3. changing out the ASP.NET AJAX UpdatePanel with a RadUpdatePanel
4. changing the location of the RadFormManager to the end of the MasterPage

Some of the above solutions don't entirely make sense to us but they were worth trying and ultimately did not solve the problem.  Please advise - your feedback is greatly appreciated.

Thank You

Andrew

EDIT: We are using version 2012.1.411.40
Niko
Telerik team
 answered on 18 Jul 2012
2 answers
133 views

Hi,

Is it allowed to include stylesheet classes inside @media and use them from Apply CSS Class Dropdown?

For example: 

@media screen {
  .test1 {
    background: red;
  }
  .test2 {
    background: blue;
  }
}
  .test3 {
    background: green;
  }
  .test4 {
    background: yellow;
  }

Why are there two different behaviors in Internet Explorer and Chrome/FireFox? Is it a bug?

Result in Internet Explorer: 

Apply CSS Class dropdown list has test1, test2, test3, test4 items. 

Result in FireFox and Chrome: 

Apply CSS Class dropdown list has only test3, test4 items. 

Ivan
Top achievements
Rank 1
 answered on 18 Jul 2012
5 answers
206 views
Hi Telerik Team,

I hav a Radsplitter declared below


<telerik:RadSplitter ID="RadSplitter" runat="server" Height="100%" Width="100%" OnClientLoad="SplitterLoad" VisibleDuringInit="false" ResizeWithBrowserWindow="true">
  
    <telerik:RadPane ID="RadLeftMenuPane" runat="server" Width="22px" BackColor="#efefef" Scrolling="None"
  
<telerik:RadSlidingZone ID="RadLeftMenuSlide" runat="server" Width="22" DockedPaneId="RadConfigurationMenu" 
  
 BackColor="#0b497b" SlideDirection="right"
  
 <telerik:RadSlidingPane ID="RadCommonLeftMenu" runat="server" Title="Menu" CssClass="RadSlidingPane" Overlay="true"
  
 </telerik:RadSlidingPane
  
</telerik:RadSlidingZone>
</telerik:RadPane>
  
<telerik:RadPane ID="RadMiddlePane1" runat="server" Scrolling="None" Width="100%" Height="100%">
  
<telerik:RadSplitter ID="Radsplitter2" runat="server" Orientation="Horizontal" VisibleDuringInit="false">
  
<telerik:RadPane ID="Radpane2" runat="server">
  
<div id="pagecontent" class="PageContent" style="height: 100%">
  
<iframe frameborder="0" runat="server" width="100%" id="Frame" src="LandingPage.aspx">
  
</iframe
  
</div>
  
</telerik:RadPane>
  
</telerik:RadSplitter>
  
</telerik:RadPane>
  
</telerik:RadSplitter>


In pageload i am loading RadLeftMenuSlide

 

Protected void Page_Load(object sender,EventArgs e)
{
LoadUserControl();
}
  
private void LoadUserControl()
  
{
  
_leftNav = (LeftNavigation)LoadControl(_topPath + LEFT_NAV_FILE_PATH);
  
_leftNav.ParentMenuItem = Module;
  
RadCommonLeftMenu.Controls.Add(leftNav);
  
RadCommonLeftMenu.Visible = true;
  
}

in the LeftNavigation usercontrol i hav one link button called "LeftlinkbuttonwithParameters".  if i click on "LeftlinkbuttonwithParameters" link button im redirecting to Landingpage.aspx

 

"javascript:Redirect('" + Request.ApplicationPath + "Landingpage.aspx');"

Now if i click on LandingPage.aspx page i am loading iframe

now in iFrame(LandingPage.aspx) i have button called btnEnablewithParameters

if i click on the btnEnablewithParameters button i am having having Mode="Edit",
 my Left slidingpane RadLeftMenuSlide is loading and i am enabling "LeftlinkbuttonwithParameters" link button

Now if i click on "LeftlinkbuttonwithParameters" link button i should redirect to LandingPage.aspx with Parameter "javascript:Redirect('" + Request.ApplicationPath + "Landingpage.aspx&Mode=' + "Edit");"


Please let me know if you need more clarification regarding above query

Thank you
Shaik Nazeer Hussain.

Martin Roussel
Top achievements
Rank 1
 answered on 18 Jul 2012
5 answers
218 views
Hi,

I have the same scenario as http://www.telerik.com/community/code-library/submission/b311D-bkbkkd.aspx except that i have the grid inside a radtabstrip.

pseudo:

<splitter>
  <pane>
    <tabstrip>
      <multipageview>
        <pageview1>
        <grid>
     
if i do what's in the link, it works except that the paging and a little bit of a row is missing at the bottom. The reason for this is that the tabs [ blah ] [blah2] takes up a height. If i use firebug to remove the tabs, it displays correctly.

Any solutions to this? Thank you

Regards
Kjartan
Galin
Telerik team
 answered on 18 Jul 2012
0 answers
68 views

Hello, all! I had a problem with RadTabStrip. I create a Tab on the client-side by means of a method:

            function addNewTab(id) {
                var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                var tab = tabStrip.findTabByValue(id);
   
                if (!tab) {
                   tab = new Telerik.Web.UI.RadTab();
                     var tabName = "Message №" + id;
                   tab.set_text(tabName);
                   tab.set_value(id);
                   tabStrip.trackChanges();
                   tabStrip.get_tabs().add(tab);
                   tabStrip.commitChanges();                            

                       var multiPage = $find("<%= RadMultiPage1.ClientID %>");
                   var pageViewId = multiPage.findPageViewByID("<%= pageViewDetal.ClientID %>");
                   tab.set_pageViewID(pageViewId._id);
               }
               tab.set_selected(true);
              }

Everything is created correctly (i.e. the Tab is created, the value transferred by me is specified for it and PageView is attached to it) but as soon as on page there is PostBack, all created Tabs are cloned, i.e. each Tab created by me has 2 clones, but without the specified value and not attached to PageView, and Tab with the same title is simple.

Creation of clones occurs without the aid of my function. You couldn't prompt the reason of such behavior of the RadTabStrip component and how it is corrected?

Kazakov
Top achievements
Rank 1
 asked on 18 Jul 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?