Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
63 views
Hi everyone,

I have a problem and i don't know whether it is related to rad calendar  or something else.
Let me explain the scenario:-

i have rad calendar and its in the update panel and when user tries to select the date in a row i.e. selecting the date change in continues succession, then a error below pop-up (it is happening only in IE9).

Microsoft JScript runtime error: Sys.ParameterCountException: Parameter count mismatch.

Thanks and regards, 
Gaurav Sharma 


Maria Ilieva
Telerik team
 answered on 14 Jun 2012
2 answers
74 views
okai i am following a tutorial on rad grid  using hierarchies  , so when  on command event is triggered from the nested table  i want to get a reference to the parent row that contains this nested table i am pasting the logic that is used in the tutorial , but its rather very complicated


function RadGrid2_Command(sender, args) {

   ordersView = sender.get_masterTableView();
    var nestedViewItem = sender.get_element().parentNode.parentNode;
    var parentGridDataItem = $find(Telerik.Web.UI.Grid.GetNodePreviousSiblingByTagName(nestedViewItem, "tr").id);
    var customerID = parentGridDataItem.getDataKeyValue("CustomerID");


    args.set_cancel(true);

    ordersCommandName = args.get_commandName();

    WebService.GetOrdersByCustomerID(customerID, ordersView.get_currentPageIndex() * ordersView.get_pageSize(), ordersView.get_pageSize(),
                    ordersView.get_sortExpressions().toString(), ordersView.get_filterExpressions().toDynamicLinq(),
                        updateOrdersGrid);
}

but why cant i use 
   var c = sender.get_masterTableView().get_parentRow();
method ?, its returning null  when i use it in the on command event  , and if any one of you can please explain me the logic behind the on command event that i have pasted , i will be much grateful!!!
Galin
Telerik team
 answered on 14 Jun 2012
1 answer
122 views
Is it possible to use a format string for a column? I saw a similar post here about formatting the text in the GroupByExpression for the column but it doesn't seem to work correctly.

Is this on the TODO list or anything? I'm still using Q3 2011 Ajax controls so if its been added to the latest ones, let me know.

Pavlina
Telerik team
 answered on 14 Jun 2012
0 answers
124 views
Hi all!
 
I want used checkbox in telerik:TreeListSelectColumn , I need to implement the recursive selection at this way:
1. Select all parents when the at least one child item was selected.
2. Select all childs when the parent was selected 
But when I'm runing my project, debuging function itemSelected (), error selectedItem.get_parentItem()  and display error : 
Object doesn't support property or method 'get_parentItem'

I'm add  Telerik.Web.UI 3.5 use for Dotnetnuke 4.5.9 .net Framework 2.0, unknow Can I use ?

Thank for help!

function itemSelected(sender, args) {
    var treelist = sender;
    var selectedItem = args.get_item();
    if(selectedItem.get_parentItem())
    treelist.selectItem(selectedItem.get_parentItem());
     //comment out the above line and uncomment the below one to get all child items selected functionality
    //selectChildren(selectedItem);
  
  
    function selectChildren(item) {
        treelist.selectItem(item);
        if (item.get_childItems().length > 0) {
              
            for (var i = 0; i < item.get_childItems().length; i++) {
                selectChildren(item.get_childItems()[i]);
            }
        }
    }
}
 
 
 
<telerik:RadTreeList runat="server" ID="RadTreeList1" DataKeyNames="Id" ParentDataKeyNames="CongViecChaId" OnItemCommand="RadTreeList1_ItemCommand"
       AllowMultiItemSelection="True" AllowPaging="false"  AllowSorting="true" Skin="Hay"
       AutoGenerateColumns="false" OnNeedDataSource ="RadTreeList1_NeedDataSource" OnItemCreated="RadTreeList1_ItemCreated" OnItemDataBound="RadTreeList1_ItemDataBound" >
            <Columns>
                <telerik:TreeListSelectColumn HeaderStyle-Width="40px" UniqueName="chkColum" >
                </telerik:TreeListSelectColumn>
                <telerik:TreeListBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id" Visible="false">
                </telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="MaCongViec" HeaderText="Mã Công Việc" UniqueName="MaCongViec">
                </telerik:TreeListBoundColumn>
                <telerik:TreeListBoundColumn DataField="TenCongViec" HeaderText="Tên Công Việc" UniqueName="TenCongViec">
                </telerik:TreeListBoundColumn>
                <telerik:TreeListBoundColumn DataField="CongViecChaId" HeaderText="Công việc cha id" UniqueName="CongViecChaId" Visible="false">
                </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="MoTa" HeaderText="Mô tả" UniqueName="MoTa">
                </telerik:TreeListBoundColumn>
                <telerik:TreeListBoundColumn DataField="TinhTrang" HeaderText="Tình trạng" UniqueName="TinhTrang">
                </telerik:TreeListBoundColumn>
            </Columns
     <ClientSettings Selecting-AllowItemSelection="true">
        <ClientEvents OnItemSelected="itemSelected" />
    </ClientSettings>
  </telerik:RadTreeList>
Du
Top achievements
Rank 1
 asked on 14 Jun 2012
3 answers
290 views
Hi,
we are not able to expand all the child nodes when we click on separate asp button or link button.
we are using Visual Studio 2008.
we are using datasource to load the treeview. we will have three levels of child nodes and all these levels should expand when we click the Expand All Button/Link Button.
we have implemented the expandall functionality from javascript.after this event OnNodeExpand server side will be triggered so here we are binding all the child to parents and also we are setting the expanded property is set to TRUE to all the nodes.

so after this postback event the rad treeview gets refreshed and we are losing the expand all.

Telerik Web.Design and Telerik.Web.UI Version : 2009.2.701.20
ASP.NET:
 <asp:Button ID="btnExpand" runat="server" Text="Expand All" OnClick="btnExpand_Click" />

<telerik:RadTreeView ID="RadTreeView4" runat="server" OnNodeExpand="RadTreeView4_NodeExpand">
            </telerik:RadTreeView>
C#:
protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    DataView dtParent = (DataView)SessionDataSource1.Select(DataSourceSelectArguments.Empty);
                    foreach (DataRowView drvParent in dtParent)
                    {
                        rootNode = new RadTreeNode(drvParent["AICategoryName"].ToString());
                        rootNode.Text = rootNode.Text;
                        rootNode.Expanded = true;
                        rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
                        RadTreeView4.Nodes.Add(rootNode);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        protected void RadTreeView4_NodeExpand(object sender, RadTreeNodeEventArgs e)
        {
            ExpandNode(e.Node);
        }

        protected void ExpandNode(RadTreeNode e)
        {
            DataView dtChild = (DataView)SessionDataSource2.Select(DataSourceSelectArguments.Empty);
            foreach (DataRowView drvChild in dtChild)
            {
                rootNode = null;
                rootNode = new RadTreeNode(drvChild["AILevel1Name"].ToString());
                rootNode.Text = rootNode.Text;
                RadTreeView4.ExpandAllNodes();
                e.Nodes[0].Expanded = true;
                e.Nodes.Add(rootNode);
                
            }            
        }
Javascript:
function ExpandAll()
    {alert('call');
        var treeView = $find("<%= trTaxonomy.ClientID %>");
        var nodes = treeView.get_allNodes();
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].get_nodes() != null) {
                nodes[i].expand();
            }
        }
    }
Bozhidar
Telerik team
 answered on 14 Jun 2012
1 answer
136 views
I'm trying to use the PasswordStrengthSettings attributes of the RadTextBox for the first time, but Visual Studio keeps telling me they're not supported. Here's the code in question:

<telerik:RadTextBox runat="server" ID="txtNewPassword" TextMode="Password">
    <PasswordStrengthSettings showindicator="true" minimumnumericcharacters="1" minimumsymbolcharacters="0"
             textstrengthdescriptionstyles="RedText;RedText;GreenText;GreenText;BlueText;BlueText;" PreferredPasswordLength="8"/>
</telerik:RadTextBox>

And here's the assembly declaration at the top of the page (in case it's a versioning issue): 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

The solution fails to build as well. Any help is greatly appreciated. 
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2012
0 answers
87 views
Scenario 1)Two reqired field validators are firing at tab event for the text boxes even after using tab index.But I need only the respective validator to be fired.
Scenario 2)I have to bring value from popup and place it in a label along with value of textbox & the values are been assigned but the label value gets disappeared on postback while custom validator is fired.

Need a solution on the above two issues.

Kindly help
Regards
Aabidha Banu.S
Aabidha
Top achievements
Rank 1
 asked on 14 Jun 2012
1 answer
86 views
How can I get the current DataKey property from a RadListViewEditableItem object?
Princy
Top achievements
Rank 2
 answered on 14 Jun 2012
1 answer
105 views
Here are some suggestions of options for timepicker;

Option to limit range of times offerred to user,  such as only offer times between 8:00 AM and 5:00 PM.
Option to include times on the :15, :30, and :45.

Thanks
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2012
1 answer
395 views
Hi I'm working with a radgrid populated with a few gridboundcolumns and one gridtemplatecolum with a radtextbox.
I have a save button on the bottom of the page wich will update to database the items wich has changes on the template column.
My question is how can I get the value of the cells tha dot not correspond to the templatecolumn.

For the template column I do the next
 
var rdtxtCant = (RadTextBox)rgAct_Indicador.Items[i].Cells[0].FindControl("rdtxt");

And it's working fine, but I don't know how to manage this when it is a gridboundcolumn.
Can you help me please?
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?