Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
72 views
Hello again..can someone show me an example to add a callendar popup to my FilterItem inside my RadGrid like we can see on:

http://demos.telerik.com/aspnet-ajax/salesdashboard/   

on the orders tab?
Ricardo
Top achievements
Rank 1
 answered on 02 Aug 2011
4 answers
275 views
I am trying to set a default insert value.  I have read the forums on how to do this from code-behind, and I have that working.  However I am very curious if there is a way to do this using the documented DefaultInsertValue property.  Whenever I try it, a javascript error is generated:

<

 

telerik:GridDateTimeColumn DataField="InspectionDate" DataType="System.DateTime" DefaultInsertValue='<% = Now().ToString() %>'

FilterControlAltText="Filter colInspectionDate column" HeaderText="Date"

UniqueName="colInspectionDate">

</telerik:GridDateTimeColumn>


I have also tried '<% = Now() %>'.

I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The default insert value for column colInspectionDate cannot be converted to type System.DateTime

I am using Q2 2011.  Is this a bug?  Is DefaultInsertValue supposed to work?  Is there a formating option I have to use on the date?  I have been unable to find anyone who has a working example other than the code-behind solution.

Thanks.
Chuck
Top achievements
Rank 1
 answered on 02 Aug 2011
2 answers
100 views
Hello Telerik Team,

I have a requirement where I need to open bunch of( number varies based on items availability) same radwindows as modal windows where user inputs the data on each of the windows and close it to get to the next window, I need to refresh the parent page once the user is done inputting data on all the modal windows, I have a javascript function the needs to be called upon clientclose(which is going to be same for all the modal windows) where I check the number of windows active, if the active count is zero that's when I refresh the parent page, it looks like the javascript function is not attached to each instance of the modal window, but it is attached to the first instance that I see on the screen. here is my code, please let me know why the event is not attached to each of the modal windows.

Thanks in advance,
SC.

function OnClientclose(sender, eventArgs) {
  
            var manager = GetRadWindowManager();
            var windows = manager.get_windows();
             if(windows.length==0)
              {
                     //refresh parent page
               }
                
}
  
  
  
-----------------------------------------------------------------
  
//from my code behind
  
string[] strInputIDs = args1[1].Split(',');
  
for (int i = 0; i < strInputIDs.Length; i++)
  
{
  
RadWindow window = new RadWindow();
  
window.ID = "RadWindow" + i;
  
window.NavigateUrl = "Popup.aspx?ID=" + Convert.ToInt32(strInputIDs[i]) + "&Result=S";
  
window.VisibleOnPageLoad = true;
  
window.Modal = true;
  
window.Width = 550;
  
window.Height = 300;
  
window.OnClientClose = "OnClientclose";
  
RadWindowManager1.Windows.Add(window);
  
}
Srujana
Top achievements
Rank 1
 answered on 02 Aug 2011
2 answers
142 views
Hi,

The drop down of the combo is hidden behind the menu.

Can I bring it to the front?
STEVEN
Top achievements
Rank 1
 answered on 02 Aug 2011
1 answer
117 views
I would like to have a two radupload controls and having one uploads thumbnail and other one large image.
Is it possible and how?

P.S> i would like it upload both images into the same folder e.g. Images and then just update the paths in the database.

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Aug 2011
1 answer
62 views
Hai,

I have created a scheduler and Grid in which the grid drop is enabled.
When the Item is created on the drop of the grid the Appointments are not possible to "Resize or Repostion by Dragging".

Only these actions are permitted only if I do a page refresh or the postback.

What could be the reason.

Any help.


Vinu
Plamen
Telerik team
 answered on 02 Aug 2011
1 answer
165 views
Hello everyone!

I pasted in the Radeditor content a <span> that contains a table and script code, I need select the Table in the design mode and press key "supr" to delete this <span> and its content.

I tried with this code that I found in the forums of this page, but it has a different behaviors in all browsers. 

<span contenteditable="false" unselectable="on" style="-moz-user-select: none;-webkit-user-select: none;
;"
>
   <script type="text/javascript">
        function example(){
        }
    </script>
<table>
    <tbody>
        <tr>
            <td>test</td>
        </tr>
    </tbody>
</table>
</span>

  • Internet explorer: works very fine, the <span> with its content is deleted.
  • Chrome: with this code I can't do anymore in the content of the Radeditor.
  • Firefox: Only selects the table, but I can't delete the table with the key "supr".

I hope you can help me with this.

Best Regards!
Rumen
Telerik team
 answered on 02 Aug 2011
3 answers
213 views
Hi
I'm using a RadTimePicker in an edit form of the grid. I just want to hide the control from server side and show/hide the control from client side.
client side show/ hide is working with following code.

function checkboxClick(chkBox, timePicker) {
 var chkBox1 = document.getElementById(chkBox);
 var timePicker1= $find(timePicker);
 if (chkBox1 .checked) {
  timePicker1.set_visible(true);
 }
 else {
  timePicker1.set_visible(false);
 }
}

I can hide the RadTimePicker from server side usnig the following code but I can't show/hide the control from above javascript code.
timePicker.Style.Add("visibility", "hidden");

Please help!!

Thanks!

 

Maria Ilieva
Telerik team
 answered on 02 Aug 2011
5 answers
4.7K+ views
Hii

We are using RAD Grid, RAD Treeview, RAD Dock and bunch of other controls on a page. Based on node clicked on the treeview, the result in the grid changes. The entire page was working fine in .Net 3.5 perfectly fine. But when we migrated the application to .Net 4.0, the page started shouting. 
Initially it gave JS errors as follow: 

  • Error: ASP.NET Ajax client-side framework failed to load.
  • Error: 'Sys' is undefined
  • Error: 'Telerik' is undefined

And even page was not rendered correctly. It was completely messed up.
After this we added

<add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

entry in web.config file under <handlers> section. After adding it, above errors are gone. 
But now it is throwing following JS error when I click on the treenode. 

Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Debugging shows following error which we caught in Application_Error : 
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").

A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
<Group>
...").
<Group>
...").
<Group>
...").
<Group>
...").
<Group>...").

I am not able to understand why this error is coming and how to get rid of it..
Any help appreciated.
Slav
Telerik team
 answered on 02 Aug 2011
1 answer
85 views
My project uses a heavy collection of RadControls including the AJAX, Menu, Panel, Tabs, etc.  They are literally embedded into every corner of the application.  However, they no longer work when deployed to the Azure cloud.  Everything works fine on localhost.  However, once deployed, all of the controls render (see screenshot) but they aren't functional.  For example:

1) The menu won't pull down to show sub-items
2) The panel won't expand to show the collection of items
3) The tab won't let you move between tabs

There are more examples but in essence, they are all broken in Azure.  They render but lose 100% of functionality.  Any ideas on how to fix?  
Helen
Telerik team
 answered on 02 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?