16,021,041 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 9644631 (Top 22 by date)
Member 9644631
6-Mar-13 6:33am
View
But I require that.. As it is the need of client
Member 9644631
1-Mar-13 9:17am
View
Is there any offline version.. so that i can easily share it with my group members..
It would be also great if u could provide me actual link.... I am confused as there are so many links...Thank you
Member 9644631
1-Mar-13 9:11am
View
I have a gridview and a treeview...
One div consists of treeview and the other one consists of gridview...
These two div's have to be placed adjacent to each other always...
When the number of columns are less the div's are displayed adjacent to each other..
But when the number of columns increase the div with gridview crashes below treeview...
I want it displayed adjacent to each other..
Member 9644631
28-Feb-13 23:21pm
View
I already have Microsoft Visual C# 2010 Express... Can i use that
Member 9644631
28-Feb-13 23:08pm
View
Will u please explain this a bit.. But this does not seem to be working with int and float...
Member 9644631
27-Feb-13 22:56pm
View
Ya that could be help... But it would be more helpful if i consider only those columns with same data types with one entered by user.. That is if user enters a number then consider only those columns with data type as float or int
Member 9644631
27-Feb-13 12:21pm
View
criteria = ViewState["Criteria"].ToString();
string selected = dropdownCriteria.SelectedValue;
string textEntered = searchBox.Value.ToString();
DataSet ds = new DataSet();
ds = (DataSet)ViewState["InitialData"];
DataView dv = new DataView();
dv = ds.Tables[0].DefaultView;
dv.RowFilter = selected + " like '" + textEntered + "%'";
reportGrid.DataSource = dv;
reportGrid.DataBind();
reportGrid.AllowPaging = false;
reportGrid.AllowSorting = false;
reportGrid.AutoGenerateDeleteButton = false;
reportGrid.AutoGenerateEditButton = false;
panelGrid.Update();
DataTable dt = new DataTable();
dt = dv.ToTable();
DataSet tempDS = new DataSet();
tempDS.Tables.Add(dt);
reportGrid.AllowPaging = true;
reportGrid.AllowSorting = true;
reportGrid.AutoGenerateDeleteButton = true;
reportGrid.AutoGenerateEditButton = true;
ViewState["CurrData"] = tempDS;
Member 9644631
26-Feb-13 10:38am
View
Can u please give me the links.. It would be great if u could.. Thanking you
Member 9644631
26-Feb-13 6:40am
View
<div id="reportDiv" style="padding: 1%; margin: 1%; float:left; text-align: center; position: fixed; min-width:50%; display:inline;
font-family: Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; overflow:auto; ">
It displayed properly.. However
Whenever i write display:inline and position:fixed together in style.. browsers scrolling functionality quits..
Member 9644631
26-Feb-13 5:19am
View
<div id="treeviewDiv" style="border-style: none ridge none none; border-width: 0% 0% 0% 0%; padding: 0% 5% 5% 1%; margin: 0% 5% 5% 1%; float:left; display:inline;min-width:25%; overflow:auto;
font-family: Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; border-right-color: #000000; position: relative;">
<div id="reportDiv" style="padding: 1%; margin: 1%; float:left; text-align: center; position: relative; min-width:50%; display:inline;
font-family: Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; overflow:auto; ">
Member 9644631
26-Feb-13 5:18am
View
Sorry.. This is not working
Member 9644631
26-Feb-13 4:04am
View
Unfortunately... No
Member 9644631
24-Feb-13 5:13am
View
I saw that..But i think it gives me the javascript file that has been used..
I mean i want how to use it in aspx...Can u please give an eg..
Member 9644631
24-Feb-13 3:02am
View
Yea... Used jquery.. But it does not work in updatepanels
Member 9644631
23-Feb-13 3:33am
View
I have a gridview which is dynamically loaded..
This gridview is placed inseide an updatepanel..
So i want to display a context menu on right click on a row of gridview with options like Edit and Delete...
But i m not able to display this menu after the update panel has been updated...
Member 9644631
19-Feb-13 12:29pm
View
When i run this the data gets displayed in gridview..Theres no issue here..
But context menu does not get displayed..
Instead the default context menu for the browser gets displayed..
It would be great it u could provide me with the actual snippet for using context menu with dynamic gridview with options like Edit and delete..
I have been trying this for a week now but with no success..
Thanking you..
Member 9644631
19-Feb-13 11:56am
View
Here is the snippet...
Data gets loaded properly in gridview on node click in treeview...
But context menu is not getting displayed on right click on gridview row..
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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 runat="server">
<title></title>
<script type="text/javascript">
function fnView() {
var hiddenField = document.getElementById("fldProductID");
document.getElementById("fldProductID").value = $("div").filter("[type=ContextMenu]")[0].id.replace("Menu", "");
document.getElementById("linkView").click();
$(document.getElementById("gvProducts")).load();
}
function fnDelete() {
var delText = "Are you sure you want to delete ID=" + $("div").filter("[type=ContextMenu]")[0].id.replace("Menu", "") + " ?";
var result = confirm(delText);
var hiddenDelCnf = document.getElementById("deleteConfirm");
hiddenDelCnf.value = result;
document.getElementById("linkDelete").click();
}
jQuery.fn.setEvents = function (e) {
var me1 = jQuery(this);
return this.each(function () {
var me = jQuery(this);
me.mouseup(function (e) {
if (e.which == 3) {
$("div").filter("[type=ContextMenu]").hide();
fnSetMenu(me.children(':first-child').text(), e.pageX, e.pageY);
window.oncontextmenu = function () {
return false;
}
}
});
});
};
function fnSetMenu(productID, left, top) {
if ($("#Menu" + productID).html() == null) {
var runAt = "\"server\"";
var id = "linkBtnDelete";
var deleteLink = "<asp:LinkButton ID=\"lnkBtnDelete\" OnClientClick=\"return confirm('Are you sure you want to delete?')\" OnClick=\"lnkBtnDelete_Click\" runat=" + runAt + ">Delete";
var strMenuHTML = "<div type=\"ContextMenu\" id=\"Menu" + productID + "\" class=\"contextMenuClass\" mouseonmenu=\"1\"><table style='width:100%;'><tr><td önclick=fnView()>View</td></tr><tr><td önclick=fnDelete()>Delete</td></tr></table></div>";
$("body").append(strMenuHTML);
$.post("MenuHandler.ashx", {}, function (response) {
$("#Menu" + productID).html(response);
});
}
$("#Menu" + productID).css({ top: top + "px", left: left + "px" }).show();
}
$(document).ready(function () {
$("#gvProducts tr.ShowContext").setEvents();
}
);
$(document).click(function (e) {
$clicked = $(e.target);
if (!($clicked.parents().hasClass("ShowContext") || $clicked.hasClass("contextMenuClass") || $clicked.parents().hasClass("contextMenuClass"))) {
$("div").filter("[type=ContextMenu]").hide();
}
});
//function resetDoc() {
// $("#gvProducts tr.ShowContext").setEvents();
// }
function pageLoad(sender, args) {
alert("Partial Postback occur");
if (args.get_isPartialLoad()) {
jQuery.fn.setEvents = function (e) {
var me1 = jQuery(this);
return this.each(function () {
var me = jQuery(this);
me.mouseup(function (e) {
if (e.which == 3) {
$("div").filter("[type=ContextMenu]").hide();
Member 9644631
19-Feb-13 11:07am
View
yep...
Member 9644631
18-Feb-13 12:07pm
View
I have not found anything..
I am able to display edit button and also able to accept changes from user..
But i m not able to display the update button to the user...
Member 9644631
9-Feb-13 2:57am
View
This button is not showing in my gridview..
Do i need to add anything in codebehind..
Member 9644631
6-Feb-13 6:28am
View
Thanks for the help...But there is still one problem...
When i try to open it it gives me the error...
The file name you are trying to open is in a different format than specified by extension....
Member 9644631
6-Feb-13 2:36am
View
Both ways..
Depending upon the the users choice....
Show More