User Profile & Activity

ca Member
Page
of 5
Posted: July 20, 2010 1:41 AM

hi,

 

please go through the code i have mentioned above. This is exactly how mentioned in your sample. In my case also i am calling it from javascript (clear from my first code snippet).

 

My problem is if i specify serviceurl page, it continuesly loading that page. And this is a overhead for me. If i did't mention the serviceurl , i am getting the popup box with warning  "Serviceurl has not been specified. the control is running in disabled mode " . But my scenario is working even if i am not mention the serviceurl.

is there any way to avoid this warning message?

 

thanks and regards

ca

Posted: July 18, 2010 4:48 AM

hi,

 

did you check it with grouped grid.

I am getting incorrect answer, because my grid is grouped by date field. the row count is not coming correctly .

 

i also tried the

             var grid = ISGetObject("WebGrid1");             
             var selectedObject = grid.GetSelectedObject();              
                          
             if (selectedObject != null)
             {                		
                
                var selectedRow = selectedObject.ToRowObject(); 
                var pos= selectedRow.Position ;
                alert(pos);
                var rowEl = grid.RootTable.GetRow(pos).RowElement;
                 for (var i = 1; i < rowEl.cells.length; i++) {

                    alert(rowEl.cells[3].style.backgroundColor)
                  }
              }

but here i am getting incorrect row position. so incorrect background

 

please help me.

 

 

thanks and regards

ca

Posted: July 14, 2010 12:54 AM

hi,


thank you for your hint. i have successfull found out the solution using the OnCellClick client side event

and with following code

function DoCellClick(gridId, tblName, rowIdx, cellIdx, cellElm)
{
alert(cellElm.style.backgroundColor);
return true;
}


Posted: July 14, 2010 12:32 AM
 

thank you for your reply. here i need to get the backgroud color from OnCellClick event . Because my scenario is something like this. In my webgrid , i am keeping one cell as a hyperlink to some pdf file. And i want to check the backround color and change the color only when user click on that particular cell.



thanks and regards

ca

the example you provided not contain the option to upload image from local computer. I added the extra needed step . Everything working fine. but some times i am getting the same error.


Is there any limit on the size of the image uploading. I got error for image  of size less than 150 kb. Is there any naming rule for the image. I try to upload image whos name contains alphabet , digit and under score.

The stange thing is , i am not getting error all the time.  It happens only some times


thanks and regards

ismail
Posted: June 30, 2010 3:54 AM

hi,


thanks for yor quick response.

I used "refreshall()" to refresh the grid from client side.

I solve the problem by using "refresh()" to refresh grid.



Posted: June 29, 2010 3:42 AM

hi,


i have solved the probelm, by changing the defaultstylemode from win7 to Elegant.

The problem still exist for win7 style.



Posted: June 20, 2010 10:25 AM

can you please send me one sample file. or link to sample....





thanks and regards

ca

Posted: June 20, 2010 3:29 AM

As you asked, here i am attaching four file with this message. The files are as given belo0w,


1. before-image : this is how my original html look when open in browser.

2. after-image : this is how the html file look in browser after just saving to new file using webeditor.

3. before-page : my original html file.

4. after-page : the html page after saving using webeditor.


Here is the some of information which my help you to trouble shoot,

1. i am using Firefox 3.6.3 browser

2. How i load content from file and how i save content to file is clearly mentioned in the previous post.

3. i have noticed one extra line of as given below, if i remove it manually, i am getting page perfectly. This line of html code is also mentioned in the previous post.

4. If i open the html page directly by double clicking , iam not getting any border. But everything coming if i host it in iis or running inside a webproject.


thanks and regards

ca

Posted: June 14, 2010 9:01 AM

Hi Handy Surya



As you said, i have given the request. Can you please tell me. is this feature added in R2 relase. If so please send me one example.


thanks and regards


ca


All times are GMT -5. The time now is 1:20 AM.
Previous Next