Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
407 views

I have created a ModalPopUp Extender with a RadDatePicker on it. I've run into a problem, though, when you try to pick a date, the calendar comes up behind the modal window rather than on top and you cannot pick a date.

Any thoughts on how to correct this situation would be appreciated. Below is my markup.

   <div id="divConfirmIDES" runat="server">
    <div id="divP3ProfileDate" runat="server">
         <div class="PopupHeader">
            <asp:Label ID="Label1" runat="server" Text="P3 Update Profile Date"></asp:Label>
        </div>
        <div class="floatLeft">
            <label for="rdpPanelP3ProfileDate">P3 Profile Date:</label>
            <telerik:RadDatePicker ID="rdpPanelP3UpdateDate" runat="server">
                <Calendar runat="server" ShowRowHeaders="false">
                    <SpecialDays>
                        <telerik:RadCalendarDay Repeatable="Today" Date="" IsToday="true">
                            <ItemStyle CssClass="rcToday" />
                        </telerik:RadCalendarDay>
                    </SpecialDays>
                </Calendar>
                <DateInput runat="server" DateFormat="dd MMM yyyy" EmptyMessage="DD MMM YYYY"/>
            </telerik:RadDatePicker>
        </div>
        <div class="formRow">
            <asp:Label ID="Label2" runat="server" Style="font-weight: bold"
                Text='By clicking "Save", you are confirming that the P3 Profile Date is correct.'></asp:Label>
        </div>
        <div class="formRowNoBorder">
            <div class="floatRight">
                <asp:LinkButton ID="btnOkP3Date" runat="server" OnClick="btnOkP3Date_Click" CssClass="silverButton"><span>Ok</span></asp:LinkButton>
                <asp:LinkButton ID="btnCancelP3Date" runat="server" CausesValidation="false" CssClass="floatRightLink"><span>Cancel</span></asp:LinkButton>
            </div>
        </div>
    </div>
</asp:Panel>
<ajaxtoolkit:ModalPopupExtender ID="mpeConfirmIDES" runat="server" BackgroundCssClass="modalBackground"
    DropShadow="true" TargetControlID="btnFakeConfirmIDES" PopupControlID="pnlConfirmIDES" CancelControlID="btnCancelIDES">
</ajaxtoolkit:ModalPopupExtender>

Rodney
Top achievements
Rank 2
 answered on 18 Mar 2016
2 answers
1.0K+ views

I am trying to find the control and display set to "block" or "none" on onclientselectedindexchanged event of RadCombobox. It returns always null. The script and controls are in User Control of Content page. There is also Master page for this Content page. I  debugged the code with Debugger statement but the control has this tag. "ctl00_content2_ucControl1_imgTest". How can show and hide image? Please let me know. Thanks for your help. Also I tried to use document.getElementById("<%=imgTest.ClientID"); and $find(("<%=imgTest.ClientID") ; but none of these working.

<asp:Image ID="imgTest" ImageUrl="../../../images/test.gif" AlternateText="test"
                            runat="server" style="display:none"></asp:Image>

<telerik:RadComboBox ID="Combobox1" runat="server" DataTextField="test1"
                            DataValueField="test_id" NoWrap="true" Width="250" onclientselectedindexchanged="OnClientSelectedIndexChanged">                        </telerik:RadComboBox>

 
<script type="text/javascript">

  

function OnClientSelectedIndexChanged(sender, eventArgs) {

     {
      var
item = eventArgs.get_item();

          if(item.get_value() == "8")

             {
            var imageControl = document.getElementById('imgTest');
            imageControl.style.display = "block"; 
            }
        }
</script>

vaishali
Top achievements
Rank 1
 answered on 18 Mar 2016
13 answers
416 views
Hello,

I am using Rad Controls for ASP.NET Q2 2008 in MS Visual Studio 2008. Database is MS SQL 2005 Developer. I have a stored procedure that runs some subqueries and puts all of my results into a temporary table (#tmpEmpList).

I then have a SqlDataSource that has the stored procedure as my SELECT. I initially did not have a temp table, and everything worked as expected. I now have updated my sp to put the data in a temp table first, and then pull what I need out of the temp table as the last statement of the sp. The stored procedure runs properly in MS SQL Management studio.

When I went to refresh my schema for the RadGrid, I keep getting a message that says

" Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand properties are valid.
Invalid object name 'tmpEmpList'."

Can a RadGrid accept data from a temp table of a stored procedure?

Thanks,
Joe

András
Top achievements
Rank 1
 answered on 18 Mar 2016
1 answer
143 views
Hi,
I have a radtreeview that has a context menu.  I would like to hide the entire context menu based upon the value of the node attribute.
I can kind of achieve this by hiding individual menu items, however a small animation is still shown even if no menu items are displayed.
I would like to do this client side if possible.
Thanks.
Dimitar
Telerik team
 answered on 18 Mar 2016
1 answer
180 views

hi 

How do i make the navigate url to link to a section of a page? I try using the code below but is not working. Here is what i want to accomplish using RadPanelBar instead of anchor tag http://www.echoecho.com/htmllinks08.htm. Thanks a lot

<telerik:RadPanelItem runat="server" Text="Customers">
            <Items>
                <telerik:RadPanelItem runat="server" NavigateUrl="#customer" Text="View Customers">
                </telerik:RadPanelItem>
            </Items>
</telerik:RadPanelItem>

 

 <div class="panel panel-primary" style="margin-right:5px;margin-top:2px">
         <div class="panel-heading" id="customer">
            <h3 class="panel-title">Customer</h3>
         </div>
          <div class="panel-body">
            <h4>How to use View Customers</h4>
              <hr />
              <p></p>
          </div>
</div>

Dimitar Terziev
Telerik team
 answered on 18 Mar 2016
0 answers
225 views

Hi support,

 

I have a long page behind and mid of the page click on a button for popup a kendo window. when my window popup, the behind page automatically scroll to up and loose the correct position. My code on below:

$(createHolidayDialog[0]).data("kendoWindow").center().open().pin();

Regards,

Ashkan

 

Ashkan
Top achievements
Rank 1
 asked on 17 Mar 2016
3 answers
111 views

When trying to use the RadGridDesigner with the grid webpart I get a 403 error. When I look at the event viewer application log I see the following error. Not sure how to fix this.

WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/20975881
 Exception: System.Web.HttpException (0x80004005): There was no channel actively listening at 'https://olinca.olincorp.net/_vti_bin/Telerik.Ajax.SharePoint/gridbindingservice.svc/javascript/js'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. ---> System.ServiceModel.EndpointNotFoundException: There was no channel actively listening at 'https://olinca.olincorp.net/_vti_bin/Telerik.Ajax.SharePoint/gridbindingservice.svc/javascript/js'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening.
   at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
 Process Name: w3wp
 Process ID: 19496

Pavlina
Telerik team
 answered on 17 Mar 2016
1 answer
84 views

I have a grid that invokes the edit appointment functionality, but on an appointment that is a series, I'd like show the Edit occurence/series dialog option from server side.

 

  this.radActivity.ShowAdvancedEditForm(apptToEdit, true);             

Hristo Valyavicharski
Telerik team
 answered on 17 Mar 2016
3 answers
192 views
 
<telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="Quantity">
    <ItemTemplate>
        <asp:Label ID="lblQuantity" runat="server"
            Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'>
        </asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadNumericTextBox ID="txtQuantity" runat="server" DataType="System.Decimal"
            Type="Number" NumberFormat-DecimalDigits="4" />
    </EditItemTemplate>
</telerik:GridTemplateColumn>

 

 

I've made a RadGrid with EditMode="Batch" that is bound to a dataset. I need to create some GridTemplateColumns, such as the above. 3 questions...

 

1) In checking out examples online, at times I've seen Eval above as it is...

Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'>

...but other times like this...

Text='<%# Eval("Quantity") %>'>

The latter is cleaner, but wondering if the first is recommended for some reason. Or are they identical?

 

2) Also, at times I've seen in the GridTemplateColumn header the attribute DataField and DataType, such as...

DataField="Quantity"

DataType="System.Double"

... but again, not always. Are they necessary? Or does it depend on the situation?

 

3) Do I need to somehow Bind the field to the EditItemTemplate portion?

 

Thanks for the help!

 

Vasil
Telerik team
 answered on 17 Mar 2016
1 answer
84 views

Like in Total Commander that user can navigate back by clicking in folder name in breadcrumb?

thanks

Vessy
Telerik team
 answered on 17 Mar 2016
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?