Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
Hi,

I have grid view with update, add new and delete functionality. I use datasource to that operation. When i update data some data is not updating. As my focus textboxes filed cant update. Other data is updating. I highligtht below wich columns are not update

 <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" Width="750px"
            AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                                        GridLines="None" DataSourceID="SqlTransmital"
                                AllowSorting="True" Skin="Web20"
            ClientDataKeyNames="VTransID"  DataMember="DefaultView" >
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="VTransID"
                                    CommandItemDisplay="Top" AllowAutomaticDeletes="true"
                                    AllowAutomaticInserts="true" AllowAutomaticUpdates="true">                                
                                  <Columns>
                                      <telerik:grideditcommandcolumn ButtonType="ImageButton">
                                      </telerik:GridEditCommandColumn>
                                        
                                        
                                        <telerik:gridtemplatecolumn UniqueName="VReasonforIssueID"
                                          HeaderText="Reason for Issue" DataField="VReasonforIssueID">
                                 <ItemTemplate>                                 
                                 <asp:Literal ID="ltrREason" runat="server"  Text ='<%#Eval("VReasonForIssue") %>' ></asp:Literal>
                                          
                                 </ItemTemplate>
                                 <EditItemTemplate>
                                 
                                 <telerik:radcombobox runat="server"
                                             ID="ddlReasonEdit"
                                             DataTextField="VReasonForIssue"
                                             DataValueField="VReasonforIssueID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="200px"
                                             DropDownWidth="200px"
                                             EnableItemCaching="True"
                                             EnableLoadOnDemand="True"
                                             emptymessage="Please select one..."
                                             allowcustomtext="True"
                                                DataSourceID="sqlReason"
                                                SelectedValue='<%#Bind("VReasonforIssueID") %>'></telerik:RadComboBox>
                                                
                                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="ddlReasonEdit" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                  
                                 </EditItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        
                                        
                                         <telerik:gridtemplatecolumn UniqueName="VendorDocRev"
                                          HeaderText="Vendor Doc Rev" DataField="VendorDocRev">
                                         <ItemTemplate>
                                         
                                         <asp:Literal ID="ltrVendorDocRev" runat="server"     Text ='<%#Bind("VendorDocRev") %>' ></asp:Literal>
                                         </ItemTemplate>
                                         
                                         <EditItemTemplate>                                         
                                            <asp:TextBox ID="VendorDocRev"  Text ='<%#Eval("VendorDocRev") %>' runat="server"></asp:TextBox>
                                         
                                           
                                         </EditItemTemplate>
                                         </telerik:GridTemplateColumn>     
                                       
 
                                                                     
                                        <telerik:gridtemplatecolumn UniqueName="VendorTransDate"
                                          HeaderText="Vendor Incoming Trans Date" DataField="VendorTransDateF">
                                         <ItemTemplate>
                                         
                                         <asp:Literal ID="TDate" runat="server"     Text ='<%#Bind("VendorTransDateF") %>' ></asp:Literal>
                                         
                                            
                                         
                                         </ItemTemplate>
                                         
                                         <EditItemTemplate>
                                             <telerik:raddatepicker ID="RadOurTransDateEdit" runat="server"
                                                 DbSelectedDate='<%#Bind("VendorTransDate") %>' Width="100px"  
                                                 DateInput-DateFormat="dd/MM/yyyy"  >
                                             </telerik:RadDatePicker>
                                         
                                         </EditItemTemplate>
                                         </telerik:GridTemplateColumn>                                
                                                                                
                                        
                                        <telerik:gridtemplatecolumn UniqueName="VendorTransNo"
                                          HeaderText="Vendor Trans No" DataField="VendorTransNo">
                                         <ItemTemplate>
                                         
                                         <asp:Literal ID="ltrVendorTransNo" runat="server"     Text ='<%#Bind("VendorTransNo") %>' ></asp:Literal>
                                         </ItemTemplate>
                                         
                                         <EditItemTemplate>                                         
                                            <asp:TextBox ID="VendorTransNo" Text ='<%#Eval("VendorTransNo") %>' runat="server"></asp:TextBox>
                                         
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                                ControlToValidate="VendorTransNo" ErrorMessage="*"
                                                ValidationExpression="^[0-9]+$">
                                            </asp:RegularExpressionValidator>                                              
                                         
                                         </EditItemTemplate>
                                         </telerik:GridTemplateColumn>  
                                   
      
                                                                                                                      
                                        <telerik:GridBoundColumn DataField="VOurDocRev" HeaderText="Cam Doc Rev"  
                                            UniqueName="VOurDocRev">
                                        </telerik:GridBoundColumn>
                                                                                
                                        <telerik:GridTemplateColumn UniqueName="VOurTransRetDate"
                                          HeaderText="Cam to Vendor Trans Date" DataField="VOurTransRetDateF">
                                         <ItemTemplate>
                                             <asp:Literal ID="TCDate" runat="server"     Text ='<%#Bind("VOurTransRetDateF") %>' ></asp:Literal>

                                            
                                         
                                         </ItemTemplate>
                                         
                                         <EditItemTemplate>
                                             <telerik:raddatepicker ID="RadCRtrnDateEdit" runat="server"
                                                 DbSelectedDate='<%#Bind("VOurTransRetDate") %>' Width="100px"  
                                                 DateInput-DateFormat="dd/MM/yyyy">
                                             </telerik:RadDatePicker>
                                         
                                         </EditItemTemplate>
                                         </telerik:GridTemplateColumn>
                                                                               
                                                                              
                                       
                                       <telerik:gridtemplatecolumn UniqueName="VOurRtrnTransNo"
                                          HeaderText="VOur Rtrn Trans No" DataField="VOurRtrnTransNo" >
                                         <ItemTemplate>
                                         
                                         <asp:Literal ID="ltrVOurRtrnTransNo" runat="server"     Text ='<%#Bind("VOurRtrnTransNo") %>' ></asp:Literal>
                                         </ItemTemplate>
                                         
                                         <EditItemTemplate>                                         
                                            <asp:TextBox ID="VOurRtrnTransNo" Text ='<%#Eval("VOurRtrnTransNo") %>'  runat="server"></asp:TextBox>
                                         
                                         
                                         
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                                                ControlToValidate="VOurRtrnTransNo" ErrorMessage="*"
                                                ValidationExpression="^[0-9]+$">
                                            </asp:RegularExpressionValidator>                                              
                                         
                                         </EditItemTemplate>
                                         </telerik:GridTemplateColumn>
                                     
    
 
                                      
                                        <telerik:gridtemplatecolumn UniqueName="OurRtrnCodeID"
                                          HeaderText="Cam Return Code" DataField="OurRtrnCode">
                                         <ItemTemplate>
                                         
                                          <asp:Literal ID="ltrClientRtn" runat="server"     Text ='<%#Eval("OurRtrnDescription") %>' ></asp:Literal>
                                          
                                 
                                                                                         
                                 </ItemTemplate>
                                 <EditItemTemplate>
                                 
                                 <telerik:radcombobox runat="server"
                                             ID="ddlClientReturnEdit"
                                             DataTextField="ReturnDescription"
                                             DataValueField="OurRtrnCodeID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="200px"
                                             EnableItemCaching="True"
                                             EnableLoadOnDemand="True"
                                             DropDownWidth="200px"
                         emptymessage="Please select one..."
                                             allowcustomtext="True"
                                                DataSourceID="sqlClientReturn"
                                                SelectedValue='<%#Bind("OurRtrnCodeID") %>'></telerik:RadComboBox>
                     
                                 
                                 </EditItemTemplate>
                                 
                                 </telerik:GridTemplateColumn>
                                        <telerik:gridbuttoncolumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure delete this record?"
                                        Text="Delete" UniqueName="column1">
                                    </telerik:GridButtonColumn>
                                    </Columns>
                                <EditFormSettings>

             <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                    </EditColumn>

                                </EditFormSettings>
                                </MasterTableView>
                                  </telerik:RadGrid>
                           
                                <asp:SqlDataSource ID="SqlTransmital"
                                    
                                    ConnectionString="<%$ ConnectionStrings:SiteSqlServer1 %>"
                                    SelectCommand="SELECT convert(varchar(10),VendorTransDate,103) as VendorTransDateF,convert(varchar(10),VOurTransRetDate,103) as VOurTransRetDateF, * FROM [qry_data_VendorTransmittals] WHERE (DocNo = @DocNo)"
                                    DeleteCommand ="Delete from [tbl_DATA_VendorTransmittals] where VTransID=@VTransID"
                                    
                                    InsertCommand="insert into tbl_DATA_VendorTransmittals ([VendorDocRev],[VendorTransDate],VReasonforIssueID,
                                    [VOurTransRetDate],[VOurRtrnTransNo],OurRtrnCodeID,DocNo,[VendorTransNo],VOurDocRev) values(@VendorDocRev,@VendorTransDate,
                                    @VReasonforIssueID,@VOurTransRetDate ,@VOurRtrnTransNo,@OurRtrnCodeID,@DocNo,@VendorTransNo,@VOurDocRev) "
                                    
                                    UpdateCommand="update tbl_DATA_VendorTransmittals set [VendorDocRev]=@VendorDocRev, [VendorTransDate]=@VendorTransDate,[VendorTransNo]=@VendorTransNo,
                                    VReasonforIssueID=@VReasonforIssueID, [VOurTransRetDate]=@VOurTransRetDate,
                                    [VOurRtrnTransNo]=@VOurRtrnTransNo,OurRtrnCodeID=@OurRtrnCodeID, VOurDocRev=@VOurDocRev where VTransID=@VTransID" runat="server">
                                                                                
                                    
                                  <SelectParameters>                                                                           
                                        <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />
                                    </SelectParameters>
                                    <DeleteParameters>
                                        <asp:Parameter Name="VTransID" Type="Int32" />
                                    
                                    </DeleteParameters>
                                    
                                    <UpdateParameters>
                                    <asp:Parameter Name="VTransID" Type="Int32" />                                    
                                    <asp:Parameter Name="VendorDocRev" Type="String" />
                                    <asp:Parameter Name="VendorTransDate" Type="DateTime" />
                                    <asp:Parameter Name="VendorTransNo" Type="Int32" />
                                    <asp:Parameter Name="VReasonforIssueID" Type="Int32" />
                                    <asp:Parameter Name="VOurTransRetDate" Type="DateTime" />
                                    
                                <asp:Parameter Name="VOurRtrnTransNo" Type=String  />
                                    <asp:Parameter Name="OurRtrnCodeID" Type="Int32" />
                                    <asp:Parameter Name="VOurDocRev" Type="String" />
                                    
                                    </UpdateParameters>
                                    
                                    <InsertParameters>
                                    <asp:Parameter Name="VOurDocRev" Type="String" />
                                    <asp:Parameter Name="VTransID" Type="Int32" />                                    
                                    <asp:Parameter Name="VendorDocRev" Type="String" />
                                    <asp:Parameter Name="VendorTransDate" Type="DateTime" />
                                    <asp:Parameter Name="VendorTransNo" Type="Int32" />
                                    <asp:Parameter Name="VReasonforIssueID" Type="Int32" />
                                    <asp:Parameter Name="VOurTransRetDate" Type="DateTime" />
                                    <asp:Parameter Name="VOurRtrnTransNo" Type="Int32" />
                                    <asp:Parameter Name="OurRtrnCodeID" Type="Int32" />                                    
                                    <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />
                                    
                                    </InsertParameters>
                                </asp:SqlDataSource>
      
Only bold feilds are not updating. Others updating is fine

krds
lakmal

lakmal
Top achievements
Rank 2
 answered on 26 Jan 2010
4 answers
133 views
I've followed the installation instructions from here: http://www.telerik.com/help/aspnet-ajax/installing-radeditor-in-moss-2007-farm.html

  1. I've Installed asp.net 2.0 extensions 1.0
  2. added all those items to the web.conf for the web app as posted here: http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3
  3. I've added the script manager to the masterpage
  4. I uninstalled both features and made it available from for activation on the site collection level
  5. I've iisreset everything.
  6. features are activated

its still not being displayed when i edit a list item.

plz help.

Thomas
Top achievements
Rank 1
 answered on 26 Jan 2010
8 answers
114 views
Hi:

I am trying to launch a RadWindow from a Master/Detail RadGrid.  Once all editing is done would like to rebind the data in the source detail part of the grid.  Lauched grid like I have done in the past, but now need to disable viewstate.  Have JavaScript to tell host page that I am closing and should rebind (fine there too).  Host page is AjaxManager request event is posted and the data bind command is executed.
RadGrid1.DataBind() 
But the grid seem to be the same.  So is the above sufficient to bind the detail data? 
Secondly, I was thinking that ajaxs needs to understand to refresh that control, so I added RadAjaxManager to the grid and the manager and then the RadWindow stopped launching.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
How can I keep the window launching?
Phil

Phil
Top achievements
Rank 2
 answered on 26 Jan 2010
2 answers
112 views
Is there something different about a RadCombo box and how it is rendered with the width property? When ever I set the width property to the same width as another control (usually a text box) I notice that the rendered combo width is usually not as wide as the other controls set to the same width. Looks like it around 5 pixels shorter. I always have to tweak it to make it line up with the other controls on the page.

Teodorico
Top achievements
Rank 1
 answered on 26 Jan 2010
2 answers
168 views
Hi Telerik team!
I'm having trouble with the RadCaptcha and I'm hoping you can show me what I'm doing wrong.  I have a web garden and I have set the handler's path to "Telerik.Web.UI.WebResourceSession".  When I clicked "Generate New Image" and entered the resulting code, the IsValid property is false during postback.  If I use the initial image and not generate a new one, the entered code will be accepted.  Below is the aspx code:

 

 

 

      <p> 
        <asp:Label runat="server" AssociatedControlID="m_captchaText" 
          style="display:block !important;font-size:smaller;color:Gray" 
          Text="This verification deters automated registrations" /> 
        <asp:TextBox ID="m_captchaText" runat="server" MaxLength="10" /> 
      </p> 
      <telerik:RadCaptcha ID="m_captcha" runat="server"   
        ProtectionMode="Captcha" EnableRefreshImage="true" 
        ImageStorageLocation="Session" MinTimeout="3" 
        ValidatedTextBoxID="m_captchaText">  
        <CaptchaImage BackgroundColor="#DBEAF5" BackgroundNoise="Low" 
          FontWarp="Low" LineNoise="Medium" TextColor="#336699" 
          TextLength="5" UseRandomFont="true" RenderImageOnly="true" /> 
      </telerik:RadCaptcha> 

Thank you for your help.

Eric Yee
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
135 views
Is it possible to persist the expanded state of a hierarchical grid when the user leaves the page and then returns at a later point?

I've tried a few of the methods described in the forum related to hashtables and viewstates and I can't seem to get it to work.

Basically we have a hierarchical grid with 3 levels that is contained within an updatepanel and that gets its data from OnNeedDataSource. The grid has links within it with which the user may navigate off of the page. But when they return we'd like to have them come back to the same expanded view they had originally without having to re-expand each of the levels.

Any guidance would be much appreciated - thanks!
Schlurk
Top achievements
Rank 2
 answered on 25 Jan 2010
1 answer
160 views
I am using the example here:


to preserve the expanded states of groups across postbacks. I am finding a situation where it is failing and I'm not sure why. For example, if I populate the grid, and expand a group, then refresh the page, the groups are expanded as expected. See Image 1. But, I have the grid set for AllowRowSelect in the ClientSettings of the grid. If I display the grid, expand a group and select a row, the row highlights as expected and the group stays expanded. If I then cause a refresh by clicking on a button on the page that rebinds the grid, the grid is expanded, and the group stays expanded. So far so good. But, after that, if I select a row, the grid group collapses, with the indicator left in the expanded state. See image 2. Even if the SelectedIndexChanged method is not set, the expanded state of the grid reverts to all groups collapsed, but the expanded buttons showing they're expanded.
neebs
Top achievements
Rank 2
 answered on 25 Jan 2010
2 answers
174 views
Hey everyone,
We have been having issues with Telerik RadGrid in Firefox and also IE8 to some degree. I wasn't aware that using Telerik controls required any special behavior in making them cross browser compatible but I am constantly told to go in and tweak this style class and that style class. It's getting a bit much.

1. First, we get odd column widths and readability when using IE8 and NOT in Compatibility mode? Anyone running into this?

2. Second, in FF we get really odd behavior where the columns seem to be displaying all of the text but just overlapping the next column over. (I have attached a screen shot)  
    a. Notice in the screen shot that the column headers for Download, Print, and View are larger. I was told I needed to  override the Telerik style in my master.css to fix this? 
    b. Column text just flows into the next cell and doesn't seem to obey the boundaries or wrap
    
Any help is appreciated.

Jay
Top achievements
Rank 1
 answered on 25 Jan 2010
4 answers
110 views

Is there aneasy way to turn off LoadOndemand feature?


We have auser control which build on radComboBox with default LoadOnDemand value to true,and we like to disable the LoadOnDemand if recordset has less than 3000records. So thecombobox will look like regular list box.

David
Top achievements
Rank 1
 answered on 25 Jan 2010
6 answers
186 views
Using DNN 5.1.4 and the Rad Editor.

A critical error has occurred.
Could not load RadEditor! Check your provider configuration for errors (folders, links, or CSS) ! StartIndex cannot be less than zero. Parameter name: startIndex


To recreate, with LinksUseTabNames="false" in the web.config file, add a new page to the portal. In the advanced settings for the page, set the Link Type to URL (A link to an external resource...) and put in any URL.

Then go to any page and edit a text module. You will get the above error. The theory on this end is that the page with the external url link cannot be built by the radeditor when it's building the Custom Links dropdown.



Rumen
Telerik team
 answered on 25 Jan 2010
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?