Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi all,
 
May be my previous question is not so specific so that I didn't get any answer.
 
I have made a gridview in my aspx page which shows result of students.
 
I have put calender extender in all columns in edit item template so that the user can change the date.
 
In the item template I put a label which shows dates from database.
 
In that gridview's row data bind event I have put code something like if there is some test in that month then only it will shows the date.
 
I used the command field to edit the date.
 
Now the problem is when I click the edit link it provides calender for all columns in spite of the pericular rows which have test.
 
Can any one suggest me how can i do this.
Posted 23-Nov-12 3:16am
Hiral21336
Comments
Devang Vaja at 23-Nov-12 8:24am
   
Now the problem is when I click the edit link it provides calender for all columns in spite of the pericular rows which have test????
what is meaning of that...hmm Hiral..!!??
Hiral21 at 23-Nov-12 8:27am
   
Exactly...
Hiral21 at 23-Nov-12 8:45am
   
I don't want calender for all columns.
I just want columns where there are some date.
It can be possible that the date field will be empty too..
So I just want calender for the columns which have date..
Devang Vaja at 23-Nov-12 8:52am
   
see ajax is client side technology once u have put all calenders in form it will be open always after u put so better option is show only that columns which have date values other columns which have not value hide it..i dont know what's ur logic but i want to tell u one thing that
WE CANT CATCH AJAX OBJECT AT SERVER SIDE
other thing what u can do is make client side event and in that call server side event see this link..
http://forums.asp.net/p/1610663/4116138.aspx
Hiral21 at 26-Nov-12 6:09am
   
Thanks Devang...I solved it..
Devang Vaja at 27-Nov-12 4:38am
   
How u solve Yar...Hiral???

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hey try to do this thing using Hover Menu Extender[^]
  Permalink  
Comments
Hiral21 at 23-Nov-12 8:29am
   
@Krunal R Nice Idea..I must try...It can be helpful..
Thanks..
Krunal R at 23-Nov-12 8:34am
   
Thanks Hiral.. :) Good Luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mathew Soji 334
1 Maciej Los 295
2 BillWoodruff 290
3 Afzaal Ahmad Zeeshan 257
4 DamithSL 225
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,045


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100