Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
Hello ,

             I have 4 columns in  a Rad grid all are RAD numeric text fields . I have handlers for onfocus , onblur event for all textboxes . I want to test a condition on 2nd cells textbox blur event and restrict the focus to go to the next cell or textbox .

            How can i achive it in the client side ?

Thank you for your help .
Iana Tsolova
Telerik team
 answered on 12 May 2009
4 answers
3.5K+ views
This one had me going for 3 days.
"Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."  This message would show up in the Visual Studio IDE in design windows with any Telerik control.

Hopefully, my experiences will save others some time.

The root-cause of this messagewas that the system was looking for .net 2 dlls when the project is .net35.

Telerik's support kept on advising me to make sure my project was actually .net 3.5.  It was. My project is three tier, and all modules at each of the three levels was set for a 3.5 build.

The problem persisted.  The Telerik.web.ui.dll in the bin folder was removed and the references added again, ensuring that they were from the Telerik bin35 folder.
The tools were removed and re-added, again ensuring that they were from the Telerik bin35 folder.  All would work correctly for a while (say an hour) and then the Telerik.web.ui.dll in the bin folder would mysteriously become the .net 2 version.  The refresh file and tools would remain pointing at the bin 35 version.

All very confusing.

The issue causing this problem was that in my middle tier (business logic) I had included a helper class to support the Telerik TreeView control, and had a reference in there to the Telerik.web.ui.dll.  That reference was to the wrong folder (bin as opposed to bin 35).

Every time I built the web-site the complier would find this reference at the lower level and silently replace the Telerik.Web.ui.dll at the higher level.  No warnings, no questions, just replaced the dll. Sneeky, huh!


 
Hari
Top achievements
Rank 1
 answered on 12 May 2009
4 answers
170 views
Hi

At my project, I'm showing my data as like hierarchical structure. My grid has summary and detail. When I click "+" on one of the row of the summary I can see the detail rows of that summary and then all the "+" are gone and cannot see the detail for other summery rows. Another scenario also happen like that when I click on next page.


Regards,
Phyoe


Phyoe Khaing
Top achievements
Rank 1
 answered on 12 May 2009
0 answers
133 views
Hi
I am using Rad tool bar in my code and the javascript is in aspx page.  I want to move that code to either Code behind or to other Javascript file.  But when i tried copying code to code behind its giving error.  The event is not firing..

This is how i am using the Code and I want to move the javascript to Code behind.  

<rad:radtoolbar AutoPostBack="true" runat="server" id="tbStudentRequirement" skin="office2007" UseFadeEffect="True">
<items>
<rad:radtoolbarbutton Width="75px" ID="tbbtnEdit" AccessKey="i" Tooltip="Edit(Alt+I)"  CommandName="Edit" ButtonImage="Edit.gif" ButtonText="Edit" Hidden="False" runat="server" DisplayType="textImage" />
</items>
</rad:radtoolbar>

Javascript in aspx page

<script language="javascript" type="text/javascript"> 

<%= tbDebtRequirement.ClientID %>.attachEvent("OnClientClick","ToolBarEvents");

function ToolBarEvents(sender, e)
{
if (sender.CommandName == "Edit")
{
  if (!CheckComplexItemforEdit("Student"))
     {
return false;
     }
EditPopUp("ManageStudent.aspx?ID=" + document.getElementById("selectedID").value,"wndManageStudent");
return false;
}
}


thanks
Siva Kumar KB
siva
Top achievements
Rank 1
 asked on 12 May 2009
0 answers
137 views
Hi
I am using Rad tool bar in my code and the javascript is in aspx page.  I want to move that code to either Code behind or to other Javascript file.  But when i tried copying code to code behind its giving error.  The event is not firing..

This is how i am using the Code and I want to move the javascript to Code behind.  

<rad:radtoolbar AutoPostBack="true" runat="server" id="tbStudentRequirement" skin="office2007" UseFadeEffect="True">
<items>
<rad:radtoolbarbutton Width="75px" ID="tbbtnEdit" AccessKey="i" Tooltip="Edit(Alt+I)" CommandName="Edit" ButtonImage="Edit.gif" ButtonText="Edit" Hidden="False" runat="server" DisplayType="textImage" />
</items>
</rad:radtoolbar>

Javascript in aspx page

<script language="javascript" type="text/javascript"> 

<%= tbDebtRequirement.ClientID %>.attachEvent("OnClientClick","ToolBarEvents");

function ToolBarEvents(sender, e)
{
if (sender.CommandName == "Edit")
{
 if (!CheckComplexItemforEdit("Student"))
    {
return false;
    }
EditPopUp("ManageStudent.aspx?ID=" + document.getElementById("selectedID").value,"wndManageStudent");
return false;
}
}
siva
Top achievements
Rank 1
 asked on 12 May 2009
1 answer
103 views
Hi,

I have a column named "Price" on the grid and i want to change the color of the cell of this column depending upon the condition.

if row(n)column("Price")<=60 then
row(n)column("Price").Backcolor="REd"
elseif row(n)column("Price")>60 and <=90 then
row(n)column("Price").Backcolor="blue"
elseif row(n)column("Price")>90 a then
row(n)column("Price").Backcolor="green"

Thanks.
Princy
Top achievements
Rank 2
 answered on 12 May 2009
4 answers
211 views
I have an application in which we are using the treeview to add nodes to existing nodes that already have children.  When dropping or adding a node, the node that is added is appended to the end of the nodes collection.  I need to be able to sort the collection after add or drop alphabetically by the node text property.

Any ideas on how to do this?

I see that the ASP.NET treeview has a sort property that prometheus does not have.

Please advise...

Thanks,

Terry Webster
Chief Technology Architect
Highmark Technology

Ramachandra Ekbote
Top achievements
Rank 1
 answered on 12 May 2009
0 answers
91 views

Thread deleted.

G S S
Top achievements
Rank 1
 asked on 11 May 2009
1 answer
109 views
Hi, I have upgraded my radcontrols to asp .net AJAX Q3 2008 package. This morning, I decided to upgrade my old custom menu navigation control based on asp .net Q2 radmenu to asp .net AJAX control using this new AJAX package.
The problem raised when I tried to extend this radmenu ajax control. 

I created new AJAX server control under VS2008, then I changed this signature as follows

public

 

class ServerControl1 : RadMenu,IScriptControl
{}

After I compiled this, it throws me an exception that a xml reference is needed. After I added the reference of System.Xml, the error was gone. Unfortunately when I tried to drag this control on a page, another formatetc error came up.

I wonder how I can extend AJAX radcontrols under VS2008 so that I can use this customize control throughout web applications. Can you provides me some ideas or some other specific examples?

Han
Top achievements
Rank 1
 answered on 11 May 2009
2 answers
128 views

Hello,

I have added custom dropdown box's to RAD Edito, it works fine, but scroll bar is not visible.
I am able to see Scroll bar in Trial verstion, but not purchased verstion.

My Code:

 

EditorToolGroup

 

dynamicToolbar = new EditorToolGroup();

 

dynamicToolbar.Tag =

"ABC";

 

 

bool isFound = false;

 

 

EditorToolGroupCollection rdGrp = rdDesignEdit.Tools;

 

 

for (int iIndex = 0; iIndex < rdGrp.Count; iIndex++)

 

{

 

if (rdGrp[iIndex].Tag.Equals("ABC"))

 

{

dynamicToolbar = rdGrp[iIndex];

isFound =

true;

 

 

break;

 

}

}

 

for (int i = 0; i < dynamicToolbar.Tools.Count; i++)

 

{

dynamicToolbar.Tools[i].Visible =

false;

 

dynamicToolbar.Tools.RemoveAt(i);

}

 

EditorDropDown EditorDropDownPlaceHolder = GetPlaceHoldesDropDownForRADEditor();

 

dynamicToolbar.Tools.Add(EditorDropDownPlaceHolder);

 

if (!(isFound))

 

{

rdDesignEdit.Tools.Add(dynamicToolbar);

}

 

When I look at CSS properties for dropdown box Class "Telerik rade_dropDownBody" has Overflow = Hidden. If a dropdown box has more then 50 items i cant see scroll bars, I am not able to change this property as well, bcz I cant find any CSS Files.

Please suggest me on this.

Thank you,
Sree



Thank you,
Sreedhar

sree
Top achievements
Rank 1
 answered on 11 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?