Javascript - RadComboBox OnClientItemsRequested Not Firing?

Jan 18, 2011

Is there anything about my code below that would prevent the client event "OnClientItemsRequested" from firing? I have a couple RadComboBox elements on a page that sometimes get into a state where they load nothing and don't fire the "OnClientItemsRequested" event. Is there anything I could do to FORCE this event to fire?

<telerik:RadComboBox
ID="SomeFilter"
runat="server"
Height="230px" Width="300px" style="margin-bottom:5px"

[Code]....

View 2 Replies


Similar Messages:

Javascript To Set An Selected Index For RADcombobox To 0?

Aug 23, 2010

need javascript to set an selected index for RAD combobox to 0

View 2 Replies

C# - How To Add Default Value To A RadComboBox

Jan 13, 2011

I am trying to add an extra item to my WCF service. Here is my code. I have a code which gets the values from the database. I would like to add default item 'All' to array. Here is my WCF code.

RadComboBoxData result = new RadComboBoxData();
var listView = new listTypedView();
//In case the user typed something - filter the result set
string text = String.Concat("%", context.Text, "%");
if (!String.IsNullOrEmpty(text))
[code]...

View 2 Replies

ReDatabind On RadCombobox With Ajax?

Jun 9, 2010

So I've been moving a lot of stuff into a webservice because it makes the whole thing make more sense to me personally. Also makes AJAX easier for me. Right now the user will say they want to save a new contact somewhere then, through the webservice, they are added to a database and that call returns the new primary key so that I can change the RadComboBox automatically to this new record. However I can't seem to find a way to re-bind the combo box to the database so that I can correctly set the selected value. Does anyone have any good advice on how to do this? Should I not even be using the RadCombobox? (preferably like an answer as the whole things stands but I welcome some good alternatives to the combobox)

View 1 Replies

Updating The Datalist In A RadComboBox?

Jun 10, 2010

I'm just struggling with a lot of little things in the web app so I'm checking up with all kinds of stuff to make sure i'm not breaking it cause of stupid problems.At some point in my web app (trying to keep it mostly Asynchronous) I have to update the list in my RadComboBox because something was added. Do I just need to call RadComboBox.DataBind() again? Since I don't explicitly use its datasource(I do it in the manual insert using a string fashion) object to insert my new record do I need to tell that to update? The list just doesn't seem to update when i just call databind so I feel like i need to have the datasource recheck for entries or SOMETHING

View 1 Replies

Javascript - Jquery Hover() Not Firing?

Jan 20, 2011

I have a ASP.NET user control with the below markup:

<div>
<script id="myTemplate" type="text/x-jquery-tmpl">
<table id="t1"><tr>...<td class="myclass"><span>First Name:</span></td>...< r> < able>
</script>
<table id="t2"><tr>...<td class="myclass"><span>First Name:</span></td>...< r> < able>
<div>

I want to fire the hover() for all classes with class="myClass". I have placed the below code:

$(document).ready(function() {
$(".myClass").hover(
function() {
alert('in...');
},
function() {
alert('out...');
});
}

The problem is .hover() fires for td element in table "t2" but not for "t1".

View 3 Replies

Javascript - UI Confirmation Not Firing The Event

Feb 13, 2011

I am using jQuery confirmation box within my listView and the confirmation box displayed with the user clicks delete. The problem that I am faced with, is that when the user clicks OK it, the lvAlbums_ItemDeleting event is not fired.

Below is the .aspx code:

<link href="jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="jQuery/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
<script src="https://www.google.com/jsapi?key=" type="text/javascript"></script>
<script type="text/javascript">
google.load("jquery", "1");
google.load("jqueryui", "1");
</script>
<script type="text/javascript">
$().ready(function () {
$('#dialogContent').dialog({
autoOpen: false,
modal: true,
title: "MySql Membership Config Tool",
width: 300,
height: 250
});
});
function rowAction(uniqueID) {
$('#dialogContent').dialog('option', 'buttons',
{
"OK": function () { __doPostBack(uniqueID, ''); $(this).dialog("close"); },
"Cancel": function () { $(this).dialog("close"); }
});
$('#dialogContent').dialog('open');
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="thumbs">
<asp:ListView ID="lvAlbums" runat="server" GroupItemCount="15" DataKeyNames="album_id">
<LayoutTemplate>
<table id="groupPlaceholderContainer" runat="server" border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; width: 100%;">
<tr id="groupPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<ItemTemplate>
<div>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "ThumbNail.ashx?ImURL=/uploads/"+Eval("photo_file_name") %>'
Width="130" Height="150" BorderStyle="None" />
<asp:Label ID="lblPhotoTitle" runat="server" Text='<%# Eval("album_name") %>' CssClass="photoTitle"></asp:Label>
<br />
<asp:Button ID="btnDeleteAlbum" runat="server" Text="Delete Album" Width="144px" OnClick="lvAlbums_ItemDeleting" OnClientClick="javascript:return rowAction(this.name);"
CommandName="Delete" />
</div>
</ItemTemplate>
</asp:ListView>
</div>
<div class="pager">
<asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvAlbums" PageSize="12">
<Fields>
<asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
ShowLastPageButton="false" ShowNextPageButton="false" ButtonCssClass="first"
RenderNonBreakingSpacesBetweenControls="false" />
<asp:NumericPagerField CurrentPageLabelCssClass="current" NextPreviousButtonCssClass="next"
NumericButtonCssClass="numeric" ButtonCount="10" NextPageText=">" PreviousPageText="<"
RenderNonBreakingSpacesBetweenControls="false" />
<asp:NextPreviousPagerField ShowFirstPageButton="false" ShowPreviousPageButton="false"
ShowLastPageButton="true" ShowNextPageButton="true" ButtonCssClass="last" RenderNonBreakingSpacesBetweenControls="false" />
</Fields>
</asp:DataPager>
</div>
</div>
<div id="dialogContent">
<h3>confirm</h3>
<p>Click ok to accept</p>
</div>
</form>
</body>
Firebug throws the following error:
__doPostBack is not defined
[Break On This Error] "OK": function () { __doPostBa...ID, ''); $(this).dialog("close"); },

I have spent days looking at different jQuery confirmation box examples but this is the best I can do. Ideally I would want to be use http://jqueryui.com/demos/dialog/#modal-confirmation within gridviews, dataViews and ListViews but can't find examples which exactly provide steps to follow.

View 1 Replies

Javascript Function Is Not Firing From The Code Behind?

Feb 24, 2010

I have a javascript function named as sss() . I want to call it from the code behind.

function sss() {
$("#div-TableContent").show("slow");
alert("its Works");
};

I used this code

Private Sub dataGridView_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles dataGridView.RowEditing
If (Not ClientScript.IsStartupScriptRegistered("sss")) Then
Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "sss();", True)
End If
End Sub

but it is not firing when the grid is in the ajax update panel. Why?

View 2 Replies

Web Forms :: __doPostBack Not Firing In Javascript?

Jun 17, 2010

I am raising an event from the javascript function using the below code.

javascript:__doPostBack('<%=lnkSaveBtn.UniqueID %>','');

The event fires when using the below URL

http://localhost:2000/myProjectName/Home.aspx

But when i deploy the project on the production server, it does not raise the event although i have checked that the function getting called but the event is not raised.

In short

* javascript:__doPostBack('<%=lnkSaveBtn.UniqueID %>',''); in javscript works using http://localhost:2000/myProjectName/Home.aspx

*javascript:__doPostBack('<%=lnkSaveBtn.UniqueID %>','');not works when using http://machinename/myProjectName/Home.aspx

I have tried using javascript:__doPostBack('<%=lnkSaveBtn.ClientID%>',''); but still does n't work.

View 6 Replies

C# - Telerik RadComboBox Find Returns Null?

Nov 1, 2010

why the below javascript code always returns null (mean alert) ?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
<telerik:RadComboBox ID="RadComboBox1" runat="server">
</telerik:RadComboBox>
</div>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
var combo = $find("<%= RadComboBox1.ClientID %>");
alert(combo);
</script>
</telerik:RadCodeBlock>
</form>
</body>
</html>

View 2 Replies

Bind RadcomboBox With Multiple Columns From Datatable?

Feb 8, 2011

I would like to bind 'Id', 'Name' and 'Email' from DataTable to RadComboBox. It's possible with ItemTemplate. But I don't want to display 'Email' column in the RadComboBox. I want display 'Email' in the label when the selectedIndexChanged. Is this possible?

View 1 Replies

RadComboBox EmptyMessage Not Showing On Initial Load?

Jan 11, 2011

For some reason my RadComboBox "EmptyMessage" is not showing on the initial load of the page but it does after I focus and blur out of the control. How can I force my "EmptyMessage" to show by default?

My .aspx is as follows:

<telerik:RadComboBox
ID="SomeFilter" runat="server"
EmptyMessage="Choose..."
OnClientSelectedIndexChanging="OnClientSelectedIndexChanging"

[Code].....

My combobox defaults to "Test1" by default instead of "Choose...". Once I open and close the combobox, however, the default changes to "Choose...".

View 1 Replies

Javascript - Click() Firing Multiple Times?

Aug 11, 2010

I am using a document.getElementById("val").click() to invoke a click event, but it keeps firing multiple times.

Here I add the eventHandler

try {
//add mousedown event handler to navigation buttons
addEventHandler(oPrevArrow, "mousedown", handlePrevDayClick);
addEventHandler(oNextArrow, "mousedown", handleNextDayClick);
addEventHandler(oLogout, "mousedown", handleLogoutClick);
}
catch (err) {
}

In the click event i am performing a "auto click"

function handleNextDayClick(e) {
e = e || window.event;
stopEvent(e);
document.getElementById("btn_nextday").click();
}

NB: the button that is auto-clicked calls a method in the ASP.NET Code-Behind

View 2 Replies

JavaScript Function In Linkbutton Not Firing In FireFox Browser?

Jan 20, 2010

when i click the link button in Masterpage the window has to close. This function is working properly in IE but in fireFox or chrome or Safari Other than IE in all browsers postback is happening.

my code :

[code]....

View 1 Replies

JavaScript - Control Event Handler Not Firing On Postback?

Apr 12, 2010

I have a control which has an ImageButton which is tied to an OnClick event... Upon clicking this control, a postback is performed and the event handler is not called. AutoEventWireup is set to true, and I've double checked spelling etc.... We haven't touched this control in over a year and it has been working fine until a couple of weeks ago.

We have made changes to controls which load this control... so I'm wondering, what kind of changes could we have made to stop this event handler from being called? There is quite a bit of Javascript going on, so this could be the culprit too...

View 5 Replies

Jquery - Javascript Not Firing When Asp.net User Control Loads?

Mar 16, 2011

I am trying to fire a Javascript call when an ASP.net user control to an aspx page.
The Web site allows users to add user controls to a page (similar to adding a widget etc to a page like google widgets). But when the control is added the javascript does not fire, only if the page is refreshed will it fire the javascript. IF the next time the website is accessd and the controlis still there the javascript fires too.Do I need to use the RegisterClientScript method to register the call (setAutoTimer()) on the control load or OnPreRender event.In the User control I have this at the start of the ascx file:

[code]...

View 2 Replies

Javascript - .NET TextBox TextChanged Event Not Firing In Custom EditorPart

Jun 4, 2010

This is a classic sort of question, I suppose, but it seems that most people are interested in having the textbox cause a postback. I'm not. I just want the event to fire when a postback occurs.

I have created a webpart with a custom editorpart. The editorpart renders with a textbox and a button. Clicking the button causes a dialog to open. When the dialog is closed, it sets the value of the textbox via javascript and then does __doPostBack using the ClientID of the editorpart.

The postback happens, but the TextChanged event never fires, and I'm not sure if it's a problem with the way __doPostBack is invoked, or if it's because of the way I'm setting up the event handler, or something else. Here's what I think is the relevant portion of the code from the editorpart:

protected override void CreateChildControls()
{
_txtListUrl = new TextBox();

_txtListUrl.ID = "targetSPList";[code].....

View 1 Replies

Server Validate RadComboBox With Load On Demand With Custom Text Is True?

Feb 2, 2011

How can I validate RadComboBox on the server side with LoadonDemand true and AllowCustomText is true? I have the following code but it doesn't validate correctly.

protected void RadComboBox1ServerValidate(object sender, ServerValidateEventArgs arg)
{
arg.IsValid = RadComboBox1.SelectedValue.Length > 0;
}

View 1 Replies

Forms Data Controls :: Javascript Delete Confirm Message Not Firing

Feb 11, 2010

you can see the page under development at http://job1data.com:8098/admin.aspx

it looks like its setup right, the page source has the correct message for each button for the javascript:return invoked with onclick, all that was setup in the onItemDataBound routine and the delete code behind is getting invoked, i just have a message there for now for testing, so it all seems to be there, but no confirm dialog box?

View 7 Replies

Web Forms :: Radio Button Checked Changed Event Not Firing With Onclick Javascript Function?

Dec 4, 2010

I have used below code.

<asp:RadioButton GroupName="grpAssoc" ID="rbtEvery" runat="server" Text="Everyone"
onclick="return doChangeAssociationType(0);" AutoPostBack="True" oncheckedchanged="rbtEvery_CheckedChanged"
/>
but oncheckedchanged="rbtEvery_CheckedChanged" not firing even javascript function returns true

How to fire the event?

View 2 Replies

Facebook Javascript SDK: Event Auth.sessionChange And Auto.logout Firing Only On Page Refresh?

Jul 30, 2010

I have an implementation for my website to have facebook single sign on, using their javascript sdk.The javascript adds the cookie and I deal with it fine.The question is related to when an user logs out of facebook, I would expect the auth.sessionChange or auth.logout events to fire, but that only occurs when the page is refreshed.As my implementation is done server-side, this means that after the user logs out of facebook they can access one secure page one more time before being properly logged out.Is this the normal case or do these events usually fire up straight away and I'm maybe doing something incorrect in configuration of the facebook app?

View 1 Replies

AsyncPostBack Firing On Child Textbox Trigger, But TextChanged Event Not Firing?

Jan 22, 2010

I'm sure I'm missing something extremely obvious here, but at this point I can't see it so I need the help.Anyway, I've got a repeater inside of an UpdatePanel. As of right now, I've stripped it down to this, just to try and isolate the problem:

[Code]....

Whether I add the handler during itemdatabound or I add the handler within the repeater itself, it doesn't seem to matter...the event itself doesn't fire. The AutoPostback itself seems to fire, but the event itself doesn't.

View 3 Replies

RadComboBox Load All Items On Load And Allow Filtering On Typing Of Text?

Jan 20, 2010

I use a RadComboBox And use the code exactly as same as mentioned at the site
http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

I use the code for "Server side" on the page mentioned in the above link.

However i am able to populate the values the first time the page is loaded but when i type in text it does not refine .Am i missing out on something ?

View 2 Replies

IHttpModule.BeginRequest Firing 2X, Application_BeginRequest Firing 1X?

Feb 2, 2010

I'm running VS 2008 and .NET 3.5 SP1.

I want to implement hit tracking in an HttpModule in my ASP.NET app. Pretty simple, I thought. However, the BeginRequest event of my HttpModule is firing twice for each page hit. The site is very simple right now...no security, just a bit of database work. Should log one row per page hit. Why is this event firing twice?

Moreover, IHttpModule.BeginRequest actually fires a different number of times for the first page hit when running for the first time (from a closed web browser)...3 times when I'm hitting the DB to provide dynamic data for the page, and only 1 time for pages where the DB isn't hit. It fires 2 times for every page hit after the first one, regardless of whether or not I'm touching the DB.

It's interesting to note that Application_BeginRequest (in Global.asax) is always firing only once.

View 3 Replies

C# Button Not Firing?

Sep 24, 2010

I have an ASP Button that I am creating in the CodeBhind of a Control. Here is the code:

Button SubmitButton = new Button();
protected override void CreateChildControls()
{
SubmitButton.Text = "Submit";
SubmitButton.Click += new EventHandler(SubmitButton_Click);
}
private void SubmitButton_Click(object sender, EventArgs e)
{
CustomTabs.CreateNewTab();
}

The Click event won't fire, though. It appears like it does a postback and never hits the event.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved