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

I am facing some problem while Migration from ASP.NET to ASP.NET AJAX. I need some help from you. When I Replaced the classic directive <%@ Register Assembly="RadWindow.NET2" Namespace="Telerik.WebControls" TagPrefix="radW" %> with the new one of for ASP.NET AJAX :<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> which i control I must and should I change? For example if replaced like above i must and should update RadAJAXManager other wise an exception is throwing Null Reference exception. Like this how many control must and should i change?

Here is Error

This error occurred when i have not updated RADAjaxManger control.

NullReferenceException: Object reference not set to an instance of an object.
Telerik.WebControls.RadAjaxUtils.RadControl.GetUpdatingUpdatePanel(Control target) +101
Telerik.WebControls.RadAjaxUtils.RadControl.IsInAjaxUpdatePanel(Control target) +50
Telerik.WebControls.RadAjaxUtils.RadControl.Page_PreRenderComplete(Object sender, EventArgs e) +21
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8703326
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029

Thanks in advance

--Sai Charan.M
Sebastian
Telerik team
 answered on 27 May 2011
5 answers
668 views
Hi,

I have a Radgrid which contains one text box and one checkbox.
depending upon the value in textbox i want to disable the checkbox in the same row in RadGrid.
Please tell me how can I do it.

I tried but i cant access the correct property to disable the checkbox.
Please let me know the solutions

Bye
Thanks
Shinu
Top achievements
Rank 2
 answered on 27 May 2011
4 answers
86 views


Hello,

   I am using Telerik dll on version 2009.3.1103.35. I want to know whether TreeListView exists in my version or higher version. 

   If there is any help document please let me know.

   Please Clarify  


Thanks
Kannan,S
sundar
Top achievements
Rank 1
 answered on 27 May 2011
8 answers
412 views
Hi All,

I am facing a problem while looping through the radtreeview.

My radtreeview structure is as below:

folder A
     folder B
             folder C
Folder D
      Folder E
             Folder F
                      Folder G
                              ---------------------N Number of childs
Now i want to loop through the radtreeview,how can i get this? I want some generalised function that will loop through radtreeview.

sundar
Top achievements
Rank 1
 answered on 27 May 2011
10 answers
387 views
Hello,

I realize that this issue is not new to the forum.  Unfortunately I haven't been able to find a resolution to my problem in the previous threads. Maybe you can point me in the right direction.  I have a Sharepoint web part that consists of a grid and an RadAjaxManager. The control code looks like this:
<telerik:RadAjaxManager ID="cwAjaxManager" OnAjaxRequest="UpdateGrid" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="cwAjaxManager">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lblGridJS" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" SkinID="Default">
    <asp:Label ID="lblGridJS" runat="server"></asp:Label>
    <telerik:RadGrid ID="CWGrid" runat="server" Width="100%" OnNeedDataSource="CWGrid_NeedDataSource">
    </telerik:RadGrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30"
    SkinID="Default" BackColor="#dff3ff">
    <asp:Image ID="Image1" runat="server" ImageUrl="/_LAYOUTS/CorasWorksDIT/CorasWSC.Grid.Display/loader.gif">
    </asp:Image>
</telerik:RadAjaxLoadingPanel>

Pretty straight forward, nothing fancy. And I also have some links (not part of the web part control) on the page that when clicked kick off a javascript function that's supposed to call the async request on the ajax manager. Here's the code:

function clickLink(connName) {
    var urlVariables = "CN=" + connName;
  
    var controlId = GetControlIdMyGrid();
    window.setTimeout(function () { cwInitiateAsyncRequest(controlId, urlVariables); }, 10);
}
  
function cwInitiateAsyncRequest(controlId, argument) {
    var ajaxManager = $find(controlId + "_cwAjaxManager");
    if (ajaxManager != null) ajaxManager.ajaxRequest(argument);
    else {
        ajaxManager = $telerik.$.find(controlId + "_cwAjaxManager");
        if (ajaxManager != null) ajaxManager.ajaxRequest(argument);
    }
    return false;
}

The first time a link is clicked, the request goes through fine, everything works great.  The second time around $find(controlId + "_cwAjaxManager") returns null, and $telerik.$.find(controlId + "_cwAjaxManager") returns {...}, which is not really null, but at the same time whatever it is, it has not methods or properties, so the ajaxRequest fails.  As you can see I tried the timeout solution with no luck.  Is there anything else that I may try?
mpoi
Top achievements
Rank 1
 answered on 27 May 2011
3 answers
81 views
Hi telerik team,

I  want to enable and make  the client select column check boxes checkable in grid by using the follwoing code snipped
for (var row = 0; row <  MasterTable.get_dataItems().length; row++)
           {
            MasterTable.get_dataItems()[row]._element.disabled=false;
            MasterTable.get_dataItems()[row].get_cell("ClientSelectColumn").disabled=false;
             }

but the i could not check the checkboxes in every row it is still disable.
          
Shinu
Top achievements
Rank 2
 answered on 27 May 2011
2 answers
448 views
Hi

I've seen a few threads similar in the forums but not exactly what I want.
1) How do I set a minimum value greater than 0? Anything bigger is fine, eg: 0.1, 0.00756, 0.0000111. Currently I'm setting minvalue to 0.01, but that seems like a fudge to me.
2) If the user tries to enter a negative value it rounds it to the minimum value (ie 0.01). Can the input handle this to prevent negative numbers? I'd rather warn the user with an error message, or the current little warning symbol that flashes up. Then show a blank textbox rather than the minvalue.

Cheers,
Jeremy
Jeremy
Top achievements
Rank 1
 answered on 27 May 2011
0 answers
128 views
Hello,

i have a doubt regarding the radgrid.. i have stored the urls in the database (not Images using image data type).. so i need to retrieve the images in the rad grid.. is it possible to do so.. please help

I know that in normal asp grid there is a "DataImageUrlField" to identify the image url... is there any other way of doing this in the radgrid :)

---------------------------------------------------------
Solution...
Use the Image Column in the grid rather than the Binary Image Column
siddhartha
Top achievements
Rank 1
 asked on 27 May 2011
4 answers
521 views
Hi

Iam having trouble being able to assign a min and max value to my x axis. I have read multiple posts stating that you must set the following to enable you to define a min and max value which i define is server side code (vb.net):

XAxis.AutoScale = False
XAxis.MinValue = 1
XAxis.MaxValue = 120
XAxis.Step = 10

I have also tried using this instead of the above:

XAxis.AutoScale = False
XAxis.AddRange(1, 120, 10)

This is my mark up:

<telerik:RadChart ID="RadChart1" runat="server"
        Height="100px"
        Width="180px"
        ChartTitle-Visible="false"     
        Legend-Visible="false"
        SeriesOrientation="Horizontal" >
  </telerik:RadChart>

I define a datasource using a list of my custom objects which has 2 decimal values (depth - for the x axis, value - for y axis) and then i databind it.

My current list has 3 items,
Item 1: depth 1, value 50
item 2: depth 2, value 10
item 3: depth 3, value 30

Attached is the results:

I would like the xaxis (note horizontal series orientation - so the left axis) to display min value 1 and max value 120. How can i achieve then, what am i missing?

Cheers

Richard.

Richard
Top achievements
Rank 1
 answered on 27 May 2011
1 answer
84 views
Hi,

I am creating a grid dynamically on page init event. This dynamic grid  has template column with item template and edit template. Edit template has a RadComboBox. My grid renders correctly   but  it throws an error on  edit mode .
I have been looking for some sample code to create dynamic grid with edit template, can someone point me to these  samples?

Thanks,
Prava
Gimmik
Top achievements
Rank 1
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?