Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Is it possible to display some columns in a different color than others based on some condition.

What I want here is I have a grid which displays days of week.
I want to display my sat and sun columns in a different color or if the day is a holiday then in a different color.

Is this possible?
Princy
Top achievements
Rank 2
 answered on 31 Jul 2008
3 answers
116 views
I want to do this in Javascript:

var node = new Telerik.Web.UI.RadTreeNode()         
node.set_text("");        
node.set_value("");        
node.set_visible(false); //this doesn't work        
node.get_element().style.display='none' //nor does this       
ProductTree.get_nodes().add(node);     
 

...however even though node.get_visible() correctly returns false after this code, the node is still physically visible. Is there a way to create a new node in Javascript and make it invisibile?

Cheers,
Nuri
Atanas Korchev
Telerik team
 answered on 31 Jul 2008
1 answer
198 views
Hi

I'm using 2008.2

I have a RadGrid inside an asp:Panel which I hide and unhide using a RadAjaxManager.

When I update a checkbox to update the RadGrid (id: rgInventoryPanel) through the RadAjaxManager, I get text above and below the RadGrid.

This is what I get:

7025|updatePanel|rgInventoryPanel|
{RadGrid is here}
|

Can someone please help me with preventing this extra info displaying on my page?

EDIT: I accidentally had the RadGrid wrapped in a RadAjaxPanel, I took that out and all ok now. But I might need the RadAjaxPanel later for sorting the RadGrid etc...
Konstantin Petkov
Telerik team
 answered on 31 Jul 2008
4 answers
131 views
I have just recently installed the controls, they show up in the visual studio toolbox however when I select to add a control to my webpage nothing happens.
Vlad
Telerik team
 answered on 31 Jul 2008
2 answers
80 views
I have a self referencing hierarchy. I would like the columns to be aligned at all levels. Is it possible to do this?
Princy
Top achievements
Rank 2
 answered on 31 Jul 2008
3 answers
144 views


Hi all,

I am implementing the edit mode in a RadGrid.

The code for a normal ASP.NET datagrid is simple and it boils down to

protected void MyDataGrid_Edit(object sender, DataGridCommandEventArgs e)
{
   MyDataGrid.EditItemIndex = e.Item.ItemIndex;
  BindGrid()

}


BUT i am not finding the exact equivalent for "MyDataGrid.EditItemIndex = e.Item.ItemIndex"   in a RADGRID.

it throws a compilation error if i write

radGrid.EditItemIndex = e.Item.ItemIndex


So can anyone send me the equivalent for the below line for a RadGrid ?
MyDataGrid.EditItemIndex = e.Item.ItemIndex


Any alternative solutions welcome

Thanks,
Sandeep

Shinu
Top achievements
Rank 2
 answered on 31 Jul 2008
2 answers
161 views
Hi,

I'm trying to make a wizard with your example and can go from Tab 1 to Tab 2 with the next button without any problem but can't come back to Tab1 by clicking the Tab itself.

I have searced a long time without succes and tryed a simple example of your demo website.
This code is really simple, I put the style head tag, the form, have registered the controls... but get the same problem, impossible to change any Tab by clicking. There is not any other code in that test page.

I have noticed that I have a IE js error at the bottom left of IE in any page using a Telerik control saying that "Telerik is undefined" Lign 130 caracter 5 code 0, can it be a part of the problem ?

Any idea on how to fix it and make my tabs running ?

Many thanks,

Herve

Herve
Top achievements
Rank 2
 answered on 30 Jul 2008
0 answers
109 views
Hi,
I have a radajaxtree inside an aspx page.The tree is populated from datadase and also have different types of colors based on a rule.I'm updating this tree at an interval of 30s to get the latest status of tree items and change colors provided there's change.
Now the problem is when i update the tree the browser stops responding for around 5secs.The scenario is same for all web browsers.Any idea how i can solve this.Thanks.
Syed
Top achievements
Rank 1
 asked on 30 Jul 2008
8 answers
894 views
I'm binding the Prometheus RadGrid with a generic List of customer business objects.  I need to access the business object that is associated with that row.  Normally I would do this with e.item.dataitem but this is exclusively null in the RadGrid which is diferent to all of Microsoft's controls.

Could you tell me the best way to access it?  I've read up on Cells using uniquenames etc, but can't make it work.

Thanks,

Rob
Kevin Robinson
Top achievements
Rank 1
 answered on 30 Jul 2008
4 answers
233 views
Hi, I'm trying out the futures build  2008.2.708.20  and converting some existing pages.

When I input something the first time (into either text box), everything works fine.  tab to other field, and the second input to the other textbox the $find call always returns null.

Code wrapped in a <radcodeblock>

This is within a user control loaded onto a page. (using a standard bit of code to load the user control which hasn't changed for 100+ pages)

// Point to text box  
var textBox1Element = document.getElementById("ControlsRegistration_rmtEMail");  
var textBox2Element = document.getElementById("ControlsRegistration_rmtUsername");  
 
// When the textbox looses focus, call AJAX function  
textBox1Element.onblur = sendData;  
textBox2Element.onblur = sendData;  
 
function sendData()  
{  
   var srcElement = window.event.srcElement;                               // Point to control  
   var ajaxManagerObject = $find("<%= myajax.ClientID %>");                // Locate AJAX Object  
            
   ajaxManagerObject.ajaxRequest(srcElement.id + ":" + srcElement.value);  // Process AJAX Request passing control name, value and UTC offset  

I noticed this code was producng some errors in the FF console (abuot srcElement), so I created a simpler version
where I have onblur="func();" assigned in the <asp:textbox>..  still no joy with ajax though:
 
function bEmail()  
{  
    var ajaxManagerObject = $find("<%= myajax.ClientID %>");// Locate AJAX Object     
   var textBox1Element = document.getElementById("ControlsRegistration_rmtEMail");  
    ajaxManagerObject.ajaxRequest(textBox1Element.id + ":" + textBox1Element.value);  // Process AJAX Request passing control name, value and UTC offset     
}    
 
 
function bUser()  
{  
    var ajaxManagerObject = $find("<%= myajax.ClientID %>");// Locate AJAX Object     
    var textBox2Element = document.getElementById("ControlsRegistration_rmtUsername");  
    ajaxManagerObject.ajaxRequest(textBox2Element.id + ":" + textBox2Element.value);  // Process AJAX Request passing control name, value and UTC offset     
}    
 

any ideas?
ewart
Top achievements
Rank 1
 answered on 30 Jul 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?