Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
176 views

Hi,

 


I’m trying to install “Telerik_AJAX_controls_2010_2_929_for_SharePoint_2010_Dev.msi” and I have a rollback installation failure.

 


I’m very interested to know why the installer tries to access the "SharePoint_Config" database:

 


Looking in “event log”:

 


SQL database login for 'SharePoint_Config' on instance 'SP2010D' failed. Additional error information from SQL Server is included below.

Login failed for user 'PHARMA\GTYSAPPSPTT01$'.

 


Looking in “installation wizard log”:

 


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Management.Automation.CmdletInvocationException: Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again. ---> Microsoft.SharePoint.PowerShell.SPCmdletException: Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.

 


Regards,
Frederic Dobon

Frederic Dobon
Top achievements
Rank 1
 answered on 02 Nov 2010
1 answer
380 views
Hi, I am using rad controls for asp.net ajax 3.5 and trying to implement captcha on  login page but it's not showing me image.
Here is my code
     <telerik:RadCaptcha ID="recaptcha" Runat="server">
                   </telerik:RadCaptcha>

     <telerik:RadCaptcha ID="recaptcha" Runat="server">
                   </telerik:RadCaptcha>
<telerik:RadCaptcha ID="recaptcha" Runat="server" />


I used Fiddler to debug it and found Telerik.Web.UI.WebResource.axd?type=rca&guid=d0e22fea-8a18-473b-b726-240bdbde0f6b is missing so I think there is some setting in web.config that is missing..

Please help me.

Thanks
Pero
Telerik team
 answered on 02 Nov 2010
1 answer
42 views
   Can anybody suggest a solution or workaround to this issue - Whitespace between the header and the content in IE7? It appears in the static header mode when the amount of rows is high (200 rows or so). It looks fine in IE8 or FF or Safari. The problem seems to pertain to the client RadGrid functionality which sets the Y offset incorrectly for the content table. It happens when the mouse cursor is lingered over the content table or when it's clicked on the content table.

Thank you,
Alex
Dimo
Telerik team
 answered on 02 Nov 2010
1 answer
122 views

I need to do client side validation in radgrid for this above scenario and i need to disable link button it criteria doesnot match.







Thanks,

Nagendra Prasad

Tsvetina
Telerik team
 answered on 02 Nov 2010
1 answer
75 views
I'm using details table on radgrid.Row select is not working for details table only when i set HierarchyLoadMode="ServerOnDemand".Please Help me to out of this.
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource"
                        OnDetailTableDataBind="RadGrid1_2Bind" OnItemDataBound="RadGrid1_OnDataBound" OnPreRender="RadGrid1_OnPreRender"
                    <HeaderStyle CssClass="RadGridHeader" />
                    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"/>
                    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                        <ClientEvents  OnRowDblClick="RowDblClicked"  />
                        <Selecting AllowRowSelect="True"  />
                    </ClientSettings>
                    <MasterTableView  AutoGenerateColumns="False"  HierarchyLoadMode="ServerOnDemand" ShowHeadersWhenNoRecords="false" NoDetailRecordsText="">
                        <CommandItemSettings ExportToPdfText="Export to Pdf" ShowAddNewRecordButton="False"
                            ShowExportToExcelButton="True" ShowExportToPdfButton="True" ShowExportToWordButton="True"
                            ShowRefreshButton="False" />
                             
                            <DetailTables>
                                <telerik:GridTableView runat="server"  Name="RedGrid_2"   
                                    AllowPaging="true" AutoGenerateColumns="False" NoMasterRecordsText="" PageSize="10" Width="100%">
                                    <Columns>
                                        <telerik:GridBoundColumn SortExpression="SupplierName" HeaderText="Supplier Name"
                                            DataField="SupplierName"
                                        <telerik:GridTemplateColumn  HeaderText="DM" SortExpression="DMetrix" DataType="System.String"
                                        UniqueName="DM" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                           <a><%# ((Int32)(DataBinder.Eval(Container.DataItem, "DMetrix")) == -2) ? ("--") : DataBinder.Eval(Container.DataItem, "DMetrix")%></a>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>                                                                         
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
             
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"
                                UniqueName="ID"  Visible="false">
                            </telerik:GridBoundColumn
<%--                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                                UniqueName="Name" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                            </telerik:GridBoundColumn>--%> 
                            <telerik:GridTemplateColumn HeaderText="" UniqueName="UpANDDown" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <itemtemplate>
                                    <asp:ImageButton ID="btnUp" runat="server" OnClick="btnUp_Click" ImageUrl="images/UP_Arrow_Icon.png" CommandName="UP" />
                                    <asp:ImageButton ID="btnDown" runat="server" OnClick="btnDown_Click" ImageUrl="images/DOWN_Arrow_Icon.png" CommandName="DOWN"/>
                                </itemtemplate>
                                <itemstyle horizontalalign="Center"></itemstyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Field Quota" SortExpression="FieldQuota"
                                UniqueName="FieldQuota" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:TextBox ID="tbFieldQuota" runat="server" Text='<%# Bind("FieldQuota") %>' ToolTip="Enter Numeric Value"
                                            Width="50px" MaxLength="5" OnTextChanged="UpdateFieldQuotaInGrid" AutoPostBack="true"></asp:TextBox>  
                                </ItemTemplate>
                            </telerik:GridTemplateColumn
  
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Order" HeaderText="Order"
                                UniqueName="IsLock" Visible="false">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                     
                </telerik:RadGrid>
                </ContentTemplate>
                

protected void RadGrid1_2Bind(object source, GridDetailTableDataBindEventArgs e)
        {
           
            try
            {
                GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
                if (e.DetailTableView.Name == " RadGrid1_2Bind")
                {
                    string parentHedgeRemaining = dataItem["ID"].Text;
                     
                        DataTable dt = GetDatatabe();
                        e.DetailTableView.DataSource = dt;
                    
                }
                else
                {
                    e.DetailTableView.DataSource = null;
                }
            }
            catch (Exception ex)
            {
            }
        }

Iana Tsolova
Telerik team
 answered on 02 Nov 2010
1 answer
110 views
Hi,

I'm using radalert. What is the max length of the string that I can pass? It seems that it is a number between 300 to 500. If I want to display a long string whose len is 1000, what should I do?

Thanks
Bruce
Fiko
Telerik team
 answered on 02 Nov 2010
3 answers
133 views
Dear Telerik

I have a serious problem related to insert/update new/exist image into Radgrid(RadBinaryImage) column

simply it is working very well unless it has AJAX 
everything can insert/update except the Radgrid(RadBinaryImage) column

kindly please advice 


Radoslav
Telerik team
 answered on 02 Nov 2010
1 answer
197 views
Hey everyone,

I have a radNumericTextBox inside grid's insert form,I have added a onBlur function to fill a label on lose focus on text box.Now,i want to change this event to onTextChange.Which event should i change.I tried OnValueChanged,but it does'nt work also its specified that this event is fired just after the textbox loses focus.I want the value of label to change when textbox is in focus and when user changes text.How is this possible?..

* Also,what property should i use to clear the past entries from textboxes like radmaskedtextbox,radNumericTextBox?..
* 1 more thing,in my numeric text box,when a -ive entry is written it selects the minimum value.How can i avoid -IVE KEYPRESS?...
*  Also,i've a radmasked textbox that i've masked for 10 numeric digits "##########" like this its working fine,except for that it does'nt        take  space which is good but user can give spaces by pressing left or right keys,how to disable that?....

Thanks
Amit
Radoslav
Telerik team
 answered on 02 Nov 2010
4 answers
321 views

Hi, we have a scenario as follows:

We are using impersonation to send the windows credentials of the logged in user (NOT ASP user) to the file system.

The token is checked and the appropriate folders are displayed for that user.

The root folder is set to allow all users to view the contents of THIS FOLDER ONLY. Permissions are then set via NTFS per folder under the root folder.

SO EVERYONE CAN SEE THE LIST OF FOLDER UNDER THE ROOT FOLDER.

If we have 3 folders under the root folder, I want to list these 3 folders for the user. If they then try to navigate to one of the sub folders, the user’s NTFS permissions are  used to determine if they can enter the folder, and if so, if they can read/write, etc in that folder.

 

This all works with the radfileexplorer EXCEPT that if a user does not have read or write permissions to one of the sub folders the control first triggers a windows challenge response, then you get an access to path “x” is denied error.

This behaviour is fine, as long as I can TRAP and handle this. I assume I need to override either the  
FileSystemContentProvider.ResolveRootDirectoryAsTree function or
DirectoryLister.GetDirectory function.

 

I assume the problem is that the file explorer control is reading the root folder, then trying to read the contents of the sub folders in the root. As the user does not have any permissions to this folder, this causes the problem.

The only change I want to make is that it either doesn’t attempt to read sub folders when creating the root (I assume this is done in resolverootdirectoryastree).

If the user then tried to access a folder that they do not have access to, I would like to be able to handle this as well.

I have a much simpler page which has this functionality. When I list the files and fodlers in a direcotyr I simply encapsulate it in a try and catch – this allows me to handle the access is denied error:

 

Try

            Dim arrFiles As New ArrayList

            arrFiles.AddRange(myDir.GetFiles)

 

            Dim arrFolders As New ArrayList

            arrFolders.AddRange(myDir.GetDirectories)

        Catch ex As Exception

            Literal1.Text = ("<script language=""javascript"">alert('Error reading path: " & myDir.FullName.Replace(lblRootPath.Text, "[Root Folder]\").Replace("\", "\\") & "\n\n" & ex.Message.Replace(lblRootPath.Text, "[Root Folder]\").Replace("\", "\\").Replace("'", "\'") & "');</script>")

 

        End Try

 

The trace for the error is below:

UnauthorizedAccessException: Access to the path 'C:\denzien_docs\james cannot get in here' is denied.]

   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2001955

   System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +1817

   System.IO.DirectoryInfo.GetDirectories(String searchPattern, SearchOption searchOption) +57

   System.IO.DirectoryInfo.GetDirectories() +11

   Telerik.Web.UI.Widgets.DirectoryLister.GetDirectories(DirectoryInfo directory, String parentPath) +24

   Telerik.Web.UI.Widgets.DirectoryLister.GetDirectory(DirectoryInfo dir, String virtualName, String location, String fullPath, String tag) +150

   Telerik.Web.UI.Widgets.FileSystemContentProvider.ResolveRootDirectoryAsTree(String path) +210

   Telerik.Web.UI.RadFileExplorer.HasSubFolders(String virtualPath) +73

   Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode) +315

   Telerik.Web.UI.RadFileExplorer.BindExplorer() +627

   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +166

   System.Web.UI.Control.LoadRecursive() +47

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

 

Mike
Top achievements
Rank 1
 answered on 02 Nov 2010
4 answers
348 views
Hi,

I'm not sure if this is by design, or I'm missing a setting somewhere. However, I have a few ajax calls being made from the application front simultaneously and they are fine. However, the calls appear to be interupted whenever an ajax tooltip is activated. Are tooltips a special case?

Hope you can help,

Andy.
Andrew Buxton
Top achievements
Rank 1
 answered on 02 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?