Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
277 views
Hi,

I have a website which i have added Blowery HTTPCompression to. This is a HTTPModule and will compress all the aspx, css and js files which are served up. It works very well with no problems. However it of course does not compress PageMethods JSON responses, for this i have tried to add the RadCompression HTTP Module to the site.

As soon as i have both modules added to the web config the session state breaks. For example i load the website up and at the first line instance where the Session is accessed an exception is thrown with the text below:

-------------------------------------------------------------------------------
System.Web.HttpException was unhandled by user code
  Message="Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\\<system.web>\\<httpModules> section in the application configuration."
  Source="System.Web"
  ErrorCode=-2147467259
  StackTrace:
       at System.Web.UI.Page.get_Session()
       at System.Web.UI.UserControl.get_Session()
       at Master.Page_Load(Object sender, EventArgs e) in c:\UKWrap\UI\RePublic\Master.master.cs:line 194
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

-------------------------------------------------------------------------------

Now if i run the site with only the RadCompression HTTP Module added then this error does not occur and the JSON responses from the PageMethods are compresed, BUT none of the standard .aspx, .css, and .js files are compressed.

And if i run the site with ONLY the Blowery HTTP Module added and not the RadCompression, then the site run and all the .aspx, .css, and .js responses are correctly compressed HOWEVER the JSON page method responses are not compressed.

Is RadCompression not compatible with other compression modules? And if not then why does it not seem to support compressing the .aspx, .css, .js files? If there is a way to use RAD compression to completely replace Blowery HTTP compression please let me know. I have read that RadCompression does not support IE6, if this is the case then it is going to be useless as a replacement for Blowery and i will need the two of them both running as HTTP modules.

Any ideas?

Thanks,

Paul
Rosen
Telerik team
 answered on 05 Mar 2009
1 answer
102 views
Can someone please tell me how to get embeded code to save when using the RadEditor WebPart.

I click the MediaManager toolbar button, then select a wmv, and can see the wmv playing whislt in edit mode. Then when I exit out of edit mode, the embed source code is stripped. I have added the following properties to the config.xml file:

<property name="AllowScripts">true</property>

 

<

 

property name="AllowSpecialTags">true</property>

Please note this is only for WebPart not replacing MOSS content editor (this works perfectly when I add the AllowSpecialTags attribute to the radeditor html replacement code)..

 

Stanimir
Telerik team
 answered on 05 Mar 2009
1 answer
89 views


Hello All,


                      In google like filtering when I call the ItemRequested event of the RadComboBox which is on the  second level I get an error such as :The target "ct100$ contentPlaceHolder1$RadGrid1$ct100$ct106$Detail10$ct102$ct102$RadComboBox1Franchisee" for the callback could not be found or didnot implement ICallBackEventHandler.

      So Please help me with this.It is very urgent.


Thanx in advance,
Ritzie
Yavor
Telerik team
 answered on 05 Mar 2009
2 answers
179 views
I need in my application to hide some columns in the grid.

How can I hide columns?

Christian
Christian
Top achievements
Rank 1
 answered on 05 Mar 2009
2 answers
82 views
Can you guide me for the possible ways of accessing all telerik controls from a different class  using Control Collection.?

i am trying to change all controls skin by this way .
 
Regards,
emrah
Top achievements
Rank 1
 answered on 05 Mar 2009
2 answers
125 views
Hi
I have a page with a Radgrid that allows multi selection. I have a button with I would like to have a confirm Dialogue on that when the user clicks yes on the confirm will call a VB procedure to manipulate records. At the moment the OnClick="ToPlanningBtn_Click" does not get exectuted when yes is clicked (it does nothing). I'm pretty new at this and the following code is based on advice from this formum. Clearly I am doing something wrong. I'm not sure if it relates to the __doPostBack function. Any help getting this working will really be great.

Regards
Mark

*Edit * LOL the topic should read Clicking yes does NOT work
My current Code :

script type="text/javascript">   
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007">             </telerik:RadWindowManager>
function ValidateFn()   
{   
    radconfirm("Send Selected Orders to Planning?", callbackFn);    
    return false;   
}   
function callbackFn(arg)   
{   
    //if the validation passes - 'simulate' the button's click   
    if (arg)   
        {   
      
           __doPostBack("<%= ToPlanningBtn.ClientID %>","");   
        }   
}   
                                                        </script> 

   <asp:Button ID="Button3" runat="server" Text="Send To Planning"                                                              OnClientClick="ValidateFn(); return false;" Visible="True" />                                                            <style type="text/css">                                                               .buttons                                                               {                                                                   display: none;                                                               }                                                           </style>                                                         <asp:Button ID="ToPlanningBtn"  runat="server" OnClick="ToPlanningBtn_Click"                                                             Text="Button"   CssClass="buttons" />
Mark
Top achievements
Rank 1
 answered on 05 Mar 2009
6 answers
194 views
I have a grid with filtering turned on.  All my filters work great except my date column.  Here is the column:

<telerik:GridDateTimeColumn DataField="MedicalRenewalDate" HeaderText="Renews"  
                    SortExpression="MedicalRenewalDate" UniqueName="column9"  
                    DataFormatString="{0:d}" FilterControlWidth="90px" PickerType="DatePicker"
                </telerik:GridDateTimeColumn> 

When I pick a date on the calendar and click the filter icon and choose a filter, a javascript error shows in the status bar that says the following:

Sys.Webforms.PageRequestManagerErrorException: Index (zero based) must be greater than or equal to zero and less than the size of the arguement list.  Code: 0.

Of course the filter doesn't take affect.

Anything I'm missing?


Shinu
Top achievements
Rank 2
 answered on 05 Mar 2009
1 answer
163 views
Hi there,
I am using RadGrid however, I am having difficulties to make it update the information of the Database.

The scenario I have is this:

I created a DataSource object and a class with the components (insert, select, delete and update)

[DataObjectMethod (DataObjectMethodType.Select)]
[DataObjectMethod (DataObjectMethodType.Insert)]
[DataObjectMethod (DataObjectMethodType.Update)]
[DataObjectMethod (DataObjectMethodType.Delete)]

I made reference to the component, and Select functions correctly, but not the other operations.

In a key MasterTableView registered: datakeynames = "id_menu_esquerdo" which is my primary key in the Database, but when I try to change something, nothing happens, what can be wrong?
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"  
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"  
        DataSourceID="ObjectDataSource1" GridLines="None"
<MasterTableView autogeneratecolumns="False" clientdatakeynames="id_menu_esquerdo"  
            datakeynames="id_menu_esquerdo" datasourceid="ObjectDataSource1"
<RowIndicatorColumn Visible="False"
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="False" Resizable="False"
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
    <Columns> 
        <telerik:GridBoundColumn DataField="id_menu_esquerdo" DataType="System.Int32"  
            HeaderText="id_menu_esquerdo" SortExpression="id_menu_esquerdo"  
            UniqueName="id_menu_esquerdo"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Nome_menu_esquerdo"  
            HeaderText="Nome_menu_esquerdo" SortExpression="Nome_menu_esquerdo"  
            UniqueName="Nome_menu_esquerdo"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="menu_esquerdo_link"  
            HeaderText="menu_esquerdo_link" SortExpression="menu_esquerdo_link"  
            UniqueName="menu_esquerdo_link"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="menu_esquerdo_ordem"  
            DataType="System.Int32" HeaderText="menu_esquerdo_ordem"  
            SortExpression="menu_esquerdo_ordem" UniqueName="menu_esquerdo_ordem"
        </telerik:GridBoundColumn> 
    </Columns> 
 
<EditFormSettings> 
<PopUpSettings ScrollBars="None"></PopUpSettings> 
</EditFormSettings> 
</MasterTableView> 
    </telerik:RadGrid> 

More...

[DataObjectMethod(DataObjectMethodType.Update)] 
        public static void AlterarItemMenuE(ItensMenu_E_Modelos ItensMenu) 
        { 
            using (SqlConnection conn = Banco.ObterConexao()) 
            { 
                conn.Open(); 
 
                using (SqlCommand cmd = new SqlCommand("UPDATE [tbl_web_MenuE] set Nome_menu_esquerdo = @Nome_menu_esquerdo, menu_esquerdo_ordem = @menu_esquerdo_ordem, menu_esquerdo_link = @menu_esquerdo_link WHERE id_menu_esquerdo = @id_menu_esquerdo", conn)) 
                { 
                    cmd.Parameters.AddWithValue("@id_menu_esquerdo", Convert.ToInt32(ItensMenu.id_menu_esquerdo)); 
                    cmd.Parameters.AddWithValue("@Nome_menu_esquerdo", Convert.ToString(ItensMenu.Nome_menu_esquerdo)); 
                    cmd.Parameters.AddWithValue("@menu_esquerdo_ordem", Convert.ToInt32(ItensMenu.menu_esquerdo_ordem)); 
                    cmd.Parameters.AddWithValue("@menu_esquerdo_link", Convert.ToString(ItensMenu.menu_esquerdo_link)); 
                    cmd.ExecuteNonQuery(); 
                } 
 
            } 
        } 

when I use the DataGridView's own VisualStudio everything works correctly, would help one to use the resources of the RadGrid
Best Regards
Yavor
Telerik team
 answered on 05 Mar 2009
1 answer
117 views
Hi,
I have a radmenu and a grid. After I clicked a item in menu I want to refresh grid. But  I want that only one item in menu refresh grid, not all.
I have:  ramAjaxManager.AjaxSettings.AddAjaxSetting(menu1, grid1, ralpLoadingPanel); => but in this case all menu refresh grid.
Any ideas?
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2009
3 answers
179 views

hi all,

i need to align the title of the dock from right that can support arabic language

i try put direction : rtl (right to left) in css file but dont change any thing

i need the title of the dock as following format

[ Corner-Image|CollapseCommand | Close                Title |Corner-Image ]

and the width of title must be as width of the zone we move dock to it

Petio Petkov
Telerik team
 answered on 05 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?