Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
228 views
Hi,
In my application I have replaced controls with this new version of  Asp.net for ajax.
There is one RadTreeview on whose BeforeClientClick i had written one script but after changing it to new version, this script is not working.
Below is the code:

<

telerik:RadTreeView ID="tvDetractionTypes" runat="server" DataTextField="Title" DataFieldID="ID"

BeforeClientClick="handleNodeClick" DataValueField="ID" DataFieldParentID="ParentDetractionTypeID"

Skin="Office2007" DataSourceID="dsDetractionTypes" Height="150px" Width="250px"

OnNodeBound="tvDetractionTypes_NodeBound">

</telerik:RadTreeView>

<

script type="text/javascript">

function

handleNodeClick(node)

{

//if this is a parent node, expand it and select the first child

if (node.Parent == null && node.Nodes.length > 0)

{

node.Expand();

node.TreeView.UnSelectAllNodes();

node.Nodes[0].Select();

return false;

}

// Unlock any locked sliders

SliderArrays[0][idxSliderLocked] =

false;

SliderArrays[1][idxSliderLocked] =

false;

SliderArrays[2][idxSliderLocked] =

false;

SliderArrays[3][idxSliderLocked] =

false;

// Make sliders visible

SliderArrays[0][idxSliderDisplay] =

true;

SliderArrays[1][idxSliderDisplay] =

true;

SliderArrays[2][idxSliderDisplay] =

true;

SliderArrays[3][idxSliderDisplay] =

true;

// Redraw the sliders to reflect the new default values

SliderArrays[0][idxSliderDisplayWeight] = node.Attributes[

"DefaultTech"];

SliderArrays[1][idxSliderDisplayWeight] = node.Attributes[

"DefaultEquip"];

SliderArrays[2][idxSliderDisplayWeight] = node.Attributes[

"DefaultPatient"];

SliderArrays[3][idxSliderDisplayWeight] = node.Attributes[

"DefaultProcess"];

SliderDrawTable();

// Change the default DV

// Change the tooltip text

return true;

}

</script>

Can anyone tell which event should be used now..?
and how to get node and its attributes in my above script.
I tried using OnClientClicking but not succeed.
Plese help.
Thanks.

Atanas Korchev
Telerik team
 answered on 25 Jun 2008
1 answer
87 views
Hi, running the web2.0 skin with the newest radgrid. implemented the following code to remove the "Add new record" link:

protected void BackPackerListGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {

            if (e.Item is GridCommandItem)
            {
                GridCommandItem cmditm = (GridCommandItem)e.Item;
                LinkButton lnkbtn1 = (LinkButton)cmditm.FindControl("InitInsertButton");
                lnkbtn1.Visible = false;

            }
        } 

however, the file icon is still there, which users can still click to add new records. I want to remove that icon as well. Please advise.

Damian
Shinu
Top achievements
Rank 2
 answered on 25 Jun 2008
1 answer
208 views
Is there any way to insert rows into a radgrid via javascript, without using the edit form?  Lets say I have 2 radgrids and when I select a row from one of them I want the values from that row to be inserted into the second radgrid automatically on the client-side.
Shinu
Top achievements
Rank 2
 answered on 25 Jun 2008
1 answer
103 views
Hi, in the examples I found how to define the column template of a radgrid for ajax in design time, but I didn't find how to change the templates dynamically in code behind, Is this possible?

thx
Shinu
Top achievements
Rank 2
 answered on 25 Jun 2008
1 answer
248 views
Hello,

I was wondering if anyone could suggest on how to do a Hierarchy RadGrid where the Source Table for details depends on a field in the Parent table.

For example;
My parent table has a Boolean field with 1 and 0.
For the Details or second level Hierarchy, if Parent row is 1 then I get data from Table A1 if 0 then I get data from Table A2.

Hope I was able to make my scenario clear.

Thanks
Baatezu
Top achievements
Rank 2
 answered on 24 Jun 2008
2 answers
89 views
I'm having trouble following the upload ctrl in grid example (http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/RadUploadInAjaxifiedGrid/DefaultCS.aspx).

Specifically, I can't seem to reference the RadUpload control placed in the EditItemTemplate when the grid enteres "Insert mode".

The RadUpload ctrl:
            <EditItemTemplate>
              <telerik:RadUpload ID="File" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" MaxFileSize="1000000" Skin="Telerik" />
            </EditItemTemplate>

This code fails:
var upload = $find(window('File'));
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jun 2008
2 answers
155 views
In all the demos the upload button is outsde the radupload box, is there anyway to get the Upload button inside the box, my users are finding it confusing to have that button outside the box.
John
Top achievements
Rank 1
 answered on 24 Jun 2008
20 answers
400 views
I'm relatively new to the AJAX RadControl set, so bear with me.

I've been successful getting an ObjectDataSource displaying properly into the RadGrid control (not using any AJAX yet) and when the user right-clicks or clicks a node a context menu is displayed.

I've followed the Menu webservice example but the example is limited to displaying a root node, then getting the child nodes via a webservice call.

How can I have the entire menu be driven via the webservice call?

Maybe I need to use a Window+Menu ?  Any ideas to get me passed this hurtle would be appreciated.

It doesn't need to be driven via a WebService call, any other AJAXy way is fine.


Stéphane
Greg Chung
Top achievements
Rank 1
 answered on 24 Jun 2008
1 answer
188 views
Is it possible to handle the tooltip close event server-side? Here is my scenario. I use the tootip to display a form. The form contains several pageviews depending on choices the user makes. Swithcing between pageviews is done with Ajax. If the tooltip closes, I wish to select the default pageview so that the next time the tootip is show, the initial pageview is selected (as opposed to whatever pageview they were on when they closed the tooltip).
Kevin Babcock
Top achievements
Rank 1
 answered on 24 Jun 2008
0 answers
112 views
I have a aspx page(A) where i have divided the page in 2parts using rad splitter. From the tree i load another aspx page(B) inside a rad window. After completing input when user saves the form it adds an item which needs to displayed at radtree after form submission.
I want the tree items to automatically update when i submit the form. Plus need an ajax timer which will run on an interval of 15s.But if i have an item expanded i dont want the tree to loose that state after updating the tree values.
Will be glad if you could provide me any link or suggestion.Thanks.
Syed
Top achievements
Rank 1
 asked on 24 Jun 2008
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?