Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 views

 Hi Everybody!

 I want to set focus to the first GridBoundColumn while a Inserting/Editing process. Searching for a while, I found this Topic, and It helped me a lot. In that topic there are 2 options to achieve what I want. The second option ddn't work in my case, and I suspect that is due to my RadGrid is inside a RadAjaxPanel. But I guess I can solve that if I use the RadScriptManager's method "SetFocus()".

Thus far, I have been using the Topic's first option without a problem, until I tried to do the same thing with the "PopUp" EditMode property value, and I'm getting the following JS message error:

Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 50781009
Char: 1
Code: 0

So, I'm wondering if it's possible to do the same thing illustrated on the Topic, but in the PopUp version of the Edit Mode?


Thanks!
Carlos Contreras
Top achievements
Rank 1
 answered on 23 Jul 2010
2 answers
337 views
I recently downloaded an internal build (00688Telerik.Web.UI_2010_2_722_Dev_hotfix). It has /Skins and /Script folders just like ASP.NET controls. Do I need to add these to my project in order to run Telerik.Web.UI.dll properly, or can I simply replace the DLL in my project?

Thanks in advance.
David
Top achievements
Rank 2
 answered on 23 Jul 2010
1 answer
133 views
Hi,

Is it possible to arrange the inner nodes in two columns rather than default one column? For example,

Rather than following default look, 

Node1
        InnerNode1
InnerNode2
InnerNode3
Node2 
       InnerNode1
       InnerNode2
       InnerNode3
       InnerNode4

Is it possible to have it re-arranged so that child nodes will be repeated horizontally into 2 coulmns as we can do in CheckboxList?

Node1
       InnerNode1  Inner Node2 
       InnerNode3
Node2
      InnerNode1  InnerNode2
      InnerNode3  InnerNode4


Any help is highly appreciated.

Many thanks.

M G
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
3 answers
177 views
Hi,

Can anybody explain how can we restore the expressions from database to radfilter control.
i can restore the expressions in radgrid.but how can we restore in radfilter control

Thanks

Vikas
Anne
Top achievements
Rank 1
 answered on 23 Jul 2010
1 answer
389 views
Hi All,
    Is it possible to change the value of custom attribute on the client side then access it on the server side?
Because I'm trying to change some value of custom attribute on the client side and try to get it during post back, but the value that I get is still the initial value when i created the attribute.

below is my sample code
client script

<script type="text/javascript">
   var activenode = null;
   function $(id){return document.getElementById(id);}
   function AppySetting(){
      if (activenode!=null){
          activenode.setAttribute('AllowAdd'   ,(($('AllowAdd'   ).checked)? 'True':'False'));
          activenode.setAttribute('AllowEdit'  ,(($('AllowEdit'  ).checked)? 'True':'False'));
          activenode.setAttribute('AllowDelete',(($('AllowDelete').checked)? 'True':'False'));
      }
   }
   function OnClientNodeClicked(sender, args)
   {  
        activenode = args.get_node().get_attributes();
        $('AllowAdd'   ).checked = activenode.getAttribute('AllowAdd'   )=='True';
        $('AllowEdit'  ).checked = activenode.getAttribute('AllowEdit'  )=='True';
        $('AllowDelete').checked = activenode.getAttribute('AllowDelete')=='True';
   }
 </script>

server code :
aspx page
<telerik:RadTreeView id="RadTreeViewBackOffice" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="true" OnNodeDataBound="OnNodeDataBound"  OnClientNodeClicked="OnClientNodeClicked" OnClientNodeChecking="OnClientNodeClicked" />

code behind :

 

protected

 

void OnNodeDataBound(object sender, RadTreeNodeEventArgs e ){

           e.Node.Attributes.Add("AllowAdd" ,"True");         

           e.Node.Attributes.Add("AllowEdit" ,"True");

           e.Node.Attributes.Add("AllowDelete" ,"True");
} 

protected void OnClick(object sender, EventArgs e )

 {
  foreach(RadTreeNode Node in RadTreeViewBackOffice.CheckedNodes){
         Response.Write(Node.Attributes["AllowAdd"]);
  }

}
when I call the method Onclick the value of the Attribute is still the same ("True")  even i set "False" in the client side.
regards
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
3 answers
86 views
I need my radgrid accept N number of values showing the fields to fill,I add that when you close a form where you insert the fields and just clean it.


Iana Tsolova
Telerik team
 answered on 23 Jul 2010
2 answers
116 views
Hi,

I have a tree view:

<

 

telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true"

 

 

 

CheckChildNodes="true" TriStateCheckBoxes="true" Skin="Outlook" ShowLineImages="false"

 

 

 

Style="margin-bottom: 10px">

 

 

 

</telerik:RadTreeView>

 

 



And I set the following properties to support load on demand:

radTreeView.WebServiceSettings.Path =

"~/zz_Portal/KdsDimensionLoader.aspx";

 

radTreeView.WebServiceSettings.Method =

 

"GetKdsDimElements";

 

node.ExpandMode =

 

TreeNodeExpandMode.WebService;

 

 


When I check a checkbox and then expand the node for the first time the parent will loose the checked status and the children are unchecked.
Not the expected behaviour.

In the web method it WOULB be very easy to implement the expected behaviour if we could use a proper RadTreeNode object.
But in the samples RadTreeNodeData is used and this object has not the Checked property.

So, how can I use Web Methods for on demand loading and keeping the checked status of the parent and have all children checked as well after adding them to the parent?

Thanks for any reply.

[

WebMethod]

 

 

 

public static RadTreeNodeData[] GetKdsDimElements(RadTreeNodeData node)

 

{

 

 

List<RadTreeNodeData> result = new List<RadTreeNodeData>();

 

 

 

DataRow kdsDimSlicer = MDXSlicers.FindSlicerById("11");

 

 

 

MetaData metaData1 = (MetaData)HttpContext.Current.Session[SessionVariables.MetaData.ToString()];

 

 

 

if (metaData1 != null)

 

{

 

 

string dimName = (string)kdsDimSlicer[MDXSlicers.DIMENSION];

 

 

 

string hierarchyName = (string)kdsDimSlicer[MDXSlicers.HIERARCHY];

 

 

 

DataTable table = metaData1.GetMembers(dimName, hierarchyName);

 

 

 

DataRow[] rows = table.Select("ParentUniqueName = '" + node.Value.Replace("'", "''") + "'");

 

 

 

foreach (DataRow row in rows)

 

{

 

 

RadTreeNodeData childNode = new RadTreeNodeData();

 

childNode.Text = row[

 

"Name"].ToString();

 

childNode.Value = row[

 

"UniqueName"].ToString();

 

 

 

DataRow[] checkChilds = table.Select("ParentUniqueName = '" + childNode.Value.Replace("'", "''") + "'");

 

 

 

if (checkChilds.Length > 0)

 

{

childNode.ExpandMode =

 

TreeNodeExpandMode.WebService;

 

}

result.Add(childNode);

}

}

 

 

return result.ToArray();

 

}

 


Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
3 answers
109 views
I was basing my code off the "Performance 300,000 rowcount example".  I just assumed that by following that model that the filtering MUST be done at the SQL server level.  Is that not correct?

I created a similar grid with a LinqDataSource that uses a DataContext that is LinqToSql.

The paging seems to be done at the SQL server level but when I filter I don't see any additional "where" clause which tells me that SQL server is returning ALL the rows and then .NET/Linq/Telerik/SomeoneElse is doing the filtering.

Is that right?  Or do I not have something configured properly so that the LinqDataSource will cause the WHERE to show up at SQL Server?

Thanks,
Kevin
Iana Tsolova
Telerik team
 answered on 23 Jul 2010
3 answers
122 views
Hello,

I have a treeview with multipleselect = true and an event attached to the the NodeClick event. This gets fired when a user clicks a node but it doesn't when the user clicks for the second time using CTRL or SHIFT. How can I activate this 'autopostback' on multi-click events?

Many thx for your help

Hans
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
2 answers
87 views
Hi

I have just relocated my localhost server (iis7) to a different drive, and got the websites all back up and running.
All the telerik controls work fine when previewing the pages, but I now get 'error rendering control' in Visual Studio
2008 design view, for all Telerik controls.

Something must have got disconnected in the move I guess. What is the best way to fix this?

Thanks

Clive

Q2 2009 controls, windows vista, IIS7, Visual Studio 2008 with SP,  asp.net 3.5 SP1
Clive Hoggar
Top achievements
Rank 1
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?