Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
465 views
Dears,
We are developing an ASP.net application under VS 2008 using Telerik ASP.net AJAX Controls, of caurse we have added an refernace to Telerik dlls.
When we try to open the project on more than one PC, and try to build the project we got the following error:

Unable to copy file "C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q1 2010\Bin35\Telerik.Web.UI.dll" to "bin\Telerik.Web.UI.dll". The process cannot access the file 'bin\Telerik.Web.UI.dll' because it is being used by another process.

which is fired becuase one of us is debugging the project.

Best Regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Oct 2011
1 answer
126 views
Hello ,

   I have a template column in my grid in which i have a RadMaskedTextbox in it.

 <telerik:GridTemplateColumn HeaderText="Time" UniqueName="Time" Visible = "true">
                                                              <ItemTemplate>
                                                    
                                          
                         <telerik:RadMaskedTextBox ID="txtTime" runat="server" PromptChar="_" Width="80px" Mask="<0..2><0..9>:<0..5><0..9>">
                            </telerik:RadMaskedTextBox>
                                   
                                   </ItemTemplate>
                                <ItemStyle Wrap="False" />
                            </telerik:GridTemplateColumn>

I want to use that MaskedTextbox from the server side and i am doing like this.

  For Each item As GridDataItem In RadGrid1.Items
            Dim tripid As Integer = item("TripID").Text
            Dim tripstatus As String = item("TripStatus").Text.ToString
            Dim txttime As New TextBox
            Dim txtOdometer As New TextBox
            txtOdometer = TryCast(item.FindControl("txtOdom"), TextBox)
            txttime = TryCast(item.FindControl("txtTime"), TextBox)
' Some Update.....
Next

I am not getting anything in that textbox..  unable to access it(All i get is  Nothing)
I am able to access it when i use the normal textbox in place of RadMaskedTextbox

Am i missing something here?

Appreciate the help
Thanks


Jagat
Top achievements
Rank 1
 answered on 05 Oct 2011
2 answers
97 views
Hi Teleriks Team,

I have a critical issue here. I have to show 2 details table on clicking 2 linkButton's in 2 RadGrid Columns respectively...

I tried :
<telerik:GridTemplateColumn>
   <ItemTemplate>
       <asp:LinkButtonID="LinkButton1"runat="server"Text="LinkButton"OnClick="HideDetail1_ShowDetail_Click">
         </
asp:LinkButton>
   </ItemTemplate>
</telerik:GridTemplateColumn>
protectedvoidHideDetail1_ShowDetail_Click(objectsender, EventArgs e)
    {
        foreach(GridDataItem item inRadGrid1.MasterTableView.Items)
        {
            RadGrid1.MasterTableView.Items[item.ItemIndex].ChildItem.NestedTableViews[0].Visible = true;
            RadGrid1.MasterTableView.Items[item.ItemIndex].ChildItem.NestedTableViews[1].Visible = false;
        }
    }
But this is not working in my Scenario... The page Postbacks after linkbutton click event. And I have a GridBind and Rebind Events in ItemCommand EventHandler. So the above Code doesn't show up my detailsTable.

So is there any other way to get his working.. Please... do find my Code Snippets....
<telerik:RadGrid ID="RadGrid1" PagerStyle-Mode="NextPrevNumericAndAdvanced" Width="100%" AllowAutomaticInserts="false"
        AllowAutomaticUpdates="false" PageSize="10" runat="server" PagerStyle-AlwaysVisible="true" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
        AllowPaging="True" AllowSorting="True" Visible="false" GridLines="None" AllowFilteringByColumn="true" Skin="Office2007" AutoGenerateColumns="False" OnItemCommand="RadGrid1_ItemCommand"
        OnItemDataBound="RadGrid1_ItemDataBound" ShowFooter="true">                      
       <MasterTableView ShowFooter="true"  AllowAutomaticUpdates="false" DataKeyNames="row_id, Agency_code, Agency" TableLayout="Fixed" CommandItemDisplay="TopAndBottom" HierarchyLoadMode="Client">
       <DetailTables>
           <telerik:GridTableView CssClass="DetailTable" Name="RevenueNested" NoDetailRecordsText="No Records to display" ShowFooter="false"
                                    Width="1550px" AutoGenerateColumns="false" AllowFilteringByColumn="false" AllowPaging="false"
                                    AllowSorting="false" ToolTip="Click to View MOU\Payments">                                                                       
                                    <Columns> 
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Money_Collected" HeaderStyle-Width="100px" HeaderText="Money Collected"
                                    UniqueName="MoneyCollected">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Notes" HeaderStyle-Width="850px" HeaderText="Notes"
                                    UniqueName="Notes">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Modified_Date" HeaderStyle-Width="150px" HeaderText="Modified Date"
                                    UniqueName="ModifiedDate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Modified_By" HeaderStyle-Width="100px" HeaderText="Modified By"
                                    UniqueName="ModifiedBy">
                                    </telerik:GridBoundColumn>                                                                                                         
                                    </Columns>                                   
           </telerik:GridTableView>
       </DetailTables>
<Columns>
<telerik:GridEditCommandColumn   UniqueName="EditCommandColumn" HeaderStyle-Width="50px">
                    </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn HeaderStyle-Width="130px" DataField="Agency_code" ItemStyle-HorizontalAlign="Left" HeaderText="Agency Code" UniqueName="Agency_code">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn EditFormColumnIndex="1" FooterText="Total:" FooterStyle-HorizontalAlign="Right" AllowFiltering="true" UniqueName="agency" HeaderStyle-Width="300px" DataField="Agency" HeaderText="Agency">
                                    <ItemTemplate>             
                                        <asp:LinkButton ID="lnkViewMOU" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Agency")%>' OnClick="HideDetail1_ShowDetail_Click"  ></asp:LinkButton>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>                    
                                <telerik:GridBoundColumn Aggregate="Sum" HeaderStyle-Width="180px" FooterStyle-HorizontalAlign="Right" DataField="Total_Billing_Amount"
                                    DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right" HeaderText="Billed/Estimated/MOU/Yearly Budget" UniqueName="Total_Billing_Amount">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Aggregate="Sum" HeaderStyle-Width="130px" FooterStyle-HorizontalAlign="Right" DataField="MOU_Collected"
                                    DataFormatString="{0:c}" HeaderText="Money Collected" UniqueName="MOU_Collected" ItemStyle-HorizontalAlign="Right">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Aggregate="Sum" DataField="Budget_Authoruty" FooterStyle-HorizontalAlign="Right" HeaderStyle-Width="130px" HeaderText="Budget Authority"
                                    DataFormatString ="{0:c}" UniqueName="Budget_Authoruty" ItemStyle-HorizontalAlign="Right">
                                </telerik:GridBoundColumn>
</Columns>
    <EditFormSettings>
        """"""""""
        """"""""""
        """"""""""
        """"""""""
    </EditFormSettings
       </MasterTableView>
        </telerik:RadGrid>
---------------------------------------------------------------------
protected void Page_Load(object sender, EventArgs e)
    {
         
        if (!IsPostBack)
        {
            RadGrid1.Rebind();           
        }       
    }
 
protected void BindGrid()
    {
       """"
       """"
       """"      
    }
 
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
    {
        DataTable dtlist = new DataTable();
        GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
        if (e.DetailTableView.Name == "RevenueNested")
        {          
             int id= Convert.ToInt32(dataItem.GetDataKeyValue("id").ToString());            
 
                dtlist = obj.GetList(id);               
                {
                    e.DetailTableView.DataSource = dtlist;
                }              
        }
    }
 
 protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
    try
        {
            if (e.Item != null)
            {
        """""
        """""
            if (e.CommandName == "Update")
                            {
                    """""
                    """""
                }
            if (e.CommandName == "Insert")
                            {
                    """""
                    """""
                }
        }
         BindGrid();
         RadGrid1.Rebind();
        }
       Catch (Exception Ex)
    {
    }
    }
 
protected void HideDetail1_ShowDetail_Click(object sender, EventArgs e)
    {
            foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
            {
                RadGrid1.MasterTableView.Items[item.ItemIndex].ChildItem.NestedTableViews[0].Visible = true;               
            }
             
        }
    }

I request the team to help me in this issue.. Thanks in advance...

Raja..
Raja
Top achievements
Rank 1
 answered on 05 Oct 2011
5 answers
299 views
Hi,
I was working away yesterday and got a popup message in Visual Studio saying that there was an update for RadControls so I decided to download it. Everything downloaded correctly but now all of my radcontrols have an "Error Creating Control..." It was looking for a different version but the one that was updated was older than the one I had...so I went back to your site and downloaded the latest trial version and referenced that dll in my app...still nothing. I looked at some of the possible solutions and copied the dll's into the GAC. Now my entire website is down. I like using the controls but I keep having issues like this. How can I get this to work so I can make changes to my controls at design time? I'm using Visual Studio 2008 and Telerik version 2009.3.1314.35.

Thanks
Here is the error I'm getting
Parser Error   
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.   
 
Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.  
 
Source Error:   
 
 
[No relevant source lines]  
   
 
Source File: none    Line: 0   
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded. 
 
 
=== Pre-bind state information ===  
LOG: User = IIS APPPOOL\DefaultAppPool  
LOG: DisplayName = Telerik.Web.UI  
 (Partial)  
LOG: Appbase = file:///C:/WebSites/Harmony/Harmony.Web/  
LOG: Initial PrivatePath = C:\WebSites\Harmony\Harmony.Web\bin  
Calling assembly : (Unknown). 
===  
LOG: This bind starts in default load context.  
LOG: Using application configuration file: C:\WebSites\Harmony\Harmony.Web\web.config  
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config  
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.  
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).  
LOG: The same bind was seen before, and was failed with hr = 0x80070002.  
 
   
 
Tad
Top achievements
Rank 1
 answered on 05 Oct 2011
1 answer
119 views
Hi all:

I've read a little on here and found out that I can't have multiple upload controls on the same page at one time.  For the web application I'm building, I'm required to allow the client to add a new record to the database, which includes 3 files.  I'm not saving the files themselves in the database, but the relative path.  The client also needs to physically upload these 3 files, which are all associated with 1 record in the database.  How would you suggest I should do this?  I'm not sure if it's because it's Friday and I'm mentally drained, or if I just can't grasp a solution today.  Time is ticking and any help/suggestions are greatly appreciated.

Thanks,
TL
Peter Filipov
Telerik team
 answered on 05 Oct 2011
1 answer
282 views

Hi this my first thread.

  1. I need know the status of RadAsynUploading control uploading files. So that I can ask confirmation while clicking the submit button in the page like file uploading inprogress.
  2. The cancelled file also uploading, how to solve this issue.
Peter Filipov
Telerik team
 answered on 05 Oct 2011
1 answer
87 views
I've tried to use:

http://www.telerik.com/community/forums/aspnet-ajax/combobox/validate-user-input-in-radcombobox-with-allowcustomtext-quot-true-quot-filter-quot-contains-quot.aspx

however, the javascript never fires. I've debugged in the browser and the javascript is never called. The requirefield validator works fine, but if a user tpyes somejunk into the filter and presses 'ok' without selecting an item, the form accepts the input, writes to teh database and closes the modal form.
I've included the AdvancedInsertTemplate of the RadScheduler below.

<AdvancedInsertTemplate>
            <div class="rsAdvancedEdit rsAdvancedModal"
               style="position: relative; width:560px; left: 30%;">
               <div class="rsModalBgTopLeft">
               </div>
               <div class="rsModalBgTopRight">
               </div>
               <div class="rsModalBgBottomLeft">
               </div>
               <div class="rsModalBgBottomRight">
               </div>
               <div class="rsAdvTitle">
                  <h1 class="rsAdvInnerTitle">
                     <%#Container.Appointment.Owner.Localization.AdvancedNewAppointment%>
                  </h1>
                  <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false"
                     CommandName="Cancel" CssClass="rsAdvEditClose"
                     ToolTip="<%# Container.Appointment.Owner.Localization.AdvancedClose %>"> <%#Container.Appointment.Owner.Localization.AdvancedClose%></asp:LinkButton>
 
               </div>
               <div class="rsAdvContentWrapper">
                  <div style="display: inline-block">
                     <!-- ** -->
                     <div style="float: left;">
                        <p>
                           <telerik:RadComboBox ID="UsersComboBox" runat="server" DataSourceID="UsersDataSource" DataTextField="Fullname" DataValueField="Username"  AllowCustomText="true" EnableTextSelection="false" EmptyMessage="Please select..." Filter="Contains"
                              Label="User" SelectedValue='<%# Bind("Username") %>'>
                           </telerik:RadComboBox>
                           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="UsersComboBox" runat="server" ErrorMessage="Required"></asp:RequiredFieldValidator>
                           <asp:CustomValidator ID="CustomValidator331" runat="server"
                              ControlToValidate="UsersComboBox"
                               ClientValidationFunction="validateCombo" ValidateEmptyText="true"
                               ErrorMessage="You cansubmit only existing name">
                                 
                           </asp:CustomValidator>
                        </p>
                        <p>
                           <div style="display: inline-block">
                              <div style="float: left; width: 76px; text-align: right; padding-right: 5px; padding-top: 5px;">
                                 <asp:Label ID="Label1" runat="server" ForeColor="#333333" Text="Start"></asp:Label>
                              </div>
                              <div>
                                 <telerik:RadDateTimePicker ID="StartInput" runat="server" Culture="en-NZ"
                                    SelectedDate='<%# Bind("Start") %>'>
                                    <TimeView CellSpacing="-1" Culture="en-NZ" EndTime="17:30:00"
                                       Interval="00:30:00" RenderDirection="Vertical" StartTime="08:30:00">
                                    </TimeView>
                                    <TimePopupButton HoverImageUrl="" ImageUrl="" />
                                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                                       ViewSelectorText="x">
                                    </Calendar>
                                    <DateInput DateFormat="d/MM/yyyy" DisplayDateFormat="d/MM/yyyy">
                                    </DateInput>
                                    <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                 </telerik:RadDateTimePicker>
                              </div>
                           </div>
                        </p>
                        <p>
                           <div style="display: inline-block">
                              <div style="float: left; width: 76px; text-align: right; padding-right: 5px; padding-top: 5px;">
                                 <asp:Label ID="Label2" runat="server" ForeColor="#333333" Text="End"></asp:Label>
                              </div>
                              <div>
                                 <telerik:RadDateTimePicker ID="EndInput" runat="server" Culture="en-NZ"
                                    SelectedDate='<%# Bind("End") %>'>
                                    <TimeView CellSpacing="-1" Culture="en-NZ" EndTime="17:30:00"
                                       Interval="00:30:00" RenderDirection="Vertical" StartTime="08:30:00">
                                    </TimeView>
                                    <TimePopupButton HoverImageUrl="" ImageUrl="" />
                                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                                       ViewSelectorText="x">
                                    </Calendar>
                                    <DateInput DateFormat="d/MM/yyyy" DisplayDateFormat="d/MM/yyyy">
                                    </DateInput>
                                    <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                 </telerik:RadDateTimePicker>
                              </div>
                           </div>
                        </p>
                        <p>
                           <div style="display: inline-block">
                              <div style="float: left; width: 76px; text-align: right; padding-right: 5px; padding-top: 5px;">
                                 <asp:Label ID="Label3" runat="server" ForeColor="#333333" Text="Permanent"></asp:Label>
                              </div>
                              <div>
                                 <asp:CheckBox ID="chkPerm" runat="server" />
                                 <asp:HiddenField ID="hidPerm" runat="server" Value='<%# Bind("Perman") %>' />
                              </div>
                           </div>
                        </p>
                        <p>
                           <telerik:RadComboBox ID="StatusComboBox" runat="server"
                              DataSourceID="StatusDataSource" DataTextField="Status"
                              DataValueField="StatusId" Label="Status"
                              SelectedValue='<%# Bind("StatusId") %>' Visible="false">
                           </telerik:RadComboBox>
                        </p>
                     </div>
                     <!-- ** -->
                     <div>
                        <telerik:RadTextBox ID="DescriptionTextBox" runat="server" Columns="30"
                           Label="Notes" Rows="4" Text='<%# Bind("Description") %>' TextMode="MultiLine">
                        </telerik:RadTextBox>
                     </div>
                  </div>
                  <asp:Panel ID="Panel1" runat="server" CssClass="rsAdvancedSubmitArea">
                     <div class="rsAdvButtonWrapper">
                        <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Insert"  CausesValidation="true"
                           CssClass="rsAdvEditSave"> <span><%# Container.Appointment.Owner.Localization.Save%></span></asp:LinkButton>
                        <asp:LinkButton ID="CancelButton" runat="server" CausesValidation="false"
                           CommandName="Cancel" CssClass="rsAdvEditCancel">
                           <span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                           </asp:LinkButton>
 
                         
                     </div>
                  </asp:Panel>
               </div>
            </div>
         </AdvancedInsertTemplate>
Ivana
Telerik team
 answered on 05 Oct 2011
3 answers
173 views
Hi,

We are using the  version 2011.2.712.40 of telerik.
I want to prevent the postback of a radtoolbar with an OnClientButtonClicked to open a RadWindow.
I use e.set_cancel(true); but i receive always a javascript error : Error: Object doesn't support property or method 'set_cancel'

Any idee what is this probleem ?

In advance thanks.

Edwin.
Kate
Telerik team
 answered on 05 Oct 2011
2 answers
99 views
I have three related comboboxes inside a grid row, I need to have the selectedindexchanged fire a second time but it will not for the second combo box.  thx.
Dimitar Terziev
Telerik team
 answered on 05 Oct 2011
2 answers
204 views
Hi guys!
First of all to clarify that I am using Telerik.Web.UI  v. 2011.1.413.40, so it may be addressed already in the newer versions. I am doing some Sitefinity development, that's why I am using that version of the controls.
The problem is that hidden fields are really hidden ;) in the editor when used under IE 9, while they show up in IE versions lower than 9 and are selectable in the Editor design view. Not really a big deal, can you tell me if this is addressed and the hidden fields are shown in some of the newer versions of the editor under IE 9 or not?

If they are I'll not bother to search for workaround (my release will probably fall after the Q3 release so I think I'll be using pretty new version of the controls if Sitefinity include it). 

Refer to the screenshots for examples.
I am starting off with a blank HTML with only
<input type="hidden" value="test"></input>

In IE 9 as you can see the editor design surfice is blank, while the hidden field is correctly displayed and selectable in lower versions.
Once again it is not a big deal and once again - I just want to know if this is addressed or will be addressed (seems very low priority but it may appear important to my project).
Power
Top achievements
Rank 2
 answered on 05 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?