Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
On installing RadControls for ASP.NET i am not able to see the project template in Visual Studio 2008.

Am not able to create any samples.
Konstantin Petkov
Telerik team
 answered on 24 Sep 2008
3 answers
104 views
Hi All,

I am using Radcontrol Asp.net Ajax Q12008

I am using  RadSplitter ,RadPand  And RadSliding Pane .

<script type="text/javascript">
function SlidingPaneDocked(sender)
{
//code is here
}

function SlidingPaneUnDocked(sender)
{
//code is here.
}

</script>

In One RadSplitter like below

 <telerik:RadSplitter ID="RadSplitter1" runat="server" Skin="Default2006" Width="100%" BackColor="WhiteSmoke">
          <telerik:RadPane ID="rPaneSearchCriteria" runat="server" BorderStyle="None" BorderWidth="0px" Width="950px">
              <telerik:RadSlidingZone ID="slideZone" runat="server" Width="25px" BackColor="whitesmoke" BorderWidth="0">
                
                  <telerik:RadSlidingPane ID="slidePane" runat="server" Title="Search Criteria" Width="950px" BorderStyle="none" BorderWidth="0" BackColor="WhiteSmoke" OnClientDocked ="SlidingPaneDocked" OnClientUndocked ="SlidingPaneUnDocked">

</telerik:RadSlidingPane >

</telerik:RadSlidingZone >

 </telerik:RadPane >
</telerik:RadSplitter >

In next RadSplitter i added radgrid.

 <telerik:RadSplitter ID="rSplitterrid" runat="server" BorderSize="0" BorderStyle="None" BorderWidth="0px" Skin="" Width="100%" BackColor="WhiteSmoke" BorderColor="WhiteSmoke">
     
        <telerik:RadPane ID="rPaneGrid" runat="server" BorderStyle="None" BorderWidth="0px" Scrolling="None" Width="103%" BackColor="WhiteSmoke" BorderColor="WhiteSmoke">         

       <telerik:RadGrid ID="dgAdvSearch" runat="server" AllowSorting="True" Width="97%"
            Font-Bold="False" Font-Italic="False" Font-Names="Arial" Font-Overline="False"
            Font-Size="XX-Large" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" Skin="Office2007"
            AllowPaging="True" AllowCustomPaging="True" GridLines="None"
            LoadingTemplateTransparency="10" AllowMultiRowSelection="True" BorderStyle="None" OnPageIndexChanged="dgAdvSearch_PageIndexChanged"
            OnNeedDataSource="dgAdvSearch_NeedDataSource" Title="Searh Results" Height="620px" PageSize="20" AutoGenerateColumns="False">
           
               
               
                <MasterTableView  GridLines="Both" CommandItemDisplay="Top" DataKeyNames="StockNo" EditMode="InPlace"> 
                    <RowIndicatorColumn Visible="False">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Resizable="False" Visible="False">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
   
                 </Columns>
                    <EditFormSettings>
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                    </EditFormSettings>
                    <PagerStyle Mode="NextPrevAndNumeric" Position="Top" />
                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Names="Arial" Font-Overline="False"
                        Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False" ForeColor="Black"
                        Wrap="True" />
                    <CommandItemTemplate>
 
                    </CommandItemTemplate>
                </MasterTableView>
                <ClientSettings>
                            
                    <Selecting AllowRowSelect="True" />
                            
                    <Scrolling AllowScroll="True"  UseStaticHeaders="True"/>
                </ClientSettings>
                <HeaderStyle BackColor="WhiteSmoke" Font-Bold="True" Font-Italic="False" Font-Names="times new roman"
                    Font-Overline="False" Font-Size="XX-Small" Font-Strikeout="False" Font-Underline="False"
                    ForeColor="Black" Wrap="True" />
                <PagerStyle Mode="NextPrevAndNumeric" Position="Top" />
            </telerik:RadGrid>
            </telerik:RadPane>
            </telerik:RadSplitter>
     

On sliding pane undock event i moving grid from lower pane to upper pane.
And on dock moving grid from upper pane to lower pane.

while click on dock of sliding pane it gives me error as follows

 Invalid Argument
this._owner.GridHeaderDiv.style.width=this._owner.GridDataDiv.offsetWidth-Telerik.Web.UI.Grid.getScrollBarHeight()+"px";
on this line




                  
               
Konstantin Petkov
Telerik team
 answered on 24 Sep 2008
3 answers
75 views
Hi,

I have dynamical RadGrid, GridTemplateColumn is making by MyTemplate class:
Public Class MyTemplate 
    Implements ITemplate 
    Protected boolValue As CheckBox 
    Protected tBox As TextBox 
    Private colname As String 
    Private isHeader As Boolean 
    Private columnId As String 
 
    Public Sub New(ByVal cName As StringByVal header As BooleanByVal id As String
        MyBase.New() 
        colname = cName 
        isHeader = header 
        columnId = id 
    End Sub 
 
    Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements ITemplate.InstantiateIn 
        If isHeader Then 
            boolValue = New CheckBox 
            boolValue.ID = colname.ToString 
            boolValue.Text = colname 
            boolValue.Enabled = True 
            boolValue.AutoPostBack = True 
            boolValue.Checked = True 
            container.Controls.Add(boolValue) 
        Else 
            boolValue = New CheckBox 
            boolValue.ID = columnId 
            AddHandler boolValue.DataBinding, AddressOf Me.boolValue_DataBinding 
            boolValue.Enabled = True 
            boolValue.Checked = False 
            tBox = New TextBox 
            AddHandler tBox.DataBinding, AddressOf Me.tBox_DataBinding 
            container.Controls.Add(boolValue) 
            container.Controls.Add(tBox) 
        End If 
    End Sub 
End Class 

Columns create code:
For Each row As DataRow In Services_Table.Rows 
    Dim templatecolumn As New GridTemplateColumn 
    templatecolumn.UniqueName = row(0) 
    templatecolumn.HeaderTemplate = New BeSkaitikliuTemplate(row(1), True, row(0)) 
    templatecolumn.ItemTemplate = New BeSkaitikliuTemplate(row(1), False, row(0)) 
    PriskirimasRadGrid.Columns.Add(templatecolumn) 
Next 
 

There I try to FindControl.

For Each GridColumn As GridColumn In PriskirimasRadGrid.MasterTableView.Columns 
    For Each item As GridDataItem In PriskirimasRadGrid.MasterTableView.Items 
    Dim cBox As CheckBox = CType(item.FindControl(GridColumn.UniqueName), CheckBox) 
    Next 
Next 

Can anybody help me?

Rimantas
Top achievements
Rank 1
 answered on 24 Sep 2008
5 answers
136 views
Hi all,

Does anybody know why after an export to excel from a grid using ExportToCSV, the radcombox box on the same page and the filters on the grid are all frozen. The combo no longer drops down and the filter menu no longer appear when clicked until the page is refreshed.

Cheers
Alan
Yavor
Telerik team
 answered on 24 Sep 2008
1 answer
220 views
I have an urgent question under deadline!

I have a grid that I use to display files that have been attached to records in my database.  I want to develop the ability to use the Insert functionality of the grid to insert a new file into the database.  I have 2 fields: 1) the path of the file, which I map to a button column.  When the user clicks "launch in this column, it opens the file using the path from the database.  and 2) an Icon field which is the name of an image to display in relation to the file. 

When the user clicks "Add New Record", I want to display a custom form inside the grid with the RAD Upload control.  I then want to handle an event where I can use custom logic to determine the value for my "Icon" field and insert the record using the file selected with the RAD Upload control.

Can someone point me in the right direction?  I reviewed a Telerik documentation which directs me to use EditFormTemplate, but its not clear to me.

Thanks in advance
Princy
Top achievements
Rank 2
 answered on 24 Sep 2008
2 answers
350 views
How can i export only the selected rows of  a grid ??

and when i exported a grid with a clientsideselecting column the checkboxes appear..
How can i avoid that..

Thanks in advance...
Chamira
Top achievements
Rank 1
 answered on 24 Sep 2008
2 answers
475 views
Hi,

I am seeing some odd behavior with radgrid. I have two grids on the page. I had RadGrid1 set to HierarchyLoadMode="Client". The other was loading on demand. Both grids were updated in the code behind via AJAX without rebinding. Sometimes an update would cause one or more expanded rows on RadGrid1 to collapse. At other times this did not happen (using the same update with the same data). I removed the HierarchyLoadMode to go back to load on demand. Now I am finding that the first time I click on a + to expand a row the LoadingPanel displays briefly but the row does not expand. It does not call NeedDataSource or DetailTableDataBind. All subsequent clicks expand the rows as intended.

Can anyone shed light on these behaviors please.

Thanks in advance.
Steve
Stephen
Top achievements
Rank 1
 answered on 24 Sep 2008
1 answer
156 views
Hi..
I'm using a grid bound to a data table. I'm also using the built in editting.
When I edit and then click the check to update my values do not update.
What code do I need to add to update the values in data table from the edited grid values.
thanks
Princy
Top achievements
Rank 2
 answered on 24 Sep 2008
1 answer
189 views
Hi,

I am programatically generating about 50 timepickers on a web page via user controls.

I am also using a shared javascript function to handle the client side OnDateSelected event.

This all works fine but I now need to get the ClientID from the sender object that's passed in the OnDateSelected to find out which one was used.

I am using the sender.ClientID property but it comes up undefined...how else do I do this?

The Version of  dll I am using is 2008.2.723.20.

Regards
Roger
Roger
Top achievements
Rank 1
 answered on 24 Sep 2008
2 answers
79 views
http://img158.imageshack.us/img158/9194/dddjo8.jpg

I want to have a confirmation window which prompts the user to say
"All selected rows will be deselected once clicked"

is there a way i can do this??
Chamira
Top achievements
Rank 1
 answered on 24 Sep 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?