Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
foreach (GridColumn col in radGdSurvey.MasterTableView.Columns)  
            {  
                  
                if (col.ColumnType == "GridBoundColumn" && col.UniqueName == "JobsID")  
                {  
                    if (e.CommandName == RadGrid.EditCommandName)  
                    {  
                        (col as GridBoundColumn).ReadOnly = true;  
                        col.Visible = false;  
                    }  
                    else  
                    {  
                        (col as GridBoundColumn).ReadOnly = false;  
                        col.Visible = true;  
                    }  
                }  
            }       

Ok I hit my edit button on the grid, when it pops i want to make JobsID readonly in the edit form, the above does not work, I am do something wrong I just do not know what.  Any help would be great.

Thx in advance
Princy
Top achievements
Rank 2
 answered on 30 Mar 2010
2 answers
218 views
Hello Admin Telerik!
Can you help me!. I need to update a field in DataBase when user Drag-Drop column. The field will save order column in RadGrid...
(http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx)
Ex:
    order
      1
      2
      3
      4
I don't know how to do it.
Thank you! Have a good day!
peter huynh
Top achievements
Rank 1
 answered on 30 Mar 2010
4 answers
179 views
I have a grid that I want to allow the client to filter the data because it is a very clean solution.  The problem is that the grid is pulling all of the data over from the server into the .NET side and then applies the filtering accordingly.  The problem is that there is 10 years worth of history data that is pulling across the network and that is killing performance.  Is there any way to turn the filtering on to filter the data pulled from the server instead of pulling it all then filtering?  Or is there a better way to do this?
lkeel
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
143 views
Hello Sir,

I m trying two Plot Two Series Chart

Please see Attached Image. I want one series as a Bar chart and another series as a Line Chart.


Please Provide me Information i tried my best to achieve it.

I have done Blow Setting but it Not working .

<telerik:RadChart ID="RadChart2" runat="server" DataSourceID="LinqDataSource2"
            DefaultType="Line">
            <Series>
<telerik:ChartSeries Name="Series 1" Type="Line" >
                </telerik:ChartSeries>
                
                <telerik:ChartSeries Name="Series 2"  YAxisType="Secondary"   Type="Pie">
                </telerik:ChartSeries>
</Series>


Schlurk
Top achievements
Rank 2
 answered on 29 Mar 2010
2 answers
157 views
Hello

I have a problem with getting my edit mode in the grid working (the edit mode is in a custom usercontrol).
when i load the grid programmaticly in page_load everything works fine.
the problem begins when i want a button to create the grid, and give it the datasource.
when i press the button the grid shows up fine, and when i click the edit mode in a row, the grid just disappear.
if i refresh the page , the grid appear again with the edit control.

Please Help.

Thank Youy.
Myriam
Top achievements
Rank 1
 answered on 29 Mar 2010
0 answers
64 views
Did the GridItemEventArgs change for the edit click in the ItemDataBound event?  I copied some code from a project that was using 2009 Q3 and after a couple minor changes, it didnt work the same.  There is an ItemDataBound If statement that checks the e.Item type where it is of type GridEditFormItem (I beleive it uses GridEditableItem also in that project), but now in the 2010 Q1 version it seems to always be passing a GridDataItem (edit and insert clicks) 

Was there a change, or am I just misunderstanding what the GridItemEventArgs object type is supposed to be?



EDIT:  nm I am an idiot, my "minor changes" I replaced the editMode="InPlace" and it needs to be "EditForms" to pass the GridEditFormItem
Ryan
Top achievements
Rank 1
 asked on 29 Mar 2010
3 answers
143 views
2009.3.1210.35
My OnRowSelecting launches the URL contained in the row.   If I link contextual menu to it, it would execute RowSelecting then pop up the menu.  

Is there a way to determine that the Contextual Menu will be fired (or right click) in the OnRowSelecting event code so I can prevent the launch of the URL?
Lenny_shp
Top achievements
Rank 2
 answered on 29 Mar 2010
2 answers
87 views
I have created a custom module for the editor that allows me to insert a data figure.  What I want to insert is a custom HTML tag that is replaced at runtime (via regex) with content from the figure table.  Here is what I initially input...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</figure>  

The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506" />[Figure: This is a test figure title...] 
This causes my entire figure insert protocol to fail and the users now see '[Figure: This is a test figure title...]" instead of an image and a legend.  As far as I can tell the issue appear to be specific to IE as I was successfully working with this process in FF.

Is there any way I can turn off the auto-formatting that is happening?
The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

The Stormm
Top achievements
Rank 1
 answered on 29 Mar 2010
2 answers
64 views
I have created a custom module for the editor that allows me to insert a data figure.  What I want to insert is a custom HTML tag that is replaced at runtime (via regex) with content from the figure table.  Here is what I initially input...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</figure> 

The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506" />[Figure: This is a test figure title...] 

This causes my entire figure insert protocol to fail and the users now see '[Figure: This is a test figure title...]" instead of an image and a legend.  As far as I can tell the issue appear to be specific to IE as I was successfully working with this process in FF.

Is there any way I can turn off the auto-formatting that is happening?
The Stormm
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
238 views
Hello,
on my develop computer the program works (fine). the deployment-test fails with some errors in the ScriptResource. 
How can I find the reason - and get rid of the fault?

Thanks, 
Otto
The error- message are: 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.5.21022; InfoPath.2; SLCC1; .NET CLR 1.1.4322)
Timestamp: Mon, 29 Mar 2010 13:30:14 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970
Peter
Telerik team
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?