Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
94 views
hi,

In a radgrid control, I binded data.After populated every time radgrid control has one row .So that i need to dispaly this record in horizontal manner.(like Detail view in standard toolbar in Visual stdio) .
e.g.

name      | aaaaaa
-----------------------------------------------
address  | bbbbbbbb
-----------------------------------------------
country   | cccc
-----------------------------------------------
Tele No   | 323423




Can you plz tell me the way of doing this.




Thanks
waruni



waruni
Top achievements
Rank 1
 answered on 15 Feb 2010
1 answer
116 views
Hi everybody,

is there a way to replace the PageSize Dropdown in the Pager of the RADGrid with LinkButtons?  (for example Page Size : 10 | 20 |  All ).  I deleted the RadComboBox in the ItemCreated Event and added the Linkbuttons to handle the selection in a click event i hooked up with the linkbuttons.  Problem with this dynamic approach is that those event listeners get lost on postback and the click event handler are never called. What do I have to do to get this to work?

Thx in advance

Rafael


Schlurk
Top achievements
Rank 2
 answered on 15 Feb 2010
1 answer
123 views
Hi guys.
when i use Nested RadGrid( hierarchy) a have a problem with  ExpandCollapseColumn-Display property.
when set it True appear like :
<img src="http://www.pictureshoster.com/viewer.php?file=f1kmixti8cuah5be5uj9.jpg" />
but when set it to False my design is different  like this image :
<img src="http://www.pictureshoster.com/viewer.php?file=5xmzsw9ytiqtndsr781z.jpg" />
look at empty space between Master And Detail Grid.

what is problem? and what is solution?

tnx


Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
130 views
Hello,
     I am trying to create my own skin for a TabStrip control.  For this I am using the style builder at http://stylebuilder.telerik.com.  
One thing I am not able to figure out is how to set the selected tab color so that the complete tab displays in that color.  I am using the Default skin as a starting point.  The attachment shows what my selected tab looks like.  However, I would like the complete selected tab to be blue.
Appreciate any help you could provide.
thanks!

  
Peter
Telerik team
 answered on 15 Feb 2010
1 answer
174 views
Hi,
When i try to build Telerik.Web.UI dll in release mode i am getting the following errors:

The "CompressorTask" task could not be loaded from the assembly C:\inetpub\wwwroot\Controls\RadControls\MSBuildTasks\Yahoo.Yui.Compressor.dll. Could not load file or assembly 'Yahoo.Yui.Compressor, Version=1.4.0.0, Culture=neutral, PublicKeyToken=f8b4b81ec75097e2' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.

Can you please advice.?

Schlurk
Top achievements
Rank 2
 answered on 15 Feb 2010
2 answers
239 views
Hi everybody,
I'm evaluating different toolkits and I see DevEx has really nice feature: ClientInstanceName. Essentially, the name you assign for that property in any control is available for you in javascript without needing to do something like
var myControl = $find('<%= MyControl.ClientID %>'); 

ClientInstanceName lets you simply call "myControl" without having to worry about that extra step. This not only helps make the code cleaner, but also to separate it in a javascript file, as opposed to a script tag in a page.

Is there something equivalent to this in this toolkit? Are there any plans to implement such a feature in upcoming versions?

Thanks
akd2001
Top achievements
Rank 1
 answered on 15 Feb 2010
3 answers
263 views
Hi
           I am running into an issue while sorting a template column.I assigned all of the properties which is relate to sosrting in Grid.  I managed to declare the template column as below

 

 

<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="18%" 
HeaderText="Address1" SortExpression="Address1" DataField="Address1" UniqueName="Address1" GroupByExpression="Address1 Group By Address1" AllowFiltering="false">  
<ItemTemplate> 
<asp:Label ID="lblAddress1" runat="server"></asp:Label> 
</ItemTemplate> 
</telerik:GridTemplateColumn> 
 

I also used to retrieve the data from DB and bind the same with the label control in the ItemDataBound event of the grid. The sample coding snippet i mentioned below..

 

           if (e.Item.OwnerTableView.Name == "Sales")  
            {  
 
                if ((e.Item.ItemType == GridItemType.AlternatingItem) || (e.Item.ItemType == GridItemType.Item))  
                {  
                    DataSet dsFirms = (DataSet)Session["Sales"];  
                    DataRowCollection drLocal = dsFirms.Tables[0].Rows;  
                    System.Web.UI.WebControls.Label lblAddress1 = (System.Web.UI.WebControls.Label)e.Item.FindControl("lblAddress1");  // Address1  
                    if (iCount <= drLocal.Count)  
                    {                          
                        lblAddress1.Text = drLocal[iCount]["Address1"].ToString();                         
                    }  
                    iCount++;  
                }  
            } 

So since my project is subjected  to bind as above mentioned scenario,please guide me to soleve the problem

--Thanks In Advance

Tsvetoslav
Telerik team
 answered on 15 Feb 2010
6 answers
210 views
I am having a bad time with AJAX request and error message after first OnRowDeleted function call: "Multiple controls with the same ID 'ctl00' were found. FindControl requires that controls have unique IDs."

I build my radtabstrip and radpages and radgrids on pageload.

here is my code for code behind.

 Public Function gametemplate(ByVal dt As Data.DataTable) As RadGrid 
            Dim g As New RadGrid 
            g.ID = System.Guid.NewGuid.ToString 
            ' g.EnableViewState = False 
 
            g.AutoGenerateColumns = False 
            g.Skin = "Gray" 
            g.MasterTableView.DataKeyNames = New String() {"gameid"} 
            g.MasterTableView.ClientDataKeyNames = g.MasterTableView.DataKeyNames 
            g.MasterTableView.AllowAutomaticDeletes = "true" 
            g.ClientSettings.ClientEvents.OnRowDeleted = "deleteGame" 
 
 
            Dim hColumn As New GridBoundColumn 'home team 
            Dim aColumn As New GridBoundColumn 'away team 
            Dim sColumn As New GridBoundColumn 'gametime 
            Dim statusColumn As New GridBoundColumn 'status of game 
            Dim deleteC As New GridClientDeleteColumn 
            deleteC.ImageUrl = "/images/cross.png" 
            deleteC.ConfirmText = "Are you sure you want to remove game from schedule?" 
            deleteC.ButtonType = GridButtonColumnType.ImageButton 
            deleteC.UniqueName = "deleteit" 
            'Dim templateColumnName As String = "Delete" 
            'Dim templateColumn As New GridTemplateColumn() 
            'templateColumn.ItemTemplate = New MyTemplate(templateColumnName) 
            'templateColumn.HeaderText = templateColumnName 
 
            'Dim dColumn As New GridTemplateColumn() ' delete it 
            'dColumn.HeaderText = "Delete" 
 
            'Dim dButton As New GridImageButton(dColumn) 
            'dButton.ImageUrl = "/images/cross.png" 
            'dButton.OnClientClick = "return confirm('you da man');" 
            'dColumn.ItemTemplate.InstantiateIn(dButton) 
 
 
            With statusColumn 
                .HeaderText = "Status" 
                .DataField = "status" 
                .UniqueName = "status" 
            End With 
            hColumn.UniqueName = "hometeam" 
            hColumn.DataField = "hometeam" 
            hColumn.HeaderText = "Home" 
            aColumn.DataField = "awayteam" 
            aColumn.UniqueName = "awayteam" 
            aColumn.HeaderText = "Away" 
            sColumn.DataField = "start" 
            sColumn.UniqueName = "start" 
            sColumn.HeaderText = "Start" 
 
            g.MasterTableView.Columns.Add(sColumn) 
            g.MasterTableView.Columns.Add(hColumn) 
            g.MasterTableView.Columns.Add(aColumn) 
            g.MasterTableView.Columns.Add(statusColumn) 
            g.MasterTableView.Columns.Add(deleteC) 
            'g.Columns.Add(templateColumn) 
 
            g.DataSource = dt 
            g.DataBind() 
            Return g 
 
        End Function 
 
        Protected Sub createFieldTabs() 
            Dim fields As bo.fieldlist = fbll.getTournamentFields(Me.tournamentid) 
           
            If fields.Count >= 1 Then 
                For Each f As bo.Field In fields 
                    Dim newtab As New RadTab 
 
                    Dim newpage As New RadPageView 
 
 
 
                    newtab.Text = f.name 
                    newtab.PageViewID = newpage.ID 
 
                    newpage.Controls.Add(Me.gametemplate(gbll.getGamesForField(Me.tournamentid, f.fieldid))) 
 
                    fieldpages.PageViews.Add(newpage) 
 
                    fieldtabs.Tabs.Add(newtab) 
 
                    If fields.IndexOf(f) <= 0 Then fieldpages.SelectedIndex = newtab.Index 
                Next 
 
              
 
 
            End If 
 
        End Sub 

Here is my aspx page:

<%@ Page Language="VB" MasterPageFile="~/masters/SubPage.master" AutoEventWireup="false" CodeFile="tabs.aspx.vb" Inherits="thunder.apps.sa.pages.scheduletabs" title="Untitled Page" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
 <sa:TournamentTools ID="TournamentTools1" runat="server" /> 
     <div style="clear:both;height:20px;"></div>  
 <telerik:RadCodeBlock ID="cb1" runat="server"> 
 
 
    <script language="javascript" type="text/javascript"> 
    var ajaxManager ; 
    function setManager(){ 
   ajaxManager = $find("<%= RadAjaxManager3.ClientID %>"); 
    } 
     function deleteGame(sender, eventArgs) 
    { 
       var gameid = eventArgs.getDataKeyValue("gameid"); 
       setManager(); 
      
       ajaxManager.ajaxRequest(gameid); 
         
    } 
 
    </script> 
    
   </telerik:RadCodeBlock> 
    <telerik:RadAjaxManager RequestQueueSize="2" EnableAJAX="true"   ID="RadAjaxManager3" runat="server"> 
    </telerik:RadAjaxManager> 
    
<fieldset><legend>Tournament Schedule</legend> 
 
 
    <telerik:RadTabStrip ID="fieldtabs" Skin="Gray" MultiPageID="fieldpages" runat="server"> 
    <Tabs> 
     
    </Tabs> 
     
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="fieldpages" runat="server"> 
         
    </telerik:RadMultiPage> 
</fieldset> 
 
</asp:Content> 
 
 

Nikolay Rusev
Telerik team
 answered on 15 Feb 2010
0 answers
147 views
Hi,

I have introduce master page for my page. after that my radcodeblock is not working why that

<telerik:radcodeblock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
           
            function refreshGrid(arg)
            {
             if(!arg)
             {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");            
                }
                else
                {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");            
                }
            }
            
            function OnSelecting(sender, args)
               {
                   $get("<%= previousTabHidden.ClientID%>").value = sender.get_selectedTab().get_text();
               }
   
           
            </script>
             </telerik:RadCodeBlock>




lakmal
lakmal
Top achievements
Rank 2
 asked on 15 Feb 2010
2 answers
165 views
Hi,

I search to redirect on a new form when i double click an appointment.

In javascript i have :
 function OnClientAppointmentEditing(sender, eventArgs) {  
            var apt = eventArgs.get_appointment(); 
            window.location = "Rappel.aspx?idEvent=" + apt.ID;  
            eventArgs.set_cancel(true);   
        }   

and in the radscheduler body :

<telerik:RadScheduler runat="server" ID="RadScheduler1" 
            Width="750px"  
            Height="650px" 
            Skin="Web20"  
            Culture="fr-FR" 
            DataKeyField="id" 
            DataStartField="eventstart"  
            DataEndField="eventend"  
            DataSubjectField="name" 
            DataDescriptionField="motifs" 
            DataSourceID="SqlDataSource1" 
            CustomAttributeNames="idTypeEvent" 
            FirstDayOfWeek="Monday" 
            LastDayOfWeek="Sunday" 
            DayStartTime="08:00:00"  
            DayEndTime="19:00:00"  
            HoursPanelTimeFormat="HH:mm"  
            WeekView-ColumnHeaderDateFormat="ddd d"  
            MultiDayView-ColumnHeaderDateFormat="ddd d"  
            MonthView-HeaderDateFormat="MMM yyyy"  
            MultiDayView-DayEndTime="19:00:00"  
            MultiDayView-WorkDayEndTime="19:00:00"  
            WeekView-DayEndTime="19:00:00"  
            WeekView-WorkDayEndTime="19:00:00"  
            WorkDayEndTime="19:00:00"  
            ShowViewTabs="true" 
            TimelineView-UserSelectable="False" 
            EnableDescriptionField="True" 
            EnableResourceEditing="True" 
            EnableCustomAttributeEditing="True" 
            AdvancedForm-EnableResourceEditing="True" 
            AdvancedForm-EnableCustomAttributeEditing="True" 
            OnAppointmentInsert="RadScheduler1_AppointmentInsert" 
            OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
            StartEditingInAdvancedForm="False" 
            MinimumInlineFormHeight="80"


            OnClientAppointmentEditing="OnClientAppointmentEditing"


            > 

Unfortunatly it seem i can't get correct informations with the get_appointment method.
In the redirect page, i have in the url idEvent=undefined and not the id's appointment.

Any idea?

Thanks a lot!

julien royer
Top achievements
Rank 1
 answered on 15 Feb 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?