Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
216 views
hi
my language is persian
but in radgrid numbers show english
please help
thanks
Maria Ilieva
Telerik team
 answered on 30 Sep 2010
2 answers
359 views
Hi Team

Ho to i use Webserice in Rad combobox i'll send you the sample code which i using in application

<

 

telerik:RadComboBox ID="ddlsample" runat="server" EmptyMessage="Select" DataTextField="FirstName" DataValueField="ReferalID"

 

 

EnableLoadOnDemand="true" TabIndex="133" Width="200px">

 

 

<WebServiceSettings Method="GetRefDoc" Path="RefDoc.asmx" />

 

 

</telerik:RadComboBox>

// Webservice RefDoc.asmx

 

[

WebMethod]

 

 

public DataSet GetRefDoc()

 

{

 

DataSet ds = new DataSet();

 

ds =

GlobalGui.Instance.FillReferralDoctorCombobox1();

 

 

return ds;

 

}

this is my method calling to fill

 

public

 

DataSet FillReferralDoctorCombobox1()

 

{

 

DataSet dset = aaa.ProcessSelectStatements("Mystored_Procedure");

 

 

return dset;

 

}

i must want to store DataValueField to database and also i've to do some autopostback event for some controls.
Please Give me the solution or suggession how to use webservice ..
as soon as possible.. need to implement.

Regards,
Ashok Anbarasu

Ashok
Top achievements
Rank 1
 answered on 30 Sep 2010
3 answers
123 views
At the moment, aligning items to the right will produce <p style="text-align:right"> etc.. for many other options also.

Is there a way to by pass this to place <p class="right"> instead. this would help us with updating our editor for our current setup.

Many Thanks,

Paul.
Rumen
Telerik team
 answered on 30 Sep 2010
1 answer
107 views
Short question. Does the Telerik ASP.NET AJAX controls support Chinese characters? Is it posible to view any sample of that?
Sebastian
Telerik team
 answered on 30 Sep 2010
3 answers
448 views
Hello,

I need to be able to keep the caret in the same location on a masked textbox when a user leaves our webpage (switches tabs) and comes back.

Currently, if the user enters some text, '123', and then goes to a different tab and comes back, the caret does not remain after the '3'.  It has moved to the end of the mask.
<telerik:RadMaskedTextBox ID="RMTBZip" runat="server" Mask="#####-####" SelectionOnFocus="None" />

This happens regardless of whether I set the SelectionOnFocus attribute to "None" or not.

A standard asp textbox keeps the caret in the same location.  If I type "test" and leave the caret between the 'e' and the 's'.  Tab away and come back, the caret is still in the same location.  Is there another attribute I need to use in order to replicate this functionality?  Or in other words, stop the caret from moving?

Regards,
Chris
Maria Ilieva
Telerik team
 answered on 30 Sep 2010
3 answers
77 views
Hi,

I'm trying to use the code from this demo http://telerikwatch.com/2008/09/telerik-watch-minute-enhancing-radgrid.html. The problem I'm having is I get this error the second time I try to edit the filter textbox and hit Enter. This seems to be happening in all browsers.



This is a very complex page so I can't copy all the code here. So, here is an idea of what is going on that may be helpful:

       1. Columns are dynamically created with AutoPostBackonFilter = false (I've tried both ways)
       2. Using RadAjaxManager to update grid and controls.
       3. There is a ASP:Panel around the grid with the DefaultButton set to a control to keep it from randomly launching other buttons     on the page.
       4. Using RadComboxes in the grid also. They are all working fine and are using the masterTableView.filter() function.    

Any help would be appreciated.

Blair

Possible offending code:

,_recreateControls:function(e){var d=e.getElementsByTagName("*");

for(var a=0,c=d.length;

a<c;

a++){var f=d[a];

if(typeof(f.id)!="undefined"&&f.id!=""){var b=$find(f.id);

if(!b){continue;

}b._element=$get(f.id);

}}},getColumnByUniqueName:function(a){for(var b=0;

b<this.get_columns().length;

b++){if(this.get_columns()[b].get_element().UniqueName==a){return this.get_columns()[b];

}}return null;

 


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322)
Timestamp: Fri, 17 Sep 2010 16:56:07 UTC

Message: 'this.get_columns()[...].get_element().UniqueName' is null or not an object
Line: 3398
Char: 6
Code: 0
URI: https://mini.salesnet.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.713.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7302be66-e7a1-4bc1-8280-71f03d66eba0%3a16e4e7cd%3a58366029%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289%3aed16cbdc

 

Pavlina
Telerik team
 answered on 30 Sep 2010
1 answer
55 views
Hi,
I have some problem with rad menu.
Rad menu opening behind rad window in IE 6,7. It is happening only in IE6,7.
I am attaching a screen shot, please see it and tell me why it is happening. I have done all setting like overlay, Z-Index but nothing is working.
Kamen Bundev
Telerik team
 answered on 30 Sep 2010
3 answers
227 views
Hi, 

I am successfully able to use radgrid for inline insert.

However, on click of add a new item, the grid goes to the last page showing the items in the end.

Is there a way to force the grid to display the same items? (ie, remain on the same page)

Thanks
Vishesh
vishesh kumar
Top achievements
Rank 1
 answered on 30 Sep 2010
4 answers
125 views
I am creating a new instance of a popup and then adding the OnClientResize,
var popup = window.radopen(Url, null);
popup.OnClientResize = OnClientResize();
When the popup opens/loads the function is fired, however it is never fired again when resizing.

However, if i add it to the radwindowmanager, and assign the same function to it, it will work every time.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" KeepInScreenBounds="true"
                          ReloadOnShow="false" VisibleStatusbar="false" ShowContentDuringLoad="false"
                          EnableShadow="true" OnClientResize="OnClientResize">
</telerik:RadWindowManager>
I do not wish to add it it to the radwindowmanager as the function i need to call is not available on that page.

Any help with this would be much appreciated.
Georgi Tunev
Telerik team
 answered on 30 Sep 2010
5 answers
460 views
Hi Telerik,

After a week of researching this topic it seems that most people are confused about how to use RadAjaxManagerProxy when creating MasterPage/ContentPage sites and WebUserControls.

The problem with not being able to insert a RadAjaxManager in a ContentPage/UserControl is that if you call the clientside function ajaxRequest your call is made to the RadAjaxManager server side function, which you have no control over when you're developing the contentpage or usercontrol. We need to be able to fire callbacks and catch them in the contentpage or webusercontrol.

I know you can use ajaxRequestWithTarget but this has two problems - it requires you to register the expected postback variables in the Page or UserControl Render function as follows:

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
     Page.ClientScript.RegisterForEventValidation(cmdProjectSelected.UniqueID, "2")
    Page.ClientScript.RegisterForEventValidation(cmdProjectSelected.UniqueID, "3")
    Page.ClientScript.RegisterForEventValidation(cmdProjectSelected.UniqueID, "4")
    Page.ClientScript.RegisterForEventValidation(cmdProjectSelected.UniqueID, "5")
    MyBase.Render(writer)
End Sub

And then you have to catch the event on the server side in RaisePostBackEvent - which implies that ajaxRequestWithTarget does a postback, not a callback like ajaxRequest, which is less efficient. The reason you need to register the expected postback variables is because if you don't, you'll get a security error from Asp.Net: "Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument" - meaning that ASP is preventing this postback because it doesn't know the data being posted since it wasn't in the ViewState for the target specified in ajaxRequestWithTarget. Also, it's not an elegant solution when you have to add a hidden button to your page which does the postback for you.

Most developers are now moving to nice elegant jQuery solutions that make callbacks everywhere, and if RadAjax does not have an elegant way to make callbacks simple then it's not a workable solution. 

I really like the simple way you can make a callback via the RadAjaxManager, but we really need this functionality in the RadAjaxManagerProxy as well!

Dimitri 
Tsvetina
Telerik team
 answered on 30 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?