Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
148 views

We have used the RAD Menu Control, Tree View Control and Calendar Control in our Site which is created in MOSS 2007. This site has read access granted to the "NT Authority\ Authenticated Users" so any one authenticated within our Windows environment will be able to access it.

As we cannot place the DLL within the GAC due to security policies and also since it is not the good practice, we place them in the Bin folder of the Web Application that hosts our site.

As Sharepoint by default only allows the Minimal Trust, we use a Sharepoint Solution to deploy the DLL in the Bin folder and create the Custom Trust file to grant access to these DLLs.

Even after creating the Sharepoint Solution to add the DLL to the Bin folder and provide the custom access policy. The Users see a 403 Forbidden access error.

But the error is not consistent. If the administrators or a person with higher access to the site happens to access the same page containing the RAD control they are able to access it and subsequently all other users are also able to access the page.

But if we reset the IIS the problem re-occurs again until the pages are access by the Administrators.

For your information the code security permission in the solution is specified as follows:

1) For  the IPermission class="AspNetHostingPermission" we have Level="Minimal"

2) IPermission class="System.Security.Permissions.FileIOPermission, mscorlib" we have Unrestricted="True"

3)IPermission class="System.Security.Permissions.SecurityPermission, mscorlib " we have Flags="UnmanagedCode, ControlThread, ControlPrincipal"

4) IPermission class="SecurityPermission" we have Flags="AllFlags" 

5) IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security," we have ObjectModel="True"

Hope you can understand the scenario. Kindly post back if you have any solution for this issue.

santoshkumar
Top achievements
Rank 1
 asked on 14 Oct 2008
3 answers
226 views
Hi,

How can I set CausesValidation="false" to GridButtonColumn ?

Regards,
Divyesh
Gourangi
Top achievements
Rank 1
 answered on 14 Oct 2008
5 answers
180 views
I have the following code in my module identifying each column's UniqueName based on their DataField property. The FindByDataFieldSafe function strangely isn't able to identify TemplateColumns and would return Nothing.
Protected Function GetGridValues(ByVal rgdGrid As RadGrid, _  
                           ByVal grdEditableItem As GridEditableItem, _  
                  Optional ByVal blnValidateData As Boolean = TrueAs String  
 
Dim hshRowData As New Hashtable 
   rgdGrid.MasterTableView.ExtractValuesFromItem(hshRowData, grdEditableItem) 
   For Each strField In hshRowData.Keys  
      xmleField = xmldData.CreateElement(strField)  
         If Not rgdGrid.Columns.FindByDataFieldSafe(strField) Is Nothing Then  
            strColUniqueName = rgdGrid.Columns.FindByDataFieldSafe(strField).UniqueName  

However, if I run the following statement during debugging, using the FindUniqueNameSafe function instead, I'm able to return the value.
?cObj(rgdGrid.Columns.FindByUniqueNameSafe("colINDCUR")).DataField
"INDCUR" {String}
    String: "INDCUR"
What is wrong here?
Thanks for all the help.
Nikolay Rusev
Telerik team
 answered on 14 Oct 2008
1 answer
103 views
Greetings,

I have a strange situation. I have a Sharepoint web part which works wonderfully using the Telerik RadGrid to display data. I now want to create an similar webpart with Ajax functionality. My first thought was to build this second part like this (code paraphrased):

[C#]
public class AjaxMetricGridWebPart : MetricGridWebPart
{
public override CreateChildControls()
{
// Allow the parent class to do its work
base.CreateChildControls();

// Find the grid in the control collection and remove it
Control rg;
foreach (Control c in this.Controls)
{
if (c is RadGrid)
{
rg = c;
break;
}
}

this.Controls.Remove(rg);

// Create an ASP.NET UpdatePanel
UpdatePanel up = new UpdatePanel();
up.ContentTemplateContainer.Controls.Add(rg);

this.Controls.Add(up);
}
}
When I do this, the grid does not display in the new web part. However, copying the code from the MetricGridWebPart class into the AjaxMetricGridWebPart class and simply modifying the CreateChildControls() method works great.

I would rather not manage the same code in two places. It seems that what I'm trying to do in the first example should work just fine. Is there some subtlety in the RadGrid that stops it from being displayed when it is moved from one ControlCollection to another?

.NET 3.0, Sharepoint 2007
Rosen
Telerik team
 answered on 14 Oct 2008
6 answers
183 views
Hi,

    I use the control RadDateTimePicker and I set DateFormat and DisplayDateFormat for Dateinput to dd/MM/yyy HH:mm:ss.  On my PC, all works fine, but when I deploy my application on the server, I got a bug.  The date on the intial loading of the page is right shown.  But when I click on the calendar and select yesterday(October 7th), the day and month of the date in the control are swap, so when I click another time on the calendar, the date set is not October 7th, but July 10th.  If I click on the Time View, the date remain in proper format, so I see October 7th.  Do you know why?

Thank you
Steve
Sebastian
Telerik team
 answered on 14 Oct 2008
3 answers
82 views
Hi, I need to add a windows media content in a content editor, both web part and WCM placeholder.

I know, I can do it quite easily. The only difference is that I have to add streaming video address, like mms://82.76.253.18/antena3 (just an example taken on the web).

Is it possible? How can I do?

Thanks
Riccardo 
George
Telerik team
 answered on 14 Oct 2008
2 answers
85 views
 Every time i get   in cellTxt, could anyone help me plz.

 

 

 

protected void RadGridContasPagar_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

    if (e.Item is GridDataItem)

 

    {

 

        GridDataItem dataitem = (GridDataItem)e.Item;

 

 

        String cellTxt = dataitem["Vencimento"].Text; 
    }
}

 

Princy
Top achievements
Rank 2
 answered on 14 Oct 2008
1 answer
108 views
I just started using the 2008 Q2 SP2 controls. I noticed that after upgrading from the 2008 Q2 version that the rotator is not acting the same way as it was before. I was using a slider that when you moved it one value it would call the showNext function of the rotator to make it move to the next item. With the SP2 version, it moves to the next frame, but then it keeps on moving. It will pause, and then advance as if the slide show was started.

Here is the JS code I'm using to move the rotator:

function RotateNext() { 
        var rotator = $find("<%=rotate.ClientID %>"); 
         
        rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Up); 
                 
    } 

Here is the start tag for the rotator:

<telerik:RadRotator ID="rotate" runat="server" Height="185px" RotatorType="FromCode" 
            ScrollDirection="Up,Down" Width="290px" ScrollDuration="250"


Thanks,
Adam
Georgi Tunev
Telerik team
 answered on 14 Oct 2008
1 answer
143 views
Hello,

I have been trying to arrive at a workaround for this problem for a few days. Right now I would accept being able to logically turn off Ajax if the browser is IE 6. This would be an ugly workaround, but it would restore functionality to a production application and also punish my client for standardizing on IE 6.

The application uses a series of forms that utilize RadMultiPage controls in a RadWindow. In addition, the forms are entirely based on CSS positioning elements to structure the forms. The symptom is that if the browser is IE 6 (only), when switching from page to page, all controls disappear. If I turn off Ajax, by removing the RadAjaxPanel, the forms display properly when switching from page to page. All works fine in IE 7, Firefox, Opera, Safari and Chrome.

I have a very compact standalone project that will illustrate this if necessary.

Thanks, Steve
Pavel
Telerik team
 answered on 14 Oct 2008
3 answers
95 views
I have a RadScheduler in which I am looking to display multiple appointments at the same time for the daily view. However it seems to be displaying only one of them. When I change the time for the bound data, it displays the appointment horizontally. Is there a way to display the appointments one below the other which are due at the same time?

Thanks,
Tony
T. Tsonev
Telerik team
 answered on 14 Oct 2008
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?