Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
330 views
Hi

How do I get radGrids EditIndex or a row that is in editmode in a button click event handler that is outside the RadGrid?

Thanks!!
Neelima
Protected Sub btnOK_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnOK.Click
  
 Dim phone As String = String.Empty
 Dim row As GridEditableItem ' How to get the row that is in editmode?
 phone = DirectCast(row.FindControl("txtPhone"), TextBox).Text
  
End Sub


     <telerik:RadGrid ID="RadgridDestination" runat="server"
     AllowSorting="True"  ShowGroupPanel="True" 
     AutoGenerateColumns="False"
          Skin="Sunset" AllowPaging="True" GridLines="None">
  
        <GroupingSettings ShowUnGroupButton="True"  />
        <ClientSettings AllowDragToGroup="True" allowcolumnsreorder="True" 
            columnsreordermethod="Reorder" reordercolumnsonclient="True" >
        </ClientSettings>
          
  
<MasterTableView EditMode="InPlace" DataKeyNames="Destination_ID" GroupLoadMode="Client" >
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
    <Columns>
      
        <telerik:GridEditCommandColumn ButtonType="ImageButton">
        </telerik:GridEditCommandColumn>
          
         <telerik:GridButtonColumn CommandName="Select" Text="Select"  ButtonType="ImageButton"
            UniqueName="column1" ImageUrl="Images/Home-Edit.gif">
        </telerik:GridButtonColumn>  
                              
                              
                <telerik:GridBoundColumn DataField="Destination_ID"  
            HeaderText="Destination_ID" visible="False" UniqueName="Destination_ID" />
'
'
'
'
 <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
            Text="Delete" UniqueName="Delete">
        </telerik:GridButtonColumn>
                      
            </Columns>
           <EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
  
    </telerik:RadGrid>
  
<asp:Button ID="btnOK" runat="server"  CausesValidation="false" Text=" OK " /> 
Princy
Top achievements
Rank 2
 answered on 22 Oct 2010
1 answer
116 views
How do I implement a loading control, so that a template appears with an animated gif when I press forward, back, etc.?

I have tried:

       <telerik:RadScheduler ID="radScheduler" runat="server" Height=""
        HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1"
        onresourcespopulating="radScheduler_ResourcesPopulating" ReadOnly="true"
        AppointmentStyleMode="Default" EnableDescriptionField="true"
        OnClientAppointmentCreated="clientAppointmentCreated"
        SelectedView="MonthView" ShowFooter="false" ShowAllDayRow="false"
        ShowFullTime="true" OnClientAppointmentClick="appointmentClick"
        AdvancedForm-Modal="true" Skin="Office2007" TimelineView-UserSelectable="false"
        >
         
        <AppointmentTemplate>
 
                        <div class="rsAptSubject">
                           <%# Eval("Subject") %>
                        </div>
                        <%# Eval("Description") %>
        </AppointmentTemplate>
         
        <WebServiceSettings Path="../WebServices/MyService.asmx" ResourcePopulationMode="ServerSide" />
 
        <AdvancedEditTemplate>
        <div>
            <a id="lnkDetails" href="#">View Details</a>
        </div>
        </AdvancedEditTemplate>
 
        <ResourceStyles>
            <telerik:ResourceStyleMapping Key="1" ApplyCssClass="rsCategoryGreen"/>
            <telerik:ResourceStyleMapping Key="2" ApplyCssClass="rsCategoryRed" />
        </ResourceStyles>
 
       </telerik:RadScheduler>
     
  
           <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radScheduler">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radScheduler" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
            
               <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" IsSticky="false" Width="75px" Transparency="25">
    LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0;" />
</telerik:RadAjaxLoadingPanel>


Nothing appears, can you advise?
Veronica
Telerik team
 answered on 22 Oct 2010
1 answer
47 views
I glossed over the release notes for RadControls for AJAX Q1 2010 and one of the selling points appears to be Visual Studio 2010 integration.. I currently have Q3 2009 SP1 and am thinking of upgrading to VS 2010. Will I run into compatibility issues with Q3 2009? Do I need to upgrade to Q1 2010?
Sebastian
Telerik team
 answered on 22 Oct 2010
1 answer
107 views
Hi,
With reference to attached file, the Customer Name Combobox is a telerik:RadComboBox and is disabled. But the selected value is very difficult to read when it is made Enable False. There is no problem when it is made Enabled. Can you please suggest what can be done to solve this issue when it is make Enable False?
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2010
3 answers
91 views
I have a screen that has a rad window that when it opens seems to have some odd characters taht are visible.  I have tried it on other sites but don't get these odd characters as you can see in the attachment.  Any ideas on what is causing this.

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
           <Windows>
               <telerik:RadWindow ID="Info" ReloadOnShow="false" Behavior="Close, Move, Resize"
                   Modal="true" AutoSize="true" VisibleStatusbar="false" runat="server" ShowContentDuringLoad="false"
                   Style="z-index: 2" OnClientPageLoad="radWindow_OnClientLoad" />
           </Windows>
       </telerik:RadWindowManager>


Georgi Tunev
Telerik team
 answered on 22 Oct 2010
1 answer
142 views
Hi,
I have a radpanelBar(has some fixed height) inside a popup, and when there are more radpanelitems the radpanelitem height gets decreased and looks conjusted. 
I want to have a fixed height for RadPanelBar , so when RadPanelBar height is exceeded, it should get a scrollbar(noe it get a scroll bar only when the height is exceeded, and till the height is exceede all the radpanelItems are conjusted).

regards,
Naresh
Nikolay Tsenkov
Telerik team
 answered on 22 Oct 2010
3 answers
124 views
Hello,

I have 2 problems:

1) If you see in the image001.png, the text in column 2 is too long and comes on the second line.  Is there a possibility to cut of the text?  something like ...

2) The user can change the values of  chekboxes. (see image002.png).  Is it possible to make it read-only?

Can somebody help me out of this?

Kind Regards,
Kris
Kris
Top achievements
Rank 2
 answered on 22 Oct 2010
8 answers
65 views
When I try to close new appointment window in RadScheduler, it takes longer to close using Close/Cancel button. It is not performing any specific operation at that time..

Can we reduce this delay and close it using JS? I am using the control provided for Telerik.    
Sebastian
Telerik team
 answered on 22 Oct 2010
1 answer
329 views
Hello,

I have a grid with detail table inside it. I have check box in header column in it which provides "select all" functionality, i.e I want to provide the functionality where clicking on header check box selects all the check box in the column of detail table.
I looked at this Example in the site, but some how I was not able to get the "CheckBox1" control inside item template of the detail table. Please help. Following is the code I have in aspx side.
<telerik:RadGrid runat="server" AllowMultiRowSelection="false" AutoGenerateColumns="false"
    ID="radGridChecks" AllowSorting="true" AllowPaging="true" PageSize="7" AllowFilteringByColumn="false"
    HeaderStyle-HorizontalAlign="Center" GroupingSettings-CaseSensitive="false" AllowAutomaticDeletes="false"
    AllowAutomaticInserts="false" AllowAutomaticUpdates="false" OnItemDataBound="OnRadGridChecks_ItemDataBound"
    OnPageIndexChanged="OnRadGridChecks_PageIndexChanged" OnNeedDataSource="OnRadGridCheck_NeedDataSource"
    OnDetailTableDataBind="OnRadGridCheck_OnDetailTableDataBind" OnItemCommand="OnRadGridCheck_OnItemCommand">
    <MasterTableView CommandItemDisplay="Top" EnableColumnsViewState="false" AllowAutomaticDeletes="false"
        AllowAutomaticInserts="false" AllowAutomaticUpdates="false" Name="ChecksByRepGrid"
        DataKeyNames="RepCode" ItemStyle-HorizontalAlign="Center">
        <CommandItemSettings ShowAddNewRecordButton="false" />
        <Columns>
            <telerik:GridBoundColumn DataField="RepName" HeaderText="Name" />
            <telerik:GridBoundColumn DataField="Count" HeaderText="# of Checks" />
        </Columns>
        <DetailTables>
            <telerik:GridTableView align="right" DataKeyNames="Code" runat="server" Name="ChecksByRepChildGrid"
                AutoGenerateColumns="false" AllowFilteringByColumn="false">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="Code" MasterKeyField="RepCode" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client Name">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Status">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CheckNumber" HeaderText="Check #">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                     
                    <telerik:GridBoundColumn DataField="PayableTo" HeaderText="Payable To">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ForwardedTo" HeaderText="Forwarded To">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridTemplateColumn>
                    
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
 
</telerik:RadGrid>

Thanks
Utkarsh
http://www.utkarshonline.com
Princy
Top achievements
Rank 2
 answered on 22 Oct 2010
1 answer
102 views

 

 

Hello ,

I want to use RadAjaxLoadingPanel on masterpage  for RadTreeView .
when we click on the RadTreeView  node a loding panel should be display.

 

 

<

 

telerik:RadPanelBar ID="rpbMenu" runat="server" Width="100%" ExpandMode="FullExpandedItem"

 

 

CollapseAnimation-Type="None" AllowCollapseAllItems="false">

 

 

<Items>

 

 

<telerik:RadPanelItem Text="Full Menu" Expanded="true" Value="ids">

 

 

<ItemTemplate>

 

 

<telerik:RadTreeView ID="tvwMenu" runat="server" DataSourceID="smdsMenu" DataNavigateUrlField="Url"

 

 

DataTextField="Description" DataValueField="Title" >

 

 

</telerik:RadTreeView>

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelBar>

 

 

</telerik:RadSlidingPane>

Below are the implimentation

 

 

<telerik:RadAjaxManager ID="rajxMgrManageEmployee" runat="server">

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="rpbMenu">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="pnlContentID" LoadingPanelID="rajxLdpanManageEmployee" />

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

</AjaxSettings>

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="rajxLdpanManageEmployee" runat="server" Height="25px"

 

 

 

 

 

Width="25px" HorizontalAlign="Center">

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>


Please Help.

Thanx

 

Abdul Shaquoor

Sebastian
Telerik team
 answered on 22 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?