Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
200 views
Hello,
If an user uploaded wrong appointment(start time is greater than End time) then how we will handle this on our web page. It is showing Error page. How we bypass these appointment.
Peter
Telerik team
 answered on 04 Jun 2012
2 answers
137 views
Hello,
I have a hierarchy grid with one nested level.
I'm having some issues with HierarchyLoadMode setting set to Client on my grid.
I load my grid on during Page_Load event, and it is loaded without any issues.
After that, the event to load the DetailTable is called:
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
           GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
           string paramID = dataItem.GetDataKeyValue("Param_Id").ToString();
            string sConnectionString = "My Connection String";
  
            SQLDataSource1.SelectParameters["ModelIdParam"].DefaultValue = paramID ;
                SQLDataSource1.ConnectionString = sConnectionString;
                  
                e.DetailTableView.DataBind();
        }
I get an exception - +  ex {"Invalid attempt to call FieldCount when reader is closed."} 

I am not sure what I'm doing wrong, because if I don't set hierarchyModeLoad to Client, the exact same code runs without any issues, and I can expand/collapse the rows.

I would appreciate any help.
Vinit
Top achievements
Rank 1
 answered on 04 Jun 2012
3 answers
43 views
Whenever I point to appointment by mouse, the error for get_allowdelete raise. How can I fix it?
Peter
Telerik team
 answered on 04 Jun 2012
1 answer
187 views
Hello,

Recently I have migrated our development evironment over to IIS 7 on Windows 2008 from IIS 6 on Windows 2003.  Everything seemed to be working fine at first.  However, I noticed when I tested the website on a workstation when logged on as a user without internet access, the site continues to get a 'Telerik' is undefined error message.  Using Fiddler, I was able to see the problem is there are calls to the following websites, aspnet-skins.telerikstatic.com or aspnet-scripts.telerikstatic.com.  Becuase this user does not have internet access, these calls are failing with HTTP 502 errors and causing issues with all the Telerik controls.

Is there something that needs to be done to avoid these external calls from being made so users without internet access do not have this issue and the site/controls are displayed properly?

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 04 Jun 2012
1 answer
175 views
can anyone show me the example?
Eyup
Telerik team
 answered on 04 Jun 2012
2 answers
108 views

Folks,

Using VS2010 with RadControls for Ajax Q1 2012.

I need some help with following issues:

1) For Example, while using Command Item Template, I can hide the the EditSelected Command Button based on RadGrid1.EditIndexes.Count of Master Table, How can I accomplish the same result  with Child Table (i.e. hide EditSelected Command Button based on RadGrid1.EditIndexes.Count of Child Table)?  Basically I do not want to show Child Table  EditSelected Command if there are no Child rows.

To get Child Table Edit Indexes count I tried to below line of code but is not working.

Visible='<%# RadGrid1.MasterTableView.DetailTables[0].EditIndexes.Count > 0 %>'>

Below is my Master/Detail Command Items Template.

<Mastertableview width="100%" commanditemdisplay="Top" datasourceid="SqlDataSource1" name = "Master"
       datakeynames="CustomerID">
           <CommandItemTemplate>
               <div style="padding: 5px 5px;">
                   Custom command item template for Master table     
                    
                   <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected"
                   Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;"
                   alt="" src="Images/Edit.gif" />Edit selected Master Row</asp:LinkButton>  
                    
                   <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited"
                   Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;"
                   alt="" src="Images/Update.gif" />Update Selected Master Row</asp:LinkButton>  
                   '''
                   '''
               </div>
           </CommandItemTemplate>
       
                   <DetailTables>
                      <telerik:GridTableView DataKeyNames="OrderID,ProductID" DataSourceID="SqlDataSource3"
                               Width="100%" runat="server" CommandItemDisplay="Top" Name="Details">
 
                       <CommandItemTemplate>
                       <div style="padding: 5px 5px;">
                        Custom command item template for Child Table     
                         
                         <asp:LinkButton ID="btnEditSelectedChildRow" runat="server" CommandName="EditSelected"
                          Visible='<%# RadGrid1.MasterTableView.DetailTables[0].EditIndexes.Count > 0 %>'>
                          <img style="border:0px;vertical-align:middle;"
                          alt="" src="Images/Edit.gif" />Edit selected Child Row</asp:LinkButton>  
                    
                          <asp:LinkButton ID="btnUpdateSelectedChildRow" runat="server" CommandName="UpdateEdited"
                           Visible='<%# RadGrid1.MasterTableView.DetailTables[0].EditIndexes.Count > 0 %>'>
                           <img style="border:0px;vertical-align:middle;"
                           alt="" src="Images/Update.gif" />Update Selected Child Row</asp:LinkButton>  
                           '''
                           '''
                            
                       </CommandItemTemplate>
 
 
                   </telerik:GridTableView>
                  </DetailTables>
                </Mastertableview>


2)  Below link from Telerik Documentation shows Making a Grid Row Selected at All Times (similar to WinForms grids). How can I accomplish the same result with Child Table (I have multiple Child Tables)?

http://www.telerik.com/help/aspnet-ajax/grid-selected-row-at-all-times.html

3) Below Thread solution by Princy demonstrated Select Inserted/Updated row after performing command in Master Table. How can I accomplish the same result with Child Table (I have multiple Child Tables)?

http://www.telerik.com/community/forums/aspnet-ajax/grid/select-inserted-updated-row-after-performing-command.aspx


Thank you very much for any help.

Sincerely

gc_0620






Andrey
Telerik team
 answered on 04 Jun 2012
0 answers
101 views

  I'm using Radwindow as a popup.I'm invoking this from a parent page which is part of another page.
Radwindow is opened with the ajax script from the parent page
Now I'm loading another aspx page with in this Radwindow.
If I press F5(refresh) parent window and the radwindows are closing but the aspx page is displayed in the default page.
Now I need to close the aspx page also along with the radwindow.

Scenario:

Defaultpage.aspx in which Example1.aspx is loaded
From Example1.aspx --> Radwindow is opened as popup in which Example2.aspx is loaded

Please help me on this

Missing User
 asked on 04 Jun 2012
4 answers
360 views
Hello,

I gave MinValue="0" still textbox is allowing "-" Sign. I dont want user to allow negative sign.

The textbox is accepting negative and decimal. I want user to enter positive numbers only.

Can I mask this using MaskEdit Extender.
Atchut
Top achievements
Rank 1
 answered on 04 Jun 2012
1 answer
63 views
Hi:
I have a working portal page with web-part zone containers.  In the Master page I added a RadAjaxPanel around the main content area and now the automatic management stopped working (design, ie deleting and re-arranging).  Any ideas?
Phil
Phil
Top achievements
Rank 2
 answered on 04 Jun 2012
2 answers
59 views
Hi Team,
We are migrating to Telerik's dll with version "2010.2.929.20". Currently we are facing an issue with RADAjaxManager.
Initially we declared RADAjaxManager in .aspx page and AjaxSettings where added dynamically in Page_PreRender event.
Now, after rewplacing the dll I've moved the dynamically added AjaxSettings from .cs -to-> .aspx.
telerik:RadScriptManager tag is on my Master page.

we are using Client Side API i.e.,

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  <script type="text/javascript" language="javascript">
    function RequestStart(sender, eventArgs) {
      alert('inside RequestStart');
    }
    function RequestEnd(sender, eventArgs) {
      alert('inside RequestEnd');
    }
  </script>
</telerik:RadCodeBlock>
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="Server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnResponseEnd="ResponseEnd" OnRequestStart="RequestStart" ></ClientEvents>
 <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>



Problem is some how on button click none of the clientevents are getting called and neither do i see any difference in terms of page postback's. I mean Page does not seem to be ajaxified. Please help.

Thanks
Sandeep
Top achievements
Rank 1
 answered on 04 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?