Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
607 views
Hi Telerik Team (or anyone else who can help),

I have spent all day searching to the ends of the internet to try to find out how to save all the data from a RadGrid at once. I have found many other people who want to do this, but cannot find a good answer as to how! I also have another post about this topic but no one has replied........... can it be done!

It is easy to populate the whole grid at one time, but as I have read many times about all the  Automatic Grid Saving Stuff there is no mention of how to save the whole grid at one time.  Our users want us to present them with a grid to fill in, then after they look at the whole thing and make sure they have everything correct - then they want us to save it. They don't want us to save one row at a time. Our upper management can't believe that there isn't a simple way to do this and right now they aren't thinking very highly of the Telerik package  they bought us!

We have a grid represented in the code below, and it loads great, and works great if you click on a row, edit it, then click on another row and it saves, but they don't want that. i was able to put a few lines of code in the page load that will make the whole grid editable, but then how do we save it? 

Is there a nice way I can use the Telerik RadGrid auto save stuff to save each row - maybe a loop to access each row then do something?  If I could have a save button then if that button is pressed execute a loop to access each row and call the UpdateCommand for each that would work but we can't quite figure out how to do it.

Here is my grid code, please let me know if you would like me to provide anything else:

Also - if there is a better way to do it, something else besides a grid to display data, edit then save it please let me know.

<body class="BODY">
    <form runat="server" id="mainForm" method="post" style="width: 100%;">
        <%--<telerik:Header runat="server" ID="Header1" NavigationLanguage="VB"></telerik:Header>--%>
        <!-- content start -->
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
        <!--
            var hasChanges, inputs, dropdowns, editedRow;
              
            function RowClick(sender, eventArgs)
            {
                if(editedRow && hasChanges)
                {
                    hasChanges = false;
                    if(confirm("Update changes?"))
                    {
                          
                        $find("<%= RadGrid1.MasterTableView.ClientID %>").updateItem(editedRow);
                    }
                }
                              
            }
  
            function RowDblClick(sender, eventArgs)
            {
                editedRow = eventArgs.get_itemIndexHierarchical();
                $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(editedRow);
            }
  
            function GridCommand(sender, args)
            {
                if (args.get_commandName() != "Edit")
                {
                    editedRow = null;
                }
            }
  
            function GridCreated(sender, eventArgs)
            {
                var gridElement = sender.get_element();
                var elementsToUse = [];
                inputs = gridElement.getElementsByTagName("input");
                for (var i = 0; i < inputs.length;i++)
                {
                    var lowerType = inputs[i].type.toLowerCase();
                    if(lowerType == "hidden" || lowerType == "button")
                    {
                        continue;
                    }
                      
                    Array.add(elementsToUse, inputs[i]);
                    inputs[i].onchange = TrackChanges;
                }
                  
                dropdowns = gridElement.getElementsByTagName("select");
                for (var i = 0; i < dropdowns.length;i++)
                {
                    dropdowns[i].onchange = TrackChanges;
                }
  
                setTimeout(function(){if(elementsToUse[0])elementsToUse[0].focus();},100);
            }
  
            function TrackChanges(e)
            {
                hasChanges = true;
            }
        --> 
    </script>
    </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="Label1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid 
            ID="RadGrid1" 
            DataSourceID="SessionDataSource1" 
            OnItemDataBound = "RadGrid1_ItemDataBound"
            Width="97%"
            ShowStatusBar="True" 
            AllowSorting="True" 
            PageSize="15" 
            GridLines="None" 
            AllowPaging="True"
            runat="server" 
            AllowAutomaticUpdates="True" 
            AutoGenerateColumns="False">
            <MasterTableView 
                        TableLayout="Fixed" 
                        DataKeyNames="checklistNo" 
                        EditMode="InPlace" >
              <Columns>
                <telerik:GridBoundColumn UniqueName="CategoryID" DataField="CategoryID" HeaderText="CategoryID" Display="false" ReadOnly="True" >
                    <HeaderStyle Width="10%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="checklistNo" DataField="checklistNo" HeaderText="checklistNo"  Display="False" ReadOnly="True" >
                    <HeaderStyle Width="25%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="Related_item_type_label" DataField="Related_item_type_label" HeaderText="Question"  ReadOnly="True">
                    <HeaderStyle Width="30%" />
                </telerik:GridBoundColumn>
                 <telerik:GridTemplateColumn>
                    <HeaderStyle Width="10%" />   
                    <ItemStyle Width="10%" />
                    <HeaderTemplate>     
                        <asp:Label ID="lblHeaderServiceImpact" Text="Service Impact" runat="server"></asp:Label>     
                    </HeaderTemplate>
                    <ItemTemplate>     
                        <asp:Label ID="lblServiceImpact1" Text='<%#Eval("Service_impact_category")%>' runat="server"></asp:Label>     
                    </ItemTemplate>     
                    <EditItemTemplate>
                       <telerik:RadTextBox AutoPostBack="true"  ReadOnly="true" ID="lbllblServiceImpact" runat="server"  Text='<%#Eval("Service_impact_category")%>' BorderStyle="None">
                       </telerik:RadTextBox>
                    </EditItemTemplate>
                 </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn>
                    <HeaderStyle Width="17%" />   
                    <ItemStyle Width="17%" />
                    <HeaderTemplate>     
                        <asp:Label ID="lblHeaderInspectionResult" Text="Inspection Result" runat="server"></asp:Label>     
                    </HeaderTemplate>
                    <ItemTemplate>     
                        <asp:Label ID="lblInspectionResult1" Text='<%#Eval("INSPECTION_RESULT")%>' runat="server"></asp:Label>     
                    </ItemTemplate>     
                    <EditItemTemplate>
                       <telerik:RadTextBox AutoPostBack="true" visible="False" ID="lblInspectionResult" runat="server"  Text='<%#Eval("INSPECTION_RESULT")%>'>
                       </telerik:RadTextBox>
                       <telerik:RadComboBox visible="True" ID="cbInspectionResult" AppendDataBoundItems="true" runat="server"  >
                       </telerik:RadComboBox>
                    </EditItemTemplate>
                 </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn>
                    <HeaderStyle Width="17%" />   
                    <ItemStyle Width="17%" />
                    <HeaderTemplate>     
                        <asp:Label ID="lblHeaderInspectionFault" Text="Inspection Fault" runat="server"></asp:Label>     
                    </HeaderTemplate>
                    <ItemTemplate>     
                        <asp:Label ID="lblInspectionFault1" Text='<%#Eval("INSPECTION_FAULT")%>' runat="server"></asp:Label>     
                    </ItemTemplate>     
                    <EditItemTemplate>
                       <telerik:RadTextBox AutoPostBack="true" visible="False" ID="lblInspectionFault" runat="server"  Text='<%#Eval("INSPECTION_FaULT")%>'>
                       </telerik:RadTextBox>
                       <telerik:RadComboBox visible="True" ID="cbInspectionFault" AppendDataBoundItems="true" runat="server"  >
                       </telerik:RadComboBox>
                    </EditItemTemplate>
                 </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn>
                    <HeaderStyle Width="20%" />   
                    <ItemStyle Width="20%" />
                    <HeaderTemplate>     
                        <asp:Label ID="lblInspectionCommentHeader" Text="Comments" runat="server"></asp:Label>     
                    </HeaderTemplate>
                    <ItemTemplate>     
                        <asp:Label ID="lblInspectionComment" Text='<%#Eval("INSPECTION_COMMENT")%>' runat="server"></asp:Label>     
                    </ItemTemplate>     
                    <EditItemTemplate>
                       <telerik:RadTextBox  Width="100%" AutoPostBack="true" visible="True" ID="txtInspectionComment" runat="server"  Text='<%#Eval("INSPECTION_COMMENT ")%>'>
                       </telerik:RadTextBox>
                    </EditItemTemplate>
                 </telerik:GridTemplateColumn>
              </Columns>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents 
                    OnRowClick="RowClick"
                    OnRowDblClick="RowDblClick"
                    OnGridCreated="GridCreated" 
                    OnCommand="GridCommand" />
            </ClientSettings>
        </telerik:RadGrid>
        <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="180px" />
        <telerik:GridDropDownListColumnEditor ID="GridDropDownListColumnEditor1" runat="server" DropDownStyle-Width="70px" />
        <telerik:GridCheckBoxColumnEditor ID="GridCheckBoxColumnEditor1" runat="server" CheckBoxStyle-BorderWidth="2" />
        <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server" NumericTextBox-Width="50px" />
        <br />
        <asp:Label ID="Label1" runat="server" EnableViewState="false" />
        <br />
        <asp:SqlDataSource 
            ID="SessionDataSource1"
            runat="server" 
            ConnectionString="<%$ ConnectionStrings:OracleConnectionString %>"
            ProviderName="<%$ ConnectionStrings:OracleConnectionString.ProviderName %>" 
            SelectCommand="SELECT categoryid, category_name, checklistNo, ROWNUM || ') ' || related_item_type_label AS related_item_type_label, inspection_Result, inspection_fault, service_impact_category, inspection_comment FROM ( SELECT categoryid || ' - ' || category_name categoryid, category_name, checklistNo, MAX( related_item_type_label ) AS related_item_type_label, MAX( inspection_Result ) AS inspection_Result,MAX( inspection_fault ) AS inspection_fault, MAX( service_impact_category ) AS service_impact_category, MAX( inspection_comment ) AS inspection_comment FROM(SELECT categoryid,category_name,checklistNo,DECODE( INSTR( related_item_type,'INSPECTION_RESULT'),0,NULL, related_item_type_label ) related_item_type_label,DECODE( INSTR( related_item_type,'INSPECTION_RESULT'),0,NULL, DECODE( related_item_value, NULL, default_value, related_item_value ) ) inspection_Result,DECODE( INSTR( related_item_type,'INSPECTION_FAULT'),0,NULL, DECODE( related_item_value, NULL, default_value, related_item_value ) ) inspection_fault,DECODE( INSTR( related_item_type,'SERVICE_IMPACT_CATEGORY'),0,NULL, DECODE( related_item_value, NULL, default_value, related_item_value ) ) service_impact_category,DECODE( INSTR( related_item_type,'INSPECTION_COMMENT'),0,NULL, DECODE( related_item_value, NULL, default_value, related_item_value ) ) inspection_comment FROM( SELECT v.view_name,v.item_type_order,v.related_item_type_label,v.related_item_type,SUBSTR(v.related_item_type, -5) checklistNo,d.related_item_value,( SELECT valid_type_rule_value FROM pimmds.valid_type_rules r WHERE r.valid_type_rule = 'VALID VALUE DEFAULT' AND r.item_type = v.related_item_type AND SYSDATE BETWEEN r.effectivity_in AND r.effectivity_out ) default_value, d.created_by, DECODE( c.categoryid,NULL,'91',c.categoryid) AS categoryid,c.category_name FROM PIMMDS.relationship_views v,( SELECT a.item_type, a.item_value, b.item_type related_item_type, b.item_value related_item_value, c.created_by FROM pimods.items a, pimods.items b, pimods.relationships c WHERE a.item_no = c.parent_item_no AND b.item_no = c.child_item_no AND a.item_type = 'INSPECTION_SEQUENCE_NUMBER' AND a.item_value = :ISN AND SYSDATE BETWEEN c.effectivity_in AND c.effectivity_out) d,(SELECT SUBSTR(related_item_type,-2) categoryid, related_item_type_value category_name FROM pimmds.relationship_views v WHERE view_name = 'Clearwire Quality Control Checklist' AND related_item_type LIKE 'INSPECTION_CATEGORY%' AND SYSDATE BETWEEN v.effectivity_in AND v.effectivity_out ) c WHERE v.view_name = 'Clearwire Quality Control Checklist Update' AND ( v.related_item_type LIKE 'INSPECTION_RESULT%' OR v.related_item_type LIKE 'INSPECTION_FAULT%' OR v.related_item_type LIKE 'SERVICE_IMPACT_CATEGORY%' OR v.related_item_type LIKE 'INSPECTION_COMMENT%') AND substr(v.related_item_type,-5,2) = :CATEGORYID AND v.item_type = d.item_type (+) AND v.related_item_type = d.related_item_type (+) AND SUBSTR( v.related_item_type,-5,2) = c.categoryid (+) ) ) GROUP BY categoryid, category_name,checklistNo ORDER BY checklistNo )"
            UpdateCommand="PIMMDS.QC_PROCESS_DATA_FLOW.deltaRDSInspection"
            OldValuesParameterFormatString="original_{0}"
            ConflictDetection="CompareAllValues"
            UpdateCommandType="StoredProcedure">
            <UpdateParameters>
                <asp:Parameter Name="L_INSPECTION_SN" Type="String" />
                <asp:Parameter Name="L_LINE" Type="String" />
                <asp:Parameter Name="L_RESULTS" Type="String" />
                <asp:Parameter Name="L_FAULTS" Type="String" />
                <asp:Parameter Name="L_COMMENTS" Type="String" />
            </UpdateParameters>
            <SelectParameters>
                <asp:Parameter Name="ISN" Type="String" Direction="Input" />
                <asp:Parameter Name="CATEGORYID" Type="String" Direction="Input" />
            </SelectParameters>
        </asp:SqlDataSource>
        <!-- content end -->
        <%--<telerik:Footer runat="server" ID="Footer1"></telerik:Footer>--%>
    <table>
                <tr>
                <td> </td><td> </td><td> </td> <td> </td>
                    <td align="center" >
                        <asp:Button  ID="btnsave" runat="server" OnClick="btnsave_click" Font-Size="Small" causesvalidation="false" Text="Save Data" /> </td>
                </tr>
    </table>
    </form>
</body>

 

 

Mira
Telerik team
 answered on 07 Oct 2010
4 answers
105 views
Hello,
I populate aRadreeview on the server with lot of nodes.
I would like to display the first checked node.
Is there any way to do that ?
Regards
Bernard
Top achievements
Rank 1
 answered on 07 Oct 2010
2 answers
421 views

Hi guys,

I was wondering if it's possible to show the loading icon without having the whole panel grayed out. I thought the Transparency property only affect the area around the loading icon but it does affect the icon also.

So what I would like to have is the loading icon with a Transparency of 0 and the area around it with a transparency of 100.

Is it possible to achieve that?

Thanks for the reponse,

Alex 
Alex Edmé
Top achievements
Rank 1
 answered on 07 Oct 2010
5 answers
39 views
Hi,

There appears to be an intermittent bug with the Telerik editor where the text continually shrinks when you re-apply head styles to text.

To reproduce the problem:

- Create a line of text and style it from the drop-down to Heading 5 etc.
- Create another line beneath the first one styled as a different head style.
- Highlight the first line and change the heading style to something different and then back to Heading 5, the text will shrink each time you select a new style.

The HTML generated ends up looking something like this:

<h2>
<h5>
<h5>
<h5>Head</h5>
Head2</h5>
</h5>
</h2>
<p> </p>

It looks like there's a problem with the editor figuring out where in the text you're selecting and surrounding the wrong text with the new tags.

Thanks
Rumen
Telerik team
 answered on 07 Oct 2010
1 answer
59 views
Hi all,
I have a problem with RadEditor control when I used it for create an email contents. I want to save all text has been input on it for editing purpose later but these text  are not appear when I choosen an item for editing, although I save it successfully. (I working on WSS 4.0)
Please, tell me how to resolve that problem!.
Thanks alot!.
Stanimir
Telerik team
 answered on 07 Oct 2010
3 answers
133 views

Hey,

I currently have a grid that lists  many GridTemplateColumns within it. Three of these columns contain RadComboBoxes in them. The first cascades down to the two below it. When I change the selectedIndex of the first combo box, I trigger a postback which then fills the other two combo boxes with the appropriate values. This is all done without using an edit button, every line is editable when the grid is loaded. When the postback is triggered, it takes the grid a long time even though the code behind the selectedIndexChanged is empty and does not do anything. Do you know how I could do this without using a postback and so it only updates/looks at the line (javascript?), or to speed this postback up? I have attached the code I am using from the grid, and any help would be greatly appreciated.

It appears that when I select one RadComboBox, the postback goes through and touches every Item in teh RadGrid. I figure this because the more items that are returned into the grid, the longer it takes to fill the combo boxes for that line. Is there a way to only look at the line I am currently working on?

Thanks,
Ryan



<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="Default" InitialDelayTime="500">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel">
            <telerik:RadGrid ID="grdRIExceptions" runat="server" GridLines="None" 
                AutoGenerateColumns="False" Width="100%" AllowPaging="True" PageSize="50" 
                DataSourceID="ExceptionDataSource">
                <GroupingSettings CaseSensitive="False" GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;" />
                <ClientSettings>
                    <Scrolling ScrollHeight="500px" />
                </ClientSettings>
                <GroupHeaderItemStyle Font-Bold="True" Font-Size="12px" ForeColor="#333333" />
                <MasterTableView NoMasterRecordsText="There are no exceptions in your region with the set filters." 
                    DataKeyNames="CUST_No,STC_Code,INV_PrevDocNo" ClientDataKeyNames="CUST_No" 
                    DataSourceID="ExceptionDataSource" Width="100%">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <CommandItemSettings />
                    <Columns>
                        <telerik:GridBoundColumn DataField="CUST_No" EditFormHeaderTextFormat="{0}&nbsp;:" HeaderText="Customer No" UniqueName="CUST_No" Visible="False">
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="CUST_Name" EditFormHeaderTextFormat="{0}&nbsp;:" HeaderText="Cust." SortExpression="CUST_Name" UniqueName="CUST_Info">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnViewCustomerInfo" runat="server">View</asp:LinkButton>
                                <asp:Label ID="lblCustNo" runat="server" Font-Underline="True" Text='<%# Eval("CUST_No") %>' Visible="False"></asp:Label>
                                <asp:Label ID="lblCustName" runat="server" Text='<%# Eval("CUST_Name") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblCustDisplay" runat="server" Text='<%# Eval("CUST_Name") + "(" + Eval("CUST_No") + ")" %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="30px" Wrap="True" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="CUST_Name" HeaderText="Customer" UniqueName="CustomerName" Display="False">
                            <ItemTemplate>
                                <asp:Label ID="lblCustDisplay2" runat="server" Text='<%# Eval("CUST_Name") + "(" + Eval("CUST_No") + ")" %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="275px" Wrap="True" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Rental Order" UniqueName="NumOfRentalOrders">
                            <ItemTemplate>
                                <asp:Label ID="lblRONo" runat="server" Text='<%# Eval("INV_PrevDocNo") %>'></asp:Label>
                                <asp:Label ID="lblPrevDocType" runat="server" Text='<%# Eval("INV_PrevDocType") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" HorizontalAlign="Left" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="INV_No" HeaderText="Inv/CM No." UniqueName="column1">
                            <ItemTemplate>
                                <asp:Label ID="lblInvNo" runat="server" Text='<%# Eval("INV_No") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="INV_PostDate" HeaderText="Inv/CM Date" UniqueName="column">
                            <ItemTemplate>
                                <asp:Label ID="INV_PostDateLabel" runat="server" Text='<%# Eval("INV_PostDate") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" Width="75px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Ship-to Information" UniqueName="STC_Code" DataField="STC_Code" GroupByExpression="STC_Code" SortExpression="STC_Code">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCCode" runat="server" Text='<%# Eval("STC_Code") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCName" runat="server" Text='<%# Eval("STC_Name") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCUnlinked" runat="server" Text='<%# Eval("STC_Unlinked") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSTCDisplay" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False" HorizontalAlign="Left" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_City" GroupByExpression="STC_City" HeaderText="City" SortExpression="STC_City" UniqueName="STC_City">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCCity" runat="server" Text='<%# Eval("STC_City") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" Width="100px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_State" GroupByExpression="STC_State" HeaderText="State" SortExpression="STC_State" UniqueName="STC_State">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCState" runat="server" Text='<%# Eval("STC_State") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="28px" Wrap="True" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="STC_Zip" GroupByExpression="STC_Zip" HeaderText="Zip Code" SortExpression="STC_Zip" UniqueName="STC_Zip">
                            <ItemTemplate>
                                <asp:Label ID="lblSTCZip" runat="server" Text='<%# Eval("STC_Zip") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="55px" Wrap="True" HorizontalAlign="Right" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Fix Type" UniqueName="FixType">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cboExceptionFixType" Runat="server" Width="125px" AutoPostBack="True" MarkFirstMatch="True" OnSelectedIndexChanged="cboExceptionFixType_SelectedIndexChanged" DropDownWidth="175px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Skip" Value="Select" />
                                        <telerik:RadComboBoxItem runat="server" Text="Always on this Address" Value="STC" />
                                        <telerik:RadComboBoxItem runat="server" Text="This Contract Only" Value="RO" />
                                    </Items>
                                </telerik:RadComboBox>
                                <asp:CheckBox ID="chkFixed" runat="server" Visible="False" />
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" Width="120px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Assign Salesperson / Branch" UniqueName="AssignSP">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cboExceptionSalesperson" runat="server" Width="125px" DropDownWidth="175px" Height="400px" Enabled="False"  AutoPostBack="True" MarkFirstMatch="True" DataTextField="SP_Name" DataValueField="SP_Code" OnSelectedIndexChanged="cboExceptionSalesperson_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Select Salesperson" Value="" />
                                    </Items>
                                </telerik:RadComboBox>
                                   
                                <telerik:RadComboBox ID="cboExceptionBranch" runat="server" AutoPostBack="False" Width="125px" DropDownWidth="175px" MarkFirstMatch="True" Enabled="False" DataTextField="Code" DataValueField="Code">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="True" Text="Select Branch" Value="" />
                                    </Items>
                                </telerik:RadComboBox>
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" Width="315px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="False" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
3 answers
89 views
Hi,
          I have a page with grid having the radUpload inside. Everything is configured and working. Now, this page is a content page. So, everything is basically inside a ajaxpanel.
          Issue is that if i use the ajaxmanager in the master page. The loading panel shows up but if i use the ajaxpanel then only for this content page the loading panel does not show up automatically. 
          I assume the issue is due to the radUpload. So, what am i suppose to do ?

Thanks,

Regards,

Osman
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
1 answer
114 views
Hi All,

I have installed telerik sharepoint controls on the sharepoint foundation 2010 website and using radeditor on the site for editing wiki pages. the issue is when i am adding a new page than RadEditor loads and works fine. After saving and closing the page the content get saved but when i edit the page than radeditor control does not load properly and give the javascript error message "Telerik is not defined". Please see the attached images for details.

The other thing that i have noticed is that, On the default sharepoint website radeditor is working fine in the edit mode but if i made some changes in the wikipage and close it then system still shows the old content. Only the first time content entered through the radeditor were saved during creation of a new wiki page.

Please help me that how can i solve this issue.

Thanks,

Stanimir
Telerik team
 answered on 07 Oct 2010
5 answers
60 views
Hello,

I'm using a PopUp edit form on my RadGrid.  In the user control all the textboxes, dropdowns, and checkboxes are not inside any other controls.  I can "Bind" all my fields and do updates to the data  but as soon as I add a RadTabStrip/RadMultiPage (or nest any of the form input controls inside any other control) the fields will populate with the correct data but I can't update the data in the database.  Any ideas as to why this may be happening?

Thanks In Advance,
Larry
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
1 answer
108 views
Hi,
Could you provide an examples how can I set the event argument to eventArgs parameter of OnRespondEnd. Basically, i have an ajaxified RadGrid through RadAjaxManager. After adding an entry to this grid, i need to carry this new entry's id to do some other operations on client side. So the function OnResponseEnd look like this
function OnResponseEnd(sender, eventArgs)
{
if (eventArgs.get_eventTarget() == "grdProjectTask$ctl00$ctl02$ctl01$btnUpdate")
  {
   var taskId = eventArgs.get_eventArgument();
                    AddAlertToNewTask(taskId)
  }
 
  }

I need the taskId in the function OnResponseEnd. Do i need to inject somewhere in ItemCommand of the Grid so that after "Insert" an entry, OnResponseEnd will have it's id.
Thank you,
Tsvetina
Telerik team
 answered on 07 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?