Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
In the current AJAX build (2009.2.826)

When using DateFormat if you only want the Month / Year after you make your first selection all others do not for an update.

Example
<telerik:RadDatePicker ID="rPubDate" runat="server" DateInput-DateFormat="MM/yyyy" />

The control only allows me to select the current month / year in this case "10/2009" any other date will not work. If I change the dateformat to MM/d/yyyy or MMM/yyyy it works fine.

 

Pavlina
Telerik team
 answered on 20 Oct 2009
1 answer
158 views
I've attached a (poorly) draw drawing to help explain what I'm asking in this post.

I'd like to have a RadGrid in the center of the page that dynamically shrinks and grows with the page in the container that it's it. So, if you look at the image, you can see the section where the RadGrid is in. It should own 100% of that container.

When the container shrinks, the RadGrid should just sprout scrollbars as needed, but the "Tasks" section and the header need to be fixed in size. So - as the width of the window changes, the RadGrid needs to get narrowed so that the Tasks section remains fixed in size. If it ever gets smaller that the columns it needs to show, a scrollbar should be shown.

 And, as the the window gets less tall (height descreases), the RadGrid needs to get smaller and similiarly show a scrollbar if neccessay.

Any ideas on how to accomplish this? An iframe?

Dimo
Telerik team
 answered on 20 Oct 2009
1 answer
140 views
I followed your example from the ASP.NET MVC upload page http://www.telerik.com/help/aspnet-ajax/mvc-using-upload.html, and while the upload works, I don't see any progress bar.  I tested a file almost 2 MB.

Is this capable in ASP.NET MVC?

Thanks.
Atanas Korchev
Telerik team
 answered on 20 Oct 2009
8 answers
254 views
Hi,

I've got a gridview with a couple of templated columns where I use the radcombobox at edit mode. Other columns are text boxes at edit time. The problem I have is that when in edit mode and I open the combo box to change a value (or even re click the same one), and then I click away to one of the text box columns in the grid then I get a script error in  the auto generated ScriptResource file.
I don't get the error if I click away to a non-edited cell and then click into the edit text box.

Error section in script file:

return

 

true;

 

},_applySelection:

function(){

 

if

 

(!this._isInVisibleContainer(this._textBoxElement)){

 

return

 

;

 

}

if

 

((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){

 

this

 

._textBoxElement.selectionStart=this._selectionStart;

 

this

 

._textBoxElement.selectionEnd=this._selectionEnd;

 

return

 

;

 

}

this

 

._textBoxElement.select();

 

sel=document.selection.createRange();  //ERROR IS ON THIS LINE

sel.collapse();

sel.moveStart(

"character",this._selectionStart);

 

sel.collapse();

sel.moveEnd(

"character",this._selectionEnd-this._selectionStart);

 

sel.select();

},_clearHiddenValue:

function(){

 

this

 

._hiddenElement.value="";

 

},_handleWheel:

function(_58){

 

},_setHiddenValue:

function(_59){

 

if

 

(this._hiddenElement.value!=_59.toString()){

 

this

 

._hiddenElement.value=_59;

 

}

this

 

._setValidationField(_59);

 

return

 

true;

 

},_setValidationField:

function(_5a){

 

},_updateHiddenValueOnKeyPress:

function(){

 

this

 

._updateHiddenValue();

 

},_updateHiddenValue:

function(){

 

if

 

(!this._textBoxElement.readOnly){

 

return

 

this._setHiddenValue(this._textBoxElement.value);

 

}

},_escapeNewLineChars:

function(_5b,_5c){

 

_5b=escape(_5b);

while

 

(_5b.indexOf("%0D%0A")!=-1){

 

_5b=_5b.replace(

"%0D%0A",_5c);


The Error : "Microsoft JScript runtime error: Unknown runtime error"

The dropdowns are using load on demand and virtual scrolling and all of that works fine providing I click away to a non editing cell before clicking to another editing control. The problem does not occur when the dropdowns are not opened and values are changed through using the keyboard up and down keys.
I've got no client side scripts running - all controls are created in code.

If I click away to another dropdown control (or even to the same one) the error is similar and it appears here:

 

function

 

(_f9,_fa){

 

 

 

if

 

(!this.get_enableTextSelection()){

 

 

 

return

 

;

 

}

 

 

if

 

((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){

 

 

 

return

 

;

 

}

 

 

if

 

(this.get_inputDomElement().createTextRange){

 

 

 

var

 

_fb=this.get_inputDomElement().createTextRange();

 

 

 

if

 

(_f9==0&&_fa==0){

 

_fb.collapse(

true);

 

 

 

return

 

;

 

}

_fb.moveStart(

"character",_f9);

 

_fb.moveEnd(

"character",_fa);

 

_fb.select();                    //ERROR IS ON THIS LINE

}

else{

 

 

 

this

 

.get_inputDomElement().setSelectionRange(_f9,_f9+_fa);

 

}

},_childRemoving:

function(_fc){

 

 

 

var

 

_fd=_fc.get_index();

 

 

 

if

 

(this._itemData){

 

Array.remove(

this._itemData,this._itemData[_fd]);

 

}

Telerik.Web.UI.RadComboBox.callBaseMethod(

this,"_childRemoving",[_fc]);

 

},_childRemoved:

function(_fe,_ff){

 

 

 

var

 

_100=_fe.get_element();

 

 

 

if

 

(_fe==this.get_selectedItem()){

 

 

 

this

 

.set_selectedItem(null);

 

 

 

this

 

.set_highlightedItem(null);

 

 

 

this

 

.set_text("");

 

 


The Error: "htmlfile: Could not complete the operation due to error 800a025e"

I'm running Ie8 and I've tried running it in the compatibility mode but results were the same.
I'm using Visual Studio 2008 to create the web app.

Thanks for your help,

Jo

Taburetka Kekc
Top achievements
Rank 1
 answered on 20 Oct 2009
1 answer
103 views
Georgi Tunev
Telerik team
 answered on 20 Oct 2009
1 answer
284 views
Hi,

I have a page where i need to create client object from code behind. All my page is currently ajaxified, but i can't retrieve correctly the object in my page. When i remove all ajax in my page my client script works well.

I know the radscriptblock might be a good solution for my page but i don't know if it's possible to add dynamicly script from code behind in the radscriptblock in the page_prerender.

Thx for your time!

Guillaume

Iana Tsolova
Telerik team
 answered on 20 Oct 2009
5 answers
161 views
Hi,

I have a problem to Use rad window.
the problem is like
i am using control radscheduler control. when i schedule any appointment then that form have a facility that it redirect to another form and that form opens in radwindow.
it works fine for newly appointed window.
when i click on any appointment then by this code our radwindow opens.
page_load
{

Manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(this.RadAjaxManager1_AjaxRequest);

}

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

{

string URL = "appointment.aspx";

string script = "radopen('" + URL + "');";


Manager.ResponseScripts.Add(script);

}



now there is problem in update any appointment
for this when we click any appointment which is already scheduled then our rad window shows all the things clearly and update action is performed successfully
now here the problem arise.
after updating appointment when i click to schedule new appointment then it takes previous record.
also we use debug point on the page load event of that page but its load event is not fired.
so pls suggest what to do for this.
Georgi Tunev
Telerik team
 answered on 20 Oct 2009
0 answers
118 views
Hi,

I have xml file. I need to append some child to the xml file. I have few questions regarding the same/

1. How to append the child be to the existing tree structure which is there in file. [This should not modify my initial xml file]
2. How to load this modified xml tree to the RadTreeView control?


Can anybody answer to  my two questions?

Thanks in advance,
Medac
Medac
Top achievements
Rank 1
 asked on 20 Oct 2009
5 answers
212 views
Hi, I have an issue when PerformInsert event is finishing, where I have this line:
RadGrid.MasterTableView.Rebind();

This line calls to the RadGrid_NeedDataSource event, which has a line like this:
RadGrid.DataSource = Session["ObjectList"];

The problem is that when this last event is fired, I have an error like this:

 "DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name ...subobject.property"

This only fails at the PerformInsert event but not at update or delete...

any  ideas?





Yavor
Telerik team
 answered on 20 Oct 2009
1 answer
149 views
Hi All,

I need to have a Confirm window, driven from C# code behind.

I have tried  (from within a C# function)

 

if (!ClientScript.IsStartupScriptRegistered("mytest"))

 

{

ClientScript.RegisterStartupScript(

typeof(Page), "mytest",

 

 

 

"<script>radconfirm('Do you want to Create a Hotspot Icon? ', 'confirmCallBackFn()');</script>");

 

}
but to no avail.

unfortunately it has to happen from this function to determine which option / functions to perform  (saving of either jotspots on an asp.map map or its coordinates)

HTML java script is

 

 

function confirmCallBackFn(arg)

 

{

document.form1.HSpot.value = arg;

}

 

Also tried invoking the java scipt function from code without using client register script or Clientregisterstartup script, but no go.

function hi()

 

{

alert(

"..");

 

radconfirm(

'<h3 style=\'color: #333399;\'>Do You want to create a hotspot?</h3>', confirmCallBackFn, 330, 100, null,'Create Hotspot or Get LatLon co-ords');

 

 

return false;

 

 

}

 

Using ASP.Net 2 and Telerik v 2009.1

If I can get the return variable in C# i'm ok, but how to ???

Thx
Neal

Shinu
Top achievements
Rank 2
 answered on 20 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?