Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
321 views
Hi All,

I have a custom web part which includes RAD Chart control.
This web part is used in WSS 3.0.

There are following two methods available in RAD Chart to create chart's temp images.

1. Use Session
2. Use Folder

First method can not be used in my case because sessions are disabled in WSS 3.0 by default and I dont want to enable it.

So I used second method in my RAD Chart.

Please refer the following code for details:

*************************************************************************

// Create chart object.

 

RadChart radChartObj = new RadChart();

 

radChartObj.EnableViewState =

false;

 

radChartObj.UseSession =

false;

 

radChartObj.TempImagesFolder = 

"~/_layouts/Documenta/Reports/TempFiles";

 

radChartObj.ID =

"radChart";

 


*************************************************************************

If I log in to my SharePoint site with the user who has 'Write' permissions on 'TempFiles' folder, then chart is created successfully.
But If I log in with user who does not have 'Write' permissions on 'TempFiles' folder, then RenderContents() function of web part throws exception.

Exception details:
A generic error occurred in GDI+. Check the folder specified in the TempImagesFolder property of the control. Current value is "/_layouts/Documenta/Reports/TempFiles". The folder should exist and must have been granted write permissions for the ASPNET user.
---------------------------------------------------------------

My web application's pool identity is Network Service.
I assigned 'Write' permissions on 'TempFiles' folder for Network Service and ASPNET user.
But behavior remains same. RenderContents() function throws an exception.

Please suggest a solution so that I don't need to assign 'Write' permission for each user of SharePoint site.

Please let me know if I can use SPSecurity.RunWithElevatedPrivileges in this case. It is just an idea. May be it is not valid in this case.

Please let me know your comments.
It is really urgent.

Thanking you in anticipation.
Bernd Brotter
Top achievements
Rank 1
 answered on 03 May 2010
2 answers
235 views
Hi All,

I have a custom web part which includes RAD Chart control.
This web part is used in WSS 3.0.

To create chart's temp images, I am using temp folder created at path "~/_layouts/Documenta/Reports/TempFiles".

Please refer the following code for details:

*************************************************************************

// Create chart object.

 

RadChart radChartObj = new RadChart();

 

radChartObj.EnableViewState = false;

 

radChartObj.UseSession = false;

 

radChartObj.TempImagesFolder = "~/_layouts/Documenta/Reports/TempFiles";

 

radChartObj.ID = "radChart";

 

 

*************************************************************************

As per Telerik documentation, web application should have 'write' permissions to the temporary folder.
Please refer to the below link:
http://www.telerik.com/help/aspnet-ajax/advancedsession.html

My web application's pool identity is Network Service.
So, I assigned 'Write' permissions on 'TempFiles' folder for Network Service and ASPNET user.


If I log in to my SharePoint site with the user who has 'Write' permissions on 'TempFiles' folder, then chart is created successfully.
But If I log in with user who does not have 'Write' permissions on 'TempFiles' folder, then RenderContents() function of web part throws exception.

Exception details:
A generic error occurred in GDI+. Check the folder specified in the TempImagesFolder property of the control. Current value is "/_layouts/Documenta/Reports/TempFiles". The folder should exist and must have been granted write permissions for the ASPNET user.
---------------------------------------------------------------


Please suggest a solution so that I don't need to assign 'Write' permission for each user of SharePoint site.

Please let me know your comments.
It is really urgent.

Thanking you in anticipation.

Regards,
LJ
Bernd Brotter
Top achievements
Rank 1
 answered on 03 May 2010
0 answers
76 views
Hello,

I'm using RadPanelBar and have defined some item in it (RadPanelItem). For these items I need to customize the band as follows:

1. Hide the default expaned/collapsed image (which is shown in the right side of the band). ?

2. I'm showing my own images for expaned / collapsed states as below, and also I want to set "uparrow.gif" as default image for the band ,how to set a default image for the band  ?

<telerik:RadPanelItem Text="Employees" Value="emp" Expanded="true" ExpandedImageUrl="uparrow.gif" SelectedImageUrl="downarrow.gif">
  <telerik:RadGrid ID="grdEmp" GridLines="None" runat="server" AllowAutomaticDeletes="True"  EnableViewState="true"
                                                            AllowMultiRowSelection="true" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                                                            AllowPaging="false" Skin="Telerik" AutoGenerateColumns="False" DataSourceID="emp"
>

3. in another case , i have a radgrid under the radpanelitem, and want to set the number of records of the grid to be displayed in the radpanelItem band on the right hand side , for example 14500 item(s)

Kindly suggest.

Regards,



Hema Raju
Top achievements
Rank 1
 asked on 03 May 2010
4 answers
125 views
Hi,
    I am using Radgrid with GridTemplateColumn which is a textbox.
My requirement is when I enter Insert mode, i want to make all the textboxes in the grid readonly.
Please let me know how to do this?
Swapna M
Top achievements
Rank 1
 answered on 03 May 2010
2 answers
196 views
Dear telerik team
I use RadcomboBox and RadAjaxManager. RadcomboBox SelectedIndexChanged event. There is a problem if RadcomboBox RadAjaxManager using the commands in the SelectedIndexChanged method is not implemented correctly. And if you do not use RadAjaxManager, then use normally.
I started the project attached for your reference and help me solve the problem.
Sincerely

File :
http://www.mediafire.com/file/nb3gj4mytqz/AjaxTest.rar
Phuoc Nguyen Thanh
Top achievements
Rank 1
 answered on 03 May 2010
1 answer
100 views

when i uses InPlace Edit Mode
the listbox controls in gird in edit and insert mode doesn't displayed
here is the code


<telerik:RadGrid ID="grdPermissions" runat="server" AllowPaging="True"   
            AllowAutomaticInserts="True" 
             AutoGenerateColumns="False" GridLines="None"   
             onitemdatabound="grdPermissions_ItemDataBound"   
             onneeddatasource="grdPermissions_NeedDataSource" Width="100%"   
             ondeletecommand="grdPermissions_DeleteCommand"   
             onupdatecommand="grdPermissions_UpdateCommand"   
             oninsertcommand="grdPermissions_InsertCommand">  
<MasterTableView DataKeyNames="GroupingId"  CommandItemDisplay="TopAndBottom" AllowAutomaticInserts="false" ShowFooter="true" ShowHeadersWhenNoRecords="true" EditMode="InPlace">  
    
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridTemplateColumn UniqueName="PermissionTemplateColumn" HeaderText="Permissions">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlPermission" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllPermission" Text="All" /> 
        <telerik:RadListBox ID="chkPermissions" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id" > 
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="TestStatusesTemplateColumn" HeaderText="Test Status">  
         <ItemTemplate> 
            <asp:Literal ID="ltrlTestStatuses" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllTestStatuses" Text="All" /> 
         <telerik:RadListBox ID="chkTestStatuses" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="LocationsTemplateColumn" HeaderText="Locations"  > 
         <ItemTemplate> 
        <asp:Literal ID="ltrlLocations" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllLocations" Text="All" /> 
        <telerik:RadListBox ID="chkLocations" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="ClinicalGroupsTemplateColumn" HeaderText="Clinical Groups">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlClincalGroups" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
          <asp:CheckBox runat="server" ID="chkAllClinicalGroups" Text="All" /> 
        <telerik:RadListBox ID="chkClinicalGroups" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="BranchesTemplateColumn" HeaderText="Branches">  
         <ItemTemplate> 
        <asp:Literal ID="ltrlBranches" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
        <asp:CheckBox runat="server" ID="chkAllBranches" Text="All" /> 
         <telerik:RadListBox ID="chkBranches" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
 
        <telerik:GridButtonColumn  ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn">  
                         
                    </telerik:GridButtonColumn> 
 
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
 
    </Columns> 
 
    <EditFormSettings  > 
                    
                    <EditColumn ButtonType="ImageButton" InsertText="Add UOM" UpdateText="Update UOM" 
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit" > 
                    </EditColumn> 
                     
                </EditFormSettings> 
 
</MasterTableView> 
 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
         </telerik:RadGrid> 
Nikolay Rusev
Telerik team
 answered on 03 May 2010
0 answers
79 views
Am using a Label Control in Item Template (Rad Grid).. I need to expand the label size automatically.. Please help in providing the property for Label to expand the size...
Kalaiselvan Rajendran
Top achievements
Rank 1
 asked on 03 May 2010
3 answers
237 views
How do I detect if the OnRowSelecting client side event was triggered by the GridClientSelectColumn checkbox or by clicking on the row (outside the checkbox)?

I found a few posts but they don't seem to apply to the new grid version.
Basel Nimer
Top achievements
Rank 2
 answered on 02 May 2010
2 answers
80 views
Hi,

I have a grid with a GridClientSelectColumn, i had a problem of selecting the row when clicking anywhere on it (even a button with a different action <<file download in my case>>), so i had to hack this so that the row is selected only when the check box is clicked, the following code works:

<ClientEvents OnRowSelecting ="RowSelecting"  />


function RowSelecting(sender, eventArgs)   
            {    
             
              var e =  window.event;   
              if(e.srcElement.tagName == "INPUT")   
              {    
                eventArgs.set_cancel(false); 
              }   
              else 
              {   
               eventArgs.set_cancel(true); 
              }   
            }   

the problem i am having now is that window.event does not work on firefox,

any help?







Basel Nimer
Top achievements
Rank 2
 answered on 02 May 2010
3 answers
181 views
I have a RadGrid with a GridClientSelectColumn to allow the user to select several rows.
Unfortunately when the user clicks on a row(but not on the selectcolumn) all the selected rows are deselected and the row which is clicked on is selected,
How can I prevent this?(eg. only the GridClientSelectColumn should react to clicks the rest of the row should ignore them).

The second grid on this( http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx ) example page has the same "error"
Basel Nimer
Top achievements
Rank 2
 answered on 02 May 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?