Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
282 views
I am using RadGrid on my page with AJAX functionality. After performing AJAX callback, it stops working and using almost every functionality returns error (4.jpg, from Firebug):

$find("ctl00_placeholderBody_ctl04_ListControl_RadGrid_ctl00") is null

When I looked at DOM, I noticed RadGrid object has weird name ("null", 3.jpg).

How is this possible? This is part of my view:

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid" LoadingPanelID="RadAjaxLoadingPanel" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel Runat="server" Skin="Default" ID="RadAjaxLoadingPanel">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    AllowSorting="True" PageSize="10" AllowFilteringByColumn="true" AllowCustomPaging="True" ClientIDMode="AutoID">
    <mastertableview ClientIDMode="AutoID">
    </mastertableview>
</telerik:RadGrid>



Eyup
Telerik team
 answered on 18 Jul 2012
1 answer
97 views
Hi all,

How to resize binary image with out loosing the original clarity...
Please help.

Regards,

Prassin
Eyup
Telerik team
 answered on 18 Jul 2012
1 answer
132 views
Hi,

I am using telerik grid with header context filter menu implemented as attached in image 'Filter_Enter-Key__Issue.JPG'. Currently filter is not working on pressing 'Enter key' in input textbox. Filter only works if we press 'Filter' button.
Could you please suggest any solution to work filter on 'Enter' key press? Or is there any way to disable 'Enter' key press event for filtering?
Note:- This issue exists in all browsers(IE, FF, chrome)

Thanks and Regards,
Deepti
O.D.
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
132 views
Hello
I have a progress monitoring screen with a radGrid that lists processes.
One of the grid columns contains a progressArea that shows process progress (from 0 to 100%) (see attachment)
To refresh the page I use the following

Page.ClientScript.RegisterStartupScript(

Me.GetType(), "refresh", "window.setTimeout('window.location.reload(true)',10000);", True)


This causes the entire page to reload every 10 seconds, which is annoying,  I want just the progressareas to refresh, but cannot find how.
Thanks for any help

Kostadin
Telerik team
 answered on 18 Jul 2012
9 answers
216 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
80 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
169 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?