Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
175 views
Hi,
         I am assigning image for treenode on the page load like this 


node.ImageUrl =

"~/App_Images/images/R.ico";

 


          The problem is it doesnt load in the page load .After any event fire in the page only the image will load for the treenode.So initially in the page load there is no image shown only a blank background will show.
           
           Give me the solution for this.

Regards,
Giri
                                   
Giri
Top achievements
Rank 1
 answered on 07 Nov 2008
1 answer
148 views
Need some information on how to retrieve row data from a hieracal grid (client side). Each row in the grid contains a checkbox. Whenever a checkbox is modified, I need to retrieve the checked/unchecked status and the Parent and child ID's.

Currently have an onclick event for the checkbox. this allows me to retrieve the state of the checkbox,but I'm unable to get any additional information from the row the checkbox is located.

Also attempted to retrieve the information using the RowClicked event. and using the get_itemIndexHierarchal() function. It only works for the top level item and throws an error for the rest.

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
    <script type="text/javascript">  
        //Process the click event of a checkbox. When a parent is checked all children should be checked  
        //When a parent is unchecked, no action need be taken.  
        //When a child is unchecked, the parent must be unchecked  
        function processAccessCheckBox(item) {  
 
            var grid = $find("<%= rgPermission.ClientID %>");  
            var gridgridSelectedItems = grid.get_masterTableView().get_selectedItems();  
            alert(gridSelectedItems.count);  
            //get all detail tables in the hierarchy  
            var detailTablesArray = grid.get_detailTables();  
 
            if (item.checked) {  
                alert(item.checked);  
                //var ParentID = detailTablesArray[0].  
                //Check all child items  
                //Check if detail table is a child  
            }  
            else {  
                alert(item.checked);  
                //Uncheck parent item  
                //var parentRow = get_parentView 
            }  
            alert(detailTablesArray.length);  
            return false;  
        }  
 
 
        function RowClick(sender, eventArgs) {  
            var MTV = eventArgs.get_tableView();  
            var cbCol = MTV.getCellByColumnUniqueName(MTV.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "Access");  
            var text = "";  
            text += "col content: ";  
            text += cbCol.innerHTML  
            //text += ", Index: " + eventArgs.get_itemIndexHierarchical();  
            //document.getElementById("OutPut").innerHTML = text;  
            alert(text);  
        }  
 
    </script> 
</telerik:RadScriptBlock> 
 

Any help on retrieving data (client side) from a Hierarchal grid will be appreciated.

Thanks

Jacques
Yavor
Telerik team
 answered on 07 Nov 2008
1 answer
81 views
Hi,
I am using RadControles (asp.net) licienced version.

I have Menubar on Top under that i have Scheduler. when i am scrolling the page, Scheduler Header Items Day, Week Month, TimeLine is going under the menubar.
Remaining controle in the scheduler is comming top. Days or Weeks related  controle is displaying on Top of the Menubar.

If i move the page total controle should go under the Menubar..
now only header part of the scheduler is going down remaing comming up.

Pls provide the solution.
Peter
Telerik team
 answered on 07 Nov 2008
9 answers
262 views
Hey all,

I made a post a few days ago, but didn't get much help at all other than a hyperlink to a project that is not implemented the same way as my own. So I decided to speak to another company I know which makes use of the Telerik controls, and low and behold they told me they also found this problem with the controls and now avoid using LINQ Datasources with Telerik, as it just does not work, however regular SQL Datasources work without a problem.

Surely this is not a bug, as it's quite a major feature? Once again, I will include what my code currently looks like, and I would appreciate it if somebody actually read my code to try notice the problem, rather than pasting a hyperlink to a project that is not implementing the same methods (thus proving un-helpful).

If I don't get a solution from this, I'll be raising this to the bug support ticket system (which I would rather avoid, as this surely cannot be a bug).

Regards,
Justin

<asp:LinqDataSource ID="LinqDataSource1" runat="server"   
                            ContextTypeName="db_vmmDataContext"   
                            Select="new (ServiceDate, ServicedBy, InvoiceNo, Mileage, ServiceType, DateTyresLastPurchased, NextServiceDueMiles, NextServiceDueDt, MOTd, WhatWasDone, ServiceHistoryID)"   
                            TableName="vmm_ServiceHistories" Where="VehicleID == @VehicleID">  
                        <whereparameters> 
                            <asp:ControlParameter ControlID="lstVehicleSelectByReg" Name="VehicleID"   
                            PropertyName="SelectedValue" Type="Int32" /> 
                        </whereparameters> 
                        </asp:LinqDataSource> 
                        <div> 
                            <telerik:RadGrid ID="rpt_ServiceHistory" runat="server" AllowAutomaticDeletes="True"   
                                AllowAutomaticUpdates="True" AutoGenerateColumns="False"   
                                DataSourceID="LinqDataSource1" GridLines="None" Skin="Hay"   
                                onupdatecommand="rpt_ServiceHistory_UpdateCommand">  
                                <mastertableview datasourceid="LinqDataSource1" EditMode="InPlace">  
                                    <rowindicatorcolumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </rowindicatorcolumn> 
                                    <expandcollapsecolumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </expandcollapsecolumn> 
                              
                                    <Columns> 
                                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete"   
                                            UniqueName="column">  
                                        </telerik:GridButtonColumn> 
                                        <telerik:GridEditCommandColumn> 
                                        </telerik:GridEditCommandColumn> 
                                        <telerik:GridBoundColumn DataField="ServiceDate" DataType="System.DateTime"   
                                            HeaderText="Service Date" SortExpression="ServiceDate"   
                                            UniqueName="ServiceDate">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ServicedBy" HeaderText="Serviced By"   
                                            SortExpression="ServicedBy" UniqueName="ServicedBy">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="InvoiceNo" DataType="System.Int32"   
                                            HeaderText="Invoice No" SortExpression="InvoiceNo" UniqueName="InvoiceNo">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Mileage" DataType="System.Int32"   
                                            HeaderText="Mileage" SortExpression="Mileage" UniqueName="Mileage">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ServiceType" HeaderText="Service Type"   
                                            SortExpression="ServiceType" UniqueName="ServiceType">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="DateTyresLastPurchased"   
                                            DataType="System.DateTime" HeaderText="Date Tyres Last Purchased"   
                                            SortExpression="DateTyresLastPurchased"   
                                            UniqueName="DateTyresLastPurchased">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="NextServiceDueMiles"   
                                            HeaderText="Next Service Due Miles" SortExpression="NextServiceDueMiles"   
                                            UniqueName="NextServiceDueMiles">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="NextServiceDueDt"   
                                            DataType="System.DateTime" HeaderText="Next Service Due Dt"   
                                            SortExpression="NextServiceDueDt" UniqueName="NextServiceDueDt">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridCheckBoxColumn DataField="MOTd" DataType="System.Boolean"   
                                            HeaderText="MOTd?" SortExpression="MOTd" UniqueName="MOTd">  
                                        </telerik:GridCheckBoxColumn> 
                                        <telerik:GridBoundColumn DataField="WhatWasDone" HeaderText="Wha tWas Done?"   
                                            SortExpression="WhatWasDone" UniqueName="WhatWasDone">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ServiceHistoryID" DataType="System.Int32"   
                                            HeaderText="Service History ID" ReadOnly="True"   
                                            SortExpression="ServiceHistoryID" UniqueName="ServiceHistoryID"   
                                            Display="False">  
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                              
                              
                              
                                    <editformsettings> 
                                        <editcolumn uniquename="EditCommandColumn1">  
                                        </editcolumn> 
                                    </editformsettings> 
                              
                              
                              
                                </mastertableview> 
                                <filtermenu enabletheming="True">  
                                    <collapseanimation duration="200" type="OutQuint" /> 
                                </filtermenu> 
                            </telerik:RadGrid> 
                        </div> 
Vlad
Telerik team
 answered on 07 Nov 2008
2 answers
146 views
Hi,

I'm using radgrid 2008 q2 with vs2005. on the radgrid property, i bound a griddropdowncolumn. usually if the bound using GridBoundColumn, i get the value with:

Dim

task_code As String = (TryCast(editedItem("task_code").Controls(0), TextBox)).Text

 


i already try this:

Dim

id_tc_type As String = (TryCast(editedItem("id_tc_type").Controls(0), DropDownList)).SelectedValue

 


but did not work, please help me.

Thanks
Peper
Peper
Top achievements
Rank 1
 answered on 07 Nov 2008
1 answer
77 views
Hi,

I just download the trial version of RadControls for ASP.NET. On many of the examples that updated data, there are 2 messages displayed:

1) "Telerik.Web.UI 2008.2.1001.20 trial version. Copyright telerik © 2002-2008. To remove this message, please purchase a developer version. "
2) "Note: The changes in the data will be persisted per Session only. The data will be reset next time you visit the page."

Message #1 is trival. I need to purchase a developer version in order to get rid of this message.
How about message #2? Is it also because I am using a trial version?

Thanks,
Jim
Vlad
Telerik team
 answered on 07 Nov 2008
3 answers
109 views
Is RadChart able to display an 'alert' on a chart element when the value for the element is either 'high' or 'low'?
Giuseppe
Telerik team
 answered on 07 Nov 2008
9 answers
182 views
http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/NodeEditing/DefaultCS.aspx

Hi,

In the link above; please follow this steps:
1. Select Cooking Node from Books Node, then click F2.
2. Place the cursor on the end of text, and type at least 10 letter A.

Result:
The Cooking  text disappears. After clicking Enter button. The CookingAAAAAAAAAA appears again.

Comments:
Is there a way to set the maximum size of the textbox? such a way it WON'T LOOK LIKE the Cooking text disappeared while editing the node?

A good example whould be:
if (node text contains only a single letter) then (you edited it). You want to change it to a sentence, then you'll have a problem going back to the previous words you have typed, because you can't see them.

Thanks,
Regards,
Jonathan
Alex Gyoshev
Telerik team
 answered on 07 Nov 2008
2 answers
149 views
Hallo,

I would like to know if there is a way to prevent the RadEditor from being resized by users. We are using v5.2.3

Regards,
Markus
IT Betrieb
Top achievements
Rank 1
 answered on 07 Nov 2008
3 answers
220 views
I am trouble with the October Update of the RadWindow. It was working fine with the Jun. July version. The modal popup behaves strange the second time I try to maximize it. It locks up and basically will not let me do anything because it almost behaves like there is some other modal window is blocking it. Here's how am I using it

<script type="text/javascript">
        function onClientCallBack(returnValue)
        {
            var oValue = returnValue.argument;
            var hdnValue=$get('<%=hdnValue.ClientID %>')
            if (oValue == "1")
            {           
                hdnValue.value=(new Date()).getTime();
               __doPostBack( '<%=updGoals.ClientID %>', '');                    
               return true;
            }
            else
            {
                return false;
            }
        }
        function openRadWindow(GID)
        {
            var oWnd = $find("<%=radGoal.ClientID%>");

            if(GID== '')
            {
                oWnd.setUrl("AddEditGoal.aspx");
            }
            else
            {
                oWnd.setUrl("AddEditGoal.aspx?gid="+GID);
            }
            oWnd.show();
        }
</script>

<table>
<tr><td>
<!-- Some other stuff -->
ListView etc.
<!--                    -->
<telerik:RadWindow ID="radGoal" runat="server" Behaviors="Resize,Maximize,Move,Close"Modal="true" Title="AddGoal" VisibleTitlebar="true" VisibleStatusbar="false"Skin="Vista" ReloadOnShow="false" OnClientClose="onClientCallBack" OnClientShow="onclientShow"IconUrl="~/images/previstar.GIF"></telerik:RadWindow>
</td></tr>
</table>


Please let me know what is the difference between the July Service Pack vs. the October one. It only happens when window is open in a Modal State.

Thanks
Himadri
Georgi Tunev
Telerik team
 answered on 07 Nov 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?