Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
81 views
Hello,

I have an Ajaxed RadGrid and while configuring my applications error handling logic I purposely set up the situation for an error to occur when a grid item is edited.

<EditItemTemplate 

<telerik:RadMaskedTextBox

 

id="IN_RMTB"  

 

 

 

runat="server"  

 

Mask="##-#######"  

 

Skin="Office2007"  

 

Width="65px"  

 

EmptyMessage="00-0000000" />

 

##-####### (make sure you pad the number with zeros - ex: 08-0000123)

 

<asp:RequiredFieldValidator

 

 

 

id="IN_Suffix_RFV"

 

 

 

runat="server"

 

 

 

ErrorMessage=" Required"

 

 

 

ControlToValidate="IN_RMTB2"

 

 

 

Display="Dynamic" />

 

 

 

</EditItemTemplate>

 

 

 

 

 

Notice that the ControlToValidate property says "IN_RMTB2" when it should say "IN_RMTB".

Anyways, my problem is that when this error occurs (by clicking the edit link for the row) the Page.IsCallback property is not being set. This is thwarting some of my custom error handling plans. Do you have any suggestions or explanations why Page.IsCallback is not being set to true in this situation?
Iana Tsolova
Telerik team
 answered on 26 Feb 2009
3 answers
164 views
Hi,

I've just noticed I'm getting an error when my browser's language is set to Norwegian (nb-NO) but I don't get the error when It's set to English (Australian) en-AU. 

It also doesn't change the width of the RadScheduler so I'm assuming the issue is related to the RadScheduler. It used to be fine, It may be related to upgrading from Q2 to Q3.

Any ideas? I need this to be able to work with nb-NO primarily.
thanks,
Stephen Price

Webpage Script Errors

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.30618; .NET CLR 3.5.30729)
Timestamp: Fri, 19 Dec 2008 03:36:23 UTC

Message: 'this.cells.0.offsetHeight' is null or not an object
Line: 23984
Char: 1
Code: 0
URI: http://localhost/BookingSystem/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8ac4a3ed-a467-4f19-a8ed-9270f6e4c6d6%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1125.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afd794f69-50b6-4e80-a52c-60fb1a05429c%3a393f5085%3a34f9d57d%3a9703c1f0%3aa3f85c94%3a665c7bcf%3a526d426%3a80c4ad6d%3a527acb41%3adfae2b2d%3a414de951%3a6f2bcae9%3a604faffd%3ac4e0cafb%3a34a10845%3af41bbe47%3aa6b75cb4%3a81330300

 
Update: I've found that it only seems to be happening on the RadScheduler when it is grouped by the Room resource, and when the browser's language is set to nb-NO.

Sherry
Top achievements
Rank 1
 answered on 26 Feb 2009
1 answer
117 views
I am not able to access get_nestedViews() method for the data items of the master table. The following code, gives the error saying the method does not exists.

mastTbl.get_dataItems()[0].get_nestedViews()

Is there any solution for this issue.
Daniel
Telerik team
 answered on 26 Feb 2009
1 answer
138 views
Hi,

I have a page with a radgid on it. The page is an https (SSL) enabled page. When I try to export the grid using the following code I get the message:- "Could not open 'https://wesite.com/default.aspx". This all works fine when it's in an http page.

The code is:-

RadGrid1.ExportSettings.ExportOnlyData =

true;

 

RadGrid1.ExportSettings.IgnorePaging =

true;

 

RadGrid1.ExportSettings.OpenInNewWindow =

true;

 

RadGrid1.MasterTableView.ExportToExcel();


Any ideas?

Thanks!
Daniel
Telerik team
 answered on 26 Feb 2009
2 answers
118 views
i have a RadToolbar and RadGrid inside of an Ajax Panel. One of the buttons performs the Export to Excel and I following the instructions for disabling the Ajax use when this buttons pressed because we need to do a full postback.  This all works fine but it makes all of the button clicks do full postbacks.  I have other buttons such as Refresh that I want to use  Ajax.  Here is my javascript routine...

<

 

telerik:RadScriptBlock runat=server>

 

<

 

 

script type="text/javascript">

 

 

 

function pnlRequestStarted(ajaxPanel, eventArgs) {

 

 

 

if (eventArgs.EventTarget == "<%=ToolbarUniqueID %>") {

 

eventArgs.EnableAjax = false

;

 

 

 

}

}

 

 

</

 

script>

 

</

 

 

telerik:RadScriptBlock>

I'm passing the  unique id of the Radtoolbar.  Can I somehow get to the actual button value clicked inside of this routine?

 

Basically I'm lookign for logic that will allow me to do the following.

if button.value = ExporttoExcel
  eventArgs.EnableAjax = false
else
 eventArgs.EnableAjax = true

Randy
Top achievements
Rank 1
 answered on 26 Feb 2009
3 answers
145 views
Hi

  Is it possible to display images from a specified list view in an ImageManager? By default it displays it from "All Items" list view.

My configurationfor ConfigXML file is as follows

<configuration>
 <property name="ImagesPaths">
   <item>/PublishingImages/</item>  
 </property>
 <property name="ImagesFilters">
   <item>*.jp*</item>
   <item>*.gif</item> 
   <item>*.png</item> 
 </property>

 <property name="DocumentsPaths">
   <item>/PDF/</item>  
 </property>

 <property name="DocumentsFilters">
   <item>*.pdf</item>  
 </property>

 <property name="Skin">Default2006</property> 

</configuration> 
i can specify the ImagePaths, Is there an way to specify some custom SharePoint property for a list view?


regards

Sohail

 

Lini
Telerik team
 answered on 26 Feb 2009
1 answer
113 views
Hello,

I have a Grid that is grouped by a field then I have added Controls to the Header on the Grid.ItemDataBound event. I then want to dynamically set the values of some of these controls. This works well on the ItemDataBound event but it doesn't always get fired, I need to use the ItemCreated event also. The problem there is I am using the following code to get the Grouped By field so I can get the values from the database:

string strtxt = header.DataCell.Text;
        string[] arr = strtxt.Split(':');
        string strGroupByField = arr[1].ToString();
        strGroupByField = Regex.Replace(strGroupByField, @"<(.|\n)*?>", string.Empty);

Unfortunately, this fails when triggered from the ItemDataBound event, I would imagine because it hasn't quite got all the data yet.

Is there a way to force the Grid to use fire the ItemDataBound event everytime?

Thanks!

Andy



Yavor
Telerik team
 answered on 26 Feb 2009
1 answer
119 views
Is there a way for the Image manager to return the Physical Path instead of the relative path to the image?

For example I would like it to return <img src="C:\images\MyImage.jpg"></image>
Rumen
Telerik team
 answered on 26 Feb 2009
5 answers
207 views
Hello there... after looking at the Client-Side API, I am trying to implement the client side coding for zooming out from a chart after zooming in.

I added a Button control and set its OnClientClick property in this way:

<asp:Button ID="btnZoomOut" runat="server" Text="ZOOM OUT" OnClientClick="return ZoomOut();" />

 

 

I also added this JavaScript code to page...

<script type="text/javascript">
       
    function ZoomOut()
    {
        alert("Hello");
        var chart = document.getElementById("RadChart1");
        chart.zoomOut();
       

        //var chart = document.forms["form1"].RadChart1.ClientID;
        //chart.zoomOut();
    }
   
</script>


But I get the following error message when the page loads...

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

So I tried altering the following JavaScript to reach the RadChart1 control a different way...

<script type="text/javascript">

function ZoomOut()

{
alert("Hello");
var chart = document.getElementById("RadChart1");
chart.zoomOut();
}

</script>


But the zoomOut() method does not perform. For the second implementation, I know the JavaScript function is called because the alert message appears. It just does not run the zoomOut() method on the chart var.

Thanks for any guidance with it.

---Keith
Giuseppe
Telerik team
 answered on 26 Feb 2009
3 answers
138 views
Is it possible to programmatically set the grid in Insert mode without the current records from the datasource been rendered? I assume that for the insert operation to work I really must databind.

I currently use this:
        RadGrid1.MasterTableView.InsertItem();
to set the grid in insert mode.

What I want to achieve is use the nice editing capabilities of the grid to insert new items on a dedicated page or perhaps in a popup. I do not want to see the other records at that time.

Thanks for any help.
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2009
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?