Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
102 views
hi,

i am showing cofirm using radcofirm as described in docs.
http://www.telerik.com/help/aspnet-ajax/window_dialogsconfirm.html

but the cancel button is not showing properly. what is the issue?
Svetlina Anati
Telerik team
 answered on 29 Dec 2009
2 answers
292 views

I am using RadControls for ASP.NET AJAX.

 

I have implemented a simple RadGrid, which consists of a GridTemplateColumn holding a RadNumericTextBox and an ImageButton.

 

If a value is written into the text box and enter is pressed, the “ontextchanged” event fires and operation “value_TextChanged” is called within the code behind. But in addition, the operation “RadGrid_ItemCommand” is called within code behind and the event arguments indicates, that command “WasteCommand” has been invoked, which is not true.

 

I have investigated, that the problem does not occur if a button is placed on the page in addition to the grid.

 

<body>

    <form id="form1" runat="server">

   

    <%--<asp:Button ID="Button1" runat="server" Text="Button" />--%>

   

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

   

   

<telerik:RadGrid ID="RadGrid_KVA"

    OnNeedDataSource="RadGrid_NeedDataSource"

    OnItemCommand="RadGrid_ItemCommand"

    runat="server">

   

    <MasterTableView  DataKeyNames="id" AutoGenerateColumns="False">                     

        <Columns>                                                 

           <telerik:GridTemplateColumn HeaderText="Value" UniqueName="columnValue">

           <ItemTemplate>    

               <telerik:RadNumericTextBox ID="Value" runat="server"  ontextchanged="value_TextChanged" Width="40px" >                       

               </telerik:RadNumericTextBox>

               <asp:ImageButton ID="WasteButton" runat="server" ImageUrl="btnCalculator.png"

                CommandName="WasteCommand" />                                   

           </ItemTemplate>

           </telerik:GridTemplateColumn>                                                                                  

        </Columns>                       

    </MasterTableView>               

</telerik:RadGrid>

   

    </form>

</body>

Frank Lemmen
Top achievements
Rank 1
 answered on 29 Dec 2009
2 answers
106 views
Hi

I am having a problem with my Grid Detail Table.

I have a grid and in the grid i have 2 template column, in one there is a textbox and in the other there is a numeric textbox. when i click the save button the rows in the grid has to be saved. i have also set a detail table in the grid.To get the value of each template field the code i have used is
protected void btnSave_Click(object sender, EventArgs e)
    {
if (!string.IsNullOrEmpty(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text))
           {
               decimal SuppliedQuantity = Convert.ToDecimal(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text);
               this.oFdrSuplInvDtls.Entity.SID_QTY = Convert.ToDecimal(SuppliedQuantity);
           }
}

Now when i try to save the data in the grid with the detail table in the expanded form i am not getting the value in the template column.Hence am getting an error message. This happens only if the detail grid is in the expanded form. Could anybody help me with this
Sharon
Top achievements
Rank 2
 answered on 29 Dec 2009
2 answers
83 views
Hi ,

I have an radgrid withit  a form template , my requirement is that when the edit form template is opened and the user clicks on
Add new record i need to close the edit form template of the grid . I tried setting IsItemInserted property of the mastertableview of the
grid to false but with no effect .

Would appreciate a quick relpy on this .

Regards
Ratheesh
Princy
Top achievements
Rank 2
 answered on 29 Dec 2009
6 answers
315 views
Hi,

I've a radeditor ctrl and user enters the contents there in it. I've  a "Preview" button which when clciked should popup a different window with the radeditor and its contents (just a preview)  to the user. I've the radeditor in .ascx file. I need to popup another window .
Pls help me with code.
Rumen
Telerik team
 answered on 29 Dec 2009
3 answers
85 views
I am unable to retrieve the DataKeyValue on Insert so I can reference the saved record from the code behind to do further processing.  How is this accomplished?
I have used the editeditem.datakeyvalues(e.item.itemindex)("ThisIDFieldName") with an index out of range error.
Tsvetoslav
Telerik team
 answered on 29 Dec 2009
5 answers
518 views
Hi,

I want to bind detail table of radgrid with collection of objects which is itself a property of master table's object.
For example:
I am binding grid with "Product" objects. "Product" object has one property which is a collection of discounts. I want to bind this discount collection for each product row in detail table.

All such examples on Telerik site are using SqlDataSource, ObjectdataSource which passes IDs to server side method which gives the dataset.

Here I have "Discount" collection filled up already when i am binding "Products" to the grid, so my concern is how can I use this "discount" collection to fill up my detail table.

Thanks in advance,
Vinayak

Tsvetoslav
Telerik team
 answered on 29 Dec 2009
1 answer
148 views

Dear Sir,
As you can see in the attached image, the GridClientSelectColumn is still selected even if i deselect on row.
which is not an expected behaviour.
can you tell me how to solve this issue?

<telerik:RadGrid   
    ID="GRD_Instances_Private"   
    Skin="Vista"   
    AutoGenerateColumns="False" 
    AllowMultiRowSelection="True"   
    runat="server"   
    GridLines="None">  
    <MasterTableView   
            ShowFooter="false"   
            CommandItemDisplay="Top"   
            DataKeyNames="ActivityUID,InstanceUID,Activity,Process" 
            ShowHeadersWhenNoRecords="true"   
            Dir="RTL"   
            HorizontalAlign="Center">  
            <Columns> 
                    <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn">  
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" /> 
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" /> 
                    </telerik:GridClientSelectColumn> 
        </Columns> 
    </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="true">  
            <Selecting AllowRowSelect="True" /> 
            <ClientEvents OnRowContextMenu="RowContextMenu_Private" OnRowDblClick="RowDblClick" /> 
        </ClientSettings> 
</telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 29 Dec 2009
1 answer
210 views
Hi,

A part of a system I am designing includes a scheduling requirement and I have chosen this control to be the front end.  I'm tossing up whether to use Google Calendar as the data store and write a custom provider for the RadCalendar or just use the database. 
I think having Google store the calendar data will make syncing with mobile devices a breeze hence my interest.  
I'm interested if anyone has used the Google Calendar API and their experience with connecting it up to RadCalendar?

Cheers,
Nick





Dimo
Telerik team
 answered on 29 Dec 2009
2 answers
181 views

Hi everyone,

I'm trying to drag a row from Grid1[grdUlcJobs] and drop it to Grid3[GridEng],which is nested in  Grid2[grdEngineers].The problem I'm facing here is that I'm not able to expand the row [dynamically]of grid2 so that grid3  becomes visible once the drop is done,but I'm able to make the row of grid2 selected and we have also been able to make the drop work successfully.This is the code for the grid,I have also attached the extract of the entire code where Iam trying to make this all work.

Could some one please have a look at it and tell me how to implement this?

 

<telerik:RadGrid ID="grdUlcJobs" runat="server" GridLines="None" AllowPaging="True" AllowMultiRowSelection="True" OnNeedDataSource="grdUlcJobs_NeedDataSource" OnColumnCreated="grdUlcJobs_ColumnCreated" OnRowDrop="grdUlcJobs_RowDrop"  EnableEmbeddedSkins="False" Skin="iMS_Skin" AllowFilteringByColumn="True">
                    <ClientSettings AllowRowsDragDrop="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
               <MasterTableView DataKeyNames="id">
               </MasterTableView>
                    <FilterMenu EnableEmbeddedSkins="False">
                    </FilterMenu>
                    <HeaderContextMenu EnableEmbeddedSkins="False">
                    </HeaderContextMenu>
                </telerik:RadGrid>

<telerik:RadGrid ID="grdEngineers" runat="server" DataSourceID="dsEngSumm" GridLines="None" OnRowDrop="grdEngineers_RowDrop" AllowSorting="True" OnNeedDataSource="grdEngineers_NeedDataSource" OnDetailTableDataBind="grdEngineers_DetailTableDataBind" AllowPaging="True" Skin="Sunset" AllowFilteringByColumn="True"  OnPreRender="grdEngineers_PreRender" OnItemCommand="grdEngineers_ItemCommand" OnItemCreated="grdEngineers_ItemCreated" >
                <MasterTableView AutoGenerateColumns="False" DataSourceID="dsEngSumm" AllowAutomaticDeletes="True" DataKeyNames="E_ID">
                    <Columns>
                        <telerik:GridBoundColumn DataField="E_ID" HeaderText="E_ID" SortExpression="E_ID"
                            UniqueName="E_ID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Engineer" HeaderText="Engineer" SortExpression="Engineer"
                            UniqueName="Engineer">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ECW" DataType="System.Int32" HeaderText="ECW"
                            ReadOnly="True" SortExpression="ECW" UniqueName="ECW">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PPM" DataType="System.Int32" HeaderText="PPM"
                            ReadOnly="True" SortExpression="PPM" UniqueName="PPM">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Tot" DataType="System.Int32" HeaderText="Tot"
                            ReadOnly="True" SortExpression="Tot" UniqueName="Tot">
                        </telerik:GridBoundColumn>
                    </Columns>
<%--                    <DetailTables>
                        <telerik:GridTableView runat="server" DataKeyNames="eng" AllowPaging="false">
                        </telerik:GridTableView>
                    </DetailTables>--%>
<NestedViewTemplate>
                    <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false">
                        <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"
                            SelectedIndex="0">
                            <Tabs>
                                <telerik:RadTab runat="server" Text="Sales" PageViewID="PageView1">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Contact Information" PageViewID="PageView2">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Statistics Chart" PageViewID="PageView3">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                            <telerik:RadPageView runat="server" ID="PageView1">
        <asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("E_ID") %>'
                                    Visible="false" runat="server" /> 
                                                         
<telerik:RadGrid ID="grdUlcJobs" runat="server" GridLines="None" AllowPaging="True" AllowMultiRowSelection="True" OnNeedDataSource="grdUlcJobs_NeedDataSource" OnColumnCreated="grdUlcJobs_ColumnCreated" OnRowDrop="grdUlcJobs_RowDrop"  EnableEmbeddedSkins="False" Skin="iMS_Skin" AllowFilteringByColumn="True">
                    <ClientSettings AllowRowsDragDrop="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
               <MasterTableView DataKeyNames="id">
               </MasterTableView>
                    <FilterMenu EnableEmbeddedSkins="False">
                    </FilterMenu>
                    <HeaderContextMenu EnableEmbeddedSkins="False">
                    </HeaderContextMenu>
                </telerik:RadGrid>                           
                               
                                   <telerik:RadGrid ID="GridEng" runat="server" GridLines="None" AllowPaging="True" AllowMultiRowSelection="True" EnableEmbeddedSkins="False" Skin="iMS_Skin" DataSourceID="dsEngSumm1" >
                                        <ClientSettings AllowRowsDragDrop="True">
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>
                                   <MasterTableView >
                                   </MasterTableView>
                                        <FilterMenu EnableEmbeddedSkins="False">
                                        </FilterMenu>
                                        <HeaderContextMenu EnableEmbeddedSkins="False">
                                        </HeaderContextMenu>
                                    </telerik:RadGrid>
 
                               
                             </telerik:RadPageView>
                            <telerik:RadPageView runat="server" ID="PageView2" Width="460px">
                                <div class="contactWrap">
                                 def
                                </div>
                            </telerik:RadPageView>
                            <telerik:RadPageView runat="server" ID="RadPageView3">
                                <div class="contactWrap">
                                 ABCD
                                </div>
            <asp:SqlDataSource ID="dsEngSumm1" runat="server" ConnectionString="<%$ ConnectionStrings:imsConnectionString %>"
                SelectCommand="SELECT [TQ_J_ID], [TQ_J_C_Number], [TQ_J_C_Date_ID], [TQ_DocketNo], [TQ_Position] FROM [T_TaskQueue] WHERE ([TQ_Engineer] = @TQ_Engineer)">
                <SelectParameters>
                    <%--<asp:Parameter Name="TQ_Engineer" Type="String" />--%>
                    <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="TQ_Engineer" />
                </SelectParameters>
            </asp:SqlDataSource>
                               
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </asp:Panel>
                </NestedViewTemplate>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>                   
                </MasterTableView>
                <ClientSettings AllowRowsDragDrop="True" AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="dsEngSumm" runat="server" ConnectionString="<%$ ConnectionStrings:imsConnectionString %>"
                SelectCommand="sp_engJobSumm" SelectCommandType="StoredProcedure"></asp:SqlDataSource>


.......the code behind file: code we are trying to make it work......
((GridDataItem)nestedview.ParentItem).Selected = true;

 

((GridDataItem)nestedview.ParentItem).Expanded = true;

((GridDataItem)nestedview.ParentItem).ChildItem.FindControl("InnerContainer").Visible = true;

 

Thanks

Nikolay Rusev
Telerik team
 answered on 29 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?