Click here to Skip to main content
15,903,203 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: GRID VIEW ISSUE Pin
Arindam Tewary20-Apr-10 22:42
professionalArindam Tewary20-Apr-10 22:42 
Questionreg image wen specified in table Pin
sowjanya320-Apr-10 19:06
sowjanya320-Apr-10 19:06 
AnswerRe: reg image wen specified in table Pin
Viral Upadhyay20-Apr-10 19:23
Viral Upadhyay20-Apr-10 19:23 
GeneralRe: reg image wen specified in table Pin
sowjanya320-Apr-10 19:52
sowjanya320-Apr-10 19:52 
GeneralRe: reg image wen specified in table Pin
sowjanya320-Apr-10 20:01
sowjanya320-Apr-10 20:01 
GeneralRe: reg image wen specified in table Pin
sowjanya320-Apr-10 20:10
sowjanya320-Apr-10 20:10 
AnswerRe: reg image wen specified in table Pin
manoj_mishra21-Apr-10 0:55
manoj_mishra21-Apr-10 0:55 
QuestionGridDataitem retrival issue Pin
mark_me20-Apr-10 15:25
mark_me20-Apr-10 15:25 
Hi,
I have an editformtemplate in a grid. The edit form contains 2 radiobuttons along with other controls. During itemdatabound , i convert the values of this column in grid to yes/no. Now on itemdatabound , when the form goes into edit mode i want to get the yes/no value and after converting to true/false want to populate radiobuttons. I am having problem retrieving the Cell data from the grid in edit mode. The exception is:

Telerik.Web.UI.GridNotSupportedException: Item in insert mode does implement indexer only when the edit form is autogenerated at Telerik.Web.UI.GridEditFormInsertItem.get_Item(String columnUniqueName)

Code:
'ItemDatabound code snippet


	Select Case e.Item.ItemType

                    Case Telerik.Web.UI.GridItemType.Item, GridItemType.AlternatingItem

                        Dim item As Telerik.Web.UI.GridDataItem = e.Item
                        'display Yes/No instead of flag 1,0
                        If CType(item("IsNewProduct").Text, Boolean) = False Then
                            item("IsNewProduct").Text = "NO"
                        Else
                            item("IsNewProduct").Text = "YES"
                        End If



                    Case GridItemType.EditFormItem 'inside template edit form 

                        If e.Item.IsInEditMode Then

                            'populate controsl on  template edit form
                            Dim item As Telerik.Web.UI.GridEditableItem = e.Item
                            Dim editFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem)

                            'Below line throws error, i am trying to retrieve yes, no and chose the correct radiobutton accordingly
                            Dim IsNewProductValue As String = CType(item("IsNewProduct").Text, String) 
                           'Exception is : Telerik.Web.UI.GridNotSupportedException: Item in insert mode does implement indexer only
			' when the edit form is autogenerated at Telerik.Web.UI.GridEditFormInsertItem.get_Item(String columnUniqueName) 


i have tried setting item as

Dim editFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem)
Dim item As Telerik.Web.UI.GridEditableItem = Ctype(editFormItem.ParentItem,GridDataItem)

but this also didnt work

Please provide help in this regard. Thanks ...

Regards
AnswerRe: GridDataitem retrival issue Pin
Arindam Tewary20-Apr-10 22:32
professionalArindam Tewary20-Apr-10 22:32 
NewsWindows Azure Free 1 week pass - 19 to 26 April Pin
GoAzure20-Apr-10 11:32
GoAzure20-Apr-10 11:32 
RantRe: Windows Azure Free 1 week pass - 19 to 26 April Pin
Rutvik Dave21-Apr-10 5:23
professionalRutvik Dave21-Apr-10 5:23 
GeneralRe: Windows Azure Free 1 week pass - 19 to 26 April Pin
GoAzure22-Apr-10 9:34
GoAzure22-Apr-10 9:34 
GeneralRe: Windows Azure Free 1 week pass - 19 to 26 April [modified] Pin
GoAzure3-May-10 9:57
GoAzure3-May-10 9:57 
QuestionForce a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 6:29
PDTUM20-Apr-10 6:29 
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
daveyerwin20-Apr-10 6:50
daveyerwin20-Apr-10 6:50 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 7:02
PDTUM20-Apr-10 7:02 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
Not Active20-Apr-10 7:20
mentorNot Active20-Apr-10 7:20 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 7:39
PDTUM20-Apr-10 7:39 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
Not Active20-Apr-10 8:44
mentorNot Active20-Apr-10 8:44 
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 9:26
PDTUM20-Apr-10 9:26 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
daveyerwin20-Apr-10 7:26
daveyerwin20-Apr-10 7:26 
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 9:27
PDTUM20-Apr-10 9:27 
Questionwhen checkboxes is selected the data should be store in two tables Pin
developerit20-Apr-10 3:16
developerit20-Apr-10 3:16 
AnswerRe: when checkboxes is selected the data should be store in two tables Pin
Brij20-Apr-10 3:30
mentorBrij20-Apr-10 3:30 
AnswerRe: when checkboxes is selected the data should be store in two tables Pin
Ashfield20-Apr-10 9:19
Ashfield20-Apr-10 9:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.