Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
383 views
Was wondering if there was something i hadn't implemented properly perhaps.

I've got a radcombobox populated with countries. I have markfirstmatch set to true, and allowcustomtext set to false, and i want them to chose an item in the list.

This works fine, however, its not as efficient as perhaps i would like it to be. For example, United Arab Emirates, United States , and United Kingdom. I start typing United, but after that it jumps straight to the first one(united arab emirates) in the list with united, and then won't allow me to add a space and continue typing. I'd like to be able to type in the full country if i desire.
Plamen
Telerik team
 answered on 21 Apr 2014
3 answers
120 views
I want the first column in the grid (first cell of each row) to have the same style as the column headers. Since I allow the user to change themes/skins I don't want a hard-coded/static style... I want to reference the current skins CSS and apply the Header style to the first cell in each row. Is this possible? (makes the grid look like it has row headers but not really) Thanks in advance.
Mike
Top achievements
Rank 1
 answered on 21 Apr 2014
13 answers
1.3K+ views
I have a simple rad ComboBox with a value field and a text field.  I bind the combobox to a data source and this works fine.  Now I  want to highlight the selectedvalue.  But I cannot get this to work.  Here is my code:

<

Telerik:radComboBox id="cbPolicyAccountValueSource"

DataTextField="value"

DataValueField="key"

runat="server">

</Telerik:radComboBox>

cbPolicyAccountValueSource.DataSource = LifePolicyAccountValue.PolicyAccountValueSources

cbPolicyAccountValueSource.DataBind()


Dim

PolicyAccountValueSourceEnumId As Object = DataBinder.Eval(DataItem, "PolicyAccountValueSourceEnumId")


cbPolicyAccountValueSource.SelectedValue =

CInt(PolicyAccountValueSourceEnumId)


If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected.  But it is not.  No item is selected.

What am I doing wrong?

Thanks,
Bob

Shinu
Top achievements
Rank 2
 answered on 21 Apr 2014
1 answer
642 views
Hi all,

I am trying to use the component AutoCompleteBox with a local Webservice. But I got an issue.

So I run Fiddler webdebug, and I can see an error 500, in the detail, I saw:

POST http://localhost:49257/agent/Ws/_WS_SearchCity.asmx/GetCompanyNames HTTP/1.1
Accept: */*
X-Requested-With: XMLHttpRequest
Content-Type: application/json; charset=utf-8
Referer: http://localhost:49257/agent/AcquereurAction.aspx?aID=8&sID=2c0d3ed4-4d34-4ce0-b437-70cf387c56e2
Accept-Language: fr-FR
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Host: localhost:49257
Content-Length: 122
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=pdwak0ep3ear4yj3nzsvv2ae

{"context":{"Text":"puteaux","MaxResultCount":-1,"IsCaseSensitive":false,"ClientData":"ClientData_Passed_To_The_Service"}}



And the detail is:

Server Error in '/agent' Application.Unknown web method GetCompanyNames.
Parameter name: methodName Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Unknown web method GetCompanyNames.
Parameter name: methodName

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
Stack Trace: 

[ArgumentException: Unknown web method GetCompanyNames.
Parameter name: methodName]
System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) +216
System.Web.Script.Services.RestHandler.CreateHandler(WebServiceData webServiceData, String methodName) +63
System.Web.Script.Services.RestHandler.CreateHandler(HttpContext context) +298
System.Web.Script.Services.RestHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +185
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +119
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +226
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +145
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155






However, my code folow this sample


http://www.telerik.com/help/aspnet-ajax/autocompletebox-databinding-webservice.html













Michel
Top achievements
Rank 1
 answered on 19 Apr 2014
3 answers
88 views
Hi,

I need to emulate the expand node by lod on demand through js or vb.net code.

Could you help me?


Thanks,
Marcos
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
102 views
If I have multiple Maximized radwindows opened, it seems setActive no longer works.  Is there a way to make the desired maximized rad window on top via client API?

thank you!
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
245 views
Is there any way for validating the filename on clientside?

I need to upload an specific filename, so If the filename isnt the one is required the upload process must stop, avoiding the bandwith consume.

How can I do this?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
100 views
I have constructed a treeview with treenode.
I have set navigateURL of treenode as follows :
node.navigateURL = string.Format(@"javascript:alert('hello');");

When I click on treenode, the javascript in NavigateURL is executed twice. Il displays the alert 2 times.
Normally, it should display the alert only 1 time.

In my project, I have set navigateURL to load a page. Since it loads the same page 2 times, I have performance issue.
Can u tell me why the navigateURL is called twice ?
What to do so that my treenode calls navigateURL only once?
Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
174 views
Hi,


Was wondering if there was something i hadn't implemented properly perhaps.



I've got a radcombobox populated with countries. I have markfirstmatch
set to true, and allowcustomtext set to false, and i want them to chose
an item in the list.



This works fine, however, its not as efficient as perhaps i would like
it to be. For example, United Arab Emirates, United States , and United
Kingdom. I start typing United, but after that it jumps straight to the
first one(united arab emirates) in the list with united, and then won't
allow me to add a space and continue typing. I'd like to be able to type
in the full country if i desire.

Thanks,
Santhosh
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
2 answers
109 views
Hi,

We upgraded our Telerik for ASP.NET AJAX from 2013 Q1 to 2013 Q3.  After we published this new version to our client, the grid in some pages can't show.  The grid control is disappeared.  Also, we found that in Server's Event Log, the following error was occurred.  
*** However, this error did not occurred in all client PC, only some of them which include Window XP with IE 7 and Windows 7 with IE10.

The description for Event ID 0 from source ASP.NET 4.0.30319.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Exception Type: System.ArgumentException
Exception: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Source: 
Stack Trace: 
   at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
   at System.Web.UI.WebControls.HiddenField.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


the message resource is present but the message is not found in the string/message table




Thanks!
Emily
Kyle Russell
Telerik team
 answered on 18 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?