Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
I am creating a number of RadToolBarButtons programmaticly that need to have some detailed, load on demand, tool tips.  However, I can not assign the TargetClientID of the RadToolBarButtons, as I can not assign the ID of the RadToolBarButtons.  Looking at the generated HTML code, (hoping to determine the naming structure of the ID's used internally), it appears that no ID is created. (Or at least, I can state that it is not rendered.)  How, then, can I accomplish the needed requirements?
Svetlina Anati
Telerik team
 answered on 04 May 2010
6 answers
116 views
When i mouse hover the color and select any color, it works like it shows the hash color in textbox, again i mouse hover on the same color box it changes the value in the textbox without any click,
why this is happend.
Svetlina Anati
Telerik team
 answered on 04 May 2010
3 answers
1.4K+ views
I have 5 RadNumericTextbox, but I need when the user clears the input area it must always have a default value of "0", I don't need a validator, only I need before the callback is made the RadNumericTextboxes are filled with this default value.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 May 2010
3 answers
128 views
Hi,

Using Rad TreeView while dragging is it possible to drag both Node text and image/icon?
Currently while dragging tree node it is displaying Node text only.

Thanks & Regards,
Nikolay Tsenkov
Telerik team
 answered on 04 May 2010
2 answers
252 views

Hi,

I want to disable "grouping" function.  For some reason, I keep getting it no matter I set GroupingEnabled="False" on grid,
adding Groupable="false" to columns and AllowDragToGroup="false" in clientSettings.  It allows me to drag the header and then will return a javascript error "'this.get_element()' is null or not an object".  Please help how to set GROUPING off.  thanks!!

  <telerik:RadGrid  ID="RadGrid1" runat="server" AllowMultiRowSelection="True"  GroupingEnabled="False" 
                AllowSorting="True" AutoGenerateColumns="False"    
                Skin="Black"  SelectedItemStyle-ForeColor="Aqua"   
                OnSortCommand="RadGrid1_SortCommand" ShowGroupPanel="False">  
             <MasterTableView ClientDataKeyNames="AlarmGUID"  RowIndicatorColumn-Display="false" TableLayout="auto"  AllowMultiColumnSorting="true" > 
             <Columns> 
                    <telerik:GridBoundColumn DataField="Severity"  HeaderText="Severity"   
                        SortExpression="Severity"  ItemStyle-BorderColor="Black" ItemStyle-Wrap="false"   
                        ItemStyle-HorizontalAlign="Left" Groupable="False"   >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="DisplayName" HeaderText="Display Name"   
                        SortExpression="DisplayName" ItemStyle-BorderColor="Black"   
                        ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left"   
                        Groupable="False"   >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="Description" HeaderText="Description"   
                        SortExpression="Description" ItemStyle-BorderColor="Black"   
                        ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left"   
                        Groupable="False"  >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="TimeFirst" HeaderText="Time First"   
                        SortExpression="TimeFirst" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false"   
                        ItemStyle-HorizontalAlign="Left" Groupable="False" >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="TimeLast" HeaderText="Time Last"   
                        SortExpression="TimeLast" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false"   
                        ItemStyle-HorizontalAlign="Left" Groupable="False" >   
                    </telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn  DataField="AckedBy" HeaderText="Acked By"   
                        SortExpression="AckedBy" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false"   
                        ItemStyle-HorizontalAlign="Left" EmptyDataText="UnAcked"   
                        Groupable="False" >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="TimeAcked" HeaderText="Time Acked"   
                        SortExpression="TimeAcked" ItemStyle-BorderColor="Black" ItemStyle-Wrap="false"   
                        ItemStyle-HorizontalAlign="Left" EmptyDataText="UnAcked"   
                        Groupable="False" >   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="OccurrenceCount"   
                        HeaderText="Occurrence Count" SortExpression="OccurrenceCount"   
                        ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" Groupable="False">   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  DataField="NewOccurrenceCount"   
                        HeaderText="New Occurrence Count" SortExpression="NewOccurrenceCount"   
                        ItemStyle-BorderColor="Black" ItemStyle-Wrap="false" >    
                    </telerik:GridBoundColumn> 
              </Columns> 
                </MasterTableView> 
                 <SortingSettings  EnableSkinSortStyles="false" />   
                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"  AllowDragToGroup="false">  
                    <Resizing AllowColumnResize="True"/>   
                    <Selecting AllowRowSelect="True" /> 
<ClientEvents OnRowSelected="RadGrid1_RowSelected" OnRowDeSelected="RadGrid1_RowDeselected"  OnRowCreated="RadGrid1_RowCreate" OnRowContextMenu="RowContextMenu"  /> 
                    <Resizing AllowRowResize="False" /> 
                   </ClientSettings> 
                  
                 <SelectedItemStyle ForeColor="Aqua" /> 
                  
                 </telerik:RadGrid>       
Pei Chen
Top achievements
Rank 1
 answered on 04 May 2010
2 answers
184 views
Hello.

I have a page with a TreeView in the left and a ListView in the right. In TelerikListView1_ItemDrop event, I try to get the "e.DestinationHtmlElement" when I drop a item in a TreeView node, but, the DestinationHtmlElement is empty.

I tryed with a link button, dropping a item item from the ListView in the linkbutton, and yes, the DestinationHtmlElement was the linkbutton ID.

What's wrong with TreeView?

Regards.

Veli
Telerik team
 answered on 04 May 2010
5 answers
165 views
Hi, there seems to be a bug in the latest version using the Async Upload Control in the ContentArea of the RadWindow when the VisibleOnPageLoad property is set to False (in Firefox), presumably because the control is not visible.

When you select a file for the first time, on the first show of the RadWindow, the file fails to upload continually spinning icon. Clicking remove, and re-trying works as expected. A javascript error is raised "o is undefined" around line 9278 (of the WebResource).

Within this block:

a.RadAsyncUpload.prototype={initialize:function(){a.RadAsyncUpload.callBaseMethod(this,"initialize"); 
this.add_fileUploaded(c.proxy(this._onFileUploadEnd,this)); 
this.add_fileUploadFailed(c.proxy(this._onFileUploadEnd,this)); 
if(this._getIsManagerDeclared()){getRadProgressManager()._addParamToCallbackUrl("type","rau"); 
}},appendStyledFileInput:function(k){var f=this.createFileInput(); 
this._fileInput=f; 
$addHandlers(f,{change:this.uploadFileSelected},this); 
if($telerik.isIE){$addHandlers(f,{mousedown:this._getFileInputMouseDownHandler(),mouseup:this._getFileInputMouseUpHandler()},this); 
}var h=f.id; 
var e=h+"frame"
var d=c("<iframe name='"+e+"' id='"+e+"'/>"); 
this._inputsDictionary[e]={rowElement:k,inputId:h}; 
var l=this
var j=c("<form class='ruForm' action='"+this._handlerUrl+"' method='post' encoding='multipart/form-data' enctype='multipart/form-data' target='"+h+"frame'/>"); 
j.attr("id",h+"form"); 
j.appendTo(document.body); 
d.insertAfter(j); 
d.css("display","none"); 
var g=document.createElement("span"); 
g.className="ruFileWrap"
var i=function(){var o=l._inputsDictionary[this.name]; 
var p=null
try{p=this.contentDocument||this.contentWindow.document
}catch(q){l._onFileUploadFail(o,""); 
return
}if(p){if(c(o.rowElement).parents().length==0){return
}var m=""
try{m=c.parseJSON(p.body.innerHTML); 
}catch(q){l._onFileUploadFail(o,p.body.innerHTML); 
return
 

The crashing line being:.... (Can someone please test this and see if there is some sort of easy workaround)... Thanks, SHaun.

}if(p){if(c(o.rowElement).parents().length==0){return;
Genady Sergeev
Telerik team
 answered on 04 May 2010
2 answers
157 views
Hi support team ,
I am bit new to this telerik.
I installed RadControls for ASP.NET AJAX Q1 2010 SP1 ,And i want to place a rad grid in sharepoint webpart.
this my .ascx
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="false"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="grid"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grid" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
           </telerik:RadAjaxManager> 
<telerik:RadGrid ID="grid" runat="server" BackColor="#0066FF" ForeColor="Black" al> 
</telerik:RadGrid> 


in code behind
 
dtCommonList = List.GetItems(QueryForSDM).GetDataTable(); 
                if (dtCommonList.Rows.Count > 0) 
                { 
                    grid.DataSource = dtCommonList; 
                    grid.DataBind(); 
 
                    grid.Visible = true
                } 
                else 
                { 
                    Response.Write("no data"); 
                } 

When i deployed thi sdeploy was successful, but when adding to page
Not enough permissions. Inherit your page class from RadAjaxPage if you are running under Medium trust level.
so i changed my package.template.xml file and add my custom CAS

<CodeAccessSecurity> 
    <PolicyItem> 
      <PermissionSet class="NamedPermissionSet" version="1" Description="Permission set for SouthwesternEnergy.Partners.Web."
        <IPermission class="AspNetHostingPermission" version="1" Level="Minimal" /> 
        <IPermission class="SecurityPermission" version="1" Flags="Execution,ControlPrincipal,ControlAppDomain,ControlDomainPolicy,ControlEvidence,ControlThread" /> 
        <IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" 
        version="1" ObjectModel="True" /> 
        <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="UserName" /> 
        <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="$AppDir$;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\VisualWebPartProject1" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$" /> 
      </PermissionSet> 
      <Assemblies> 
        <Assembly Name="VisualWebPartProject1" /> 
      </Assemblies> 
    </PolicyItem> 
  </CodeAccessSecurity 
  

but after that i am unable to deply solution so i added a custom target file as mentioned in this site

http://support.microsoft.com/kb/2022463

but it gave me another exception this time 

Server Error in '/' Application.

Security Exception

Description:The application attempted to perform an operation not allowed by thesecurity policy.  To grant this application the required permission pleasecontact your system administrator or change the application's trust level in theconfiguration file.

Exception Details:System.Security.SecurityException: Request for the permission of type'Microsoft.SharePoint.Security.SharePointPermission,Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Is it possible to add radgrid into sharepoint webpart?

I added necessary dlls into bin.

and even changed assemblyinfo.cs 
[assembly: AllowPartiallyTrustedCallers()] 


I just have one day left to complete this task. So kindly help to fix this issue.
David
Top achievements
Rank 1
 answered on 04 May 2010
2 answers
109 views
hi all,
i create the next tooltip:
<telerik:RadToolTip ID="RadToolTip1" runat="server" Position="TopRight" 
        Width="293px" Height="93px"
        Skin="Web20" TargetControlID="RadTextBox1" Text="my tool tip!!" 
        ShowDelay="0">
        your text here
    </telerik:RadToolTip>

and it won't work!
can someone tell my what's wrong?
Thank you.
ilant
Top achievements
Rank 1
 answered on 04 May 2010
3 answers
94 views
I'm VERY new to Telerik so please take into account.  :)

I have a grid that contains a FormTemplate inside the EditFormSettings code block.  This grid is populated from a Class Collection datasource.  When the user clicks "Edit"  I need to populate the controls in my FormTemplate with data from my objects.  So when the use clicks edit  I somehow need to "FindControls" on the edit form and populate it from code behind.  The reason for this is because the edit form contains more fields than is shown in the grid. 

Can someone point me in the right direction or even better show me an example?

Thanks
Scott
Rosen
Telerik team
 answered on 04 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?