Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
215 views
Hi guy,
 
I have this error

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: The 'EnableEmbeddedSkins' property cannot be set declaratively.

Source Error:

Line 23: <telerik:RadMultiPage SkinId="RadMultiPage" runat="server" EnableEmbeddedSkins="false" CssClass="MultiPage"></telerik:RadMultiPage>

I used Q2 2010 Trial

why?

Please Help me...

All the best
Rodrigo

Kamen Bundev
Telerik team
 answered on 15 Nov 2010
1 answer
78 views
I have a grid that I am populating with a few empty columns.  I need the client to make sure that each field is complete before I append the records to a new table.

How can I make sure that each field in each row is not null before I append the records. Some sort of validation on button click?  Need a start before I research.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 15 Nov 2010
6 answers
172 views
We are currently using Scriptaculous slider and want to replace it with radslider, as we are using radcontrols in all other scenarios.
I can't seem to find any way to make a draggable slider as in our previous implementation (see screenshot). We want to be able to size the range, and drag the entire range.
Allen
Top achievements
Rank 1
 answered on 15 Nov 2010
3 answers
338 views
Hi, 

I have a hyper link column in my radgrid and I use <href=" "> for that. Its a "Remove" hyperlink  which when clicked should delete the particular row on the client side. How can I access the cell of the column where the hyperlink is clicked. I tried to set the onclick event of the hyperlink to a function where I set the command name as Remove and in the Onrowselected event I check for the condition if the command="Remove" and then delete the row but this doesn't work as the Onrowselected event doesn't fire when I click on the hyperlink. When I click the hyperlink it just goes to the Onclick event of that and stops there. 

I need a way to call the Onrowselected event when I click the hyperlink(href link) or if that is not possible then I need to delete the row in the Onclick client event of the hyperlink and for that I should be able to access the particular cell of the row.

FYI: I need to delete the rows on client side and I use the html href for the hyperlink as I had some issues using the telerik hyperlink column.

<Telerik:GridTemplalteColumn UniqueName="Remove">
<ItemTemplate>
<a href="javascript:void(0);" OnClick=OnRemove();> <u>Remove</u> </a>
</ItemTemplate>
</Telerik:GridTemplalteColumn >

function OnRemove()
{
command="Remove";
}

function OnRowSelected(){
//functionality to get the grid and delete the row here
}

Please suggest a way to do this.

Thank you,
Vik

getset
Top achievements
Rank 1
 answered on 13 Nov 2010
2 answers
204 views
Good day,

I have an issue, I'm trying to hide a pair of labels in the grid binding process however the following code doesn't work
//item is about to select
       if ((e.Item is GridDataItem && !(!(e.Item is GridEditFormInsertItem) && e.Item.IsInEditMode)) && !((e.Item.OwnerTableView.IsItemInserted && e.Item is GridEditFormInsertItem)))
       {
           GridDataItem item = (GridDataItem)e.Item;
           Label label = (Label)item["Encargado2"].FindControl("LabelEncargado2");
           label.Visible = false;
           Label label2 = (Label)item["Email2"].FindControl("Email2");
           label2.Visible = false;
           label.Parent.Parent.Visible = false;<- This is my problem (it doesn't work!!)
           label2.Parent.Parent.Visible = false;
 
       }

And the code behind: 
<telerik:GridTemplateColumn  UniqueName="Encargado2" DataField="Encargado2" HeaderText="Encargado2"
          ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >  
                 <ItemTemplate>
                 <asp:Label ID="LabelEncargado2" runat="server" Text='<%#Eval("Encargado2") %>'></asp:Label>
             </ItemTemplate>
         </telerik:GridTemplateColumn>  
    
      <telerik:GridTemplateColumn  UniqueName="Email2" DataField="Email2" HeaderText="Email2"
          ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >  
                 <ItemTemplate>
                 <asp:Label ID="Email2" runat="server" Text='<%#Eval("Email2") %>' Visible="false"></asp:Label>
             </ItemTemplate>
         </telerik:GridTemplateColumn

I pretend both edit them in the GridEditFormItem event and insert them in the GridEditFormInsertItem event however I don't need to display them when I'm loading the grid the first time.
Any suggestion??
Thanks in advance!!
All the Best,
William
william
Top achievements
Rank 1
 answered on 13 Nov 2010
0 answers
130 views

Hello dear

I Want to use RadWindow in a FormApplication atasp.net.

In my Parent form i used Radwindow to open child window

then in the child i want to open another window.

by search Telerik Website i find this code

var oManager = GetRadWindow().get_windowManager();
  var oWindow = oManager.open(..., "NewWindow");
oWindow.setSize(860, 600);
oWindow.center();

and it work well.But when i submit 2nd form in not work.

i use Window Manager in 2nd form but the new form open inside that form.

How can i response this job but Serversite code? or how i desolve this problem?

mohammad farahani
Top achievements
Rank 1
 asked on 13 Nov 2010
4 answers
628 views
Hello,

I'd downloaded the sample code of Iana posted on June 10 from http://www.telerik.com/community/forums/aspnet-ajax/window/window-as-dialog-return-value-in-radgrid-edit-form-template.aspx.  I was able to post back and update the value in the RadNumericTextBox inside the RadGrid control.  However, when I click the Save button on the Insert command, the Required Field validator of the RadNumericTextBox is always failed eventhough the value is set (via set_value method on client side).  I need to make sure the value in the RadNumericTextBox is not empty and is greater than 0. Does any body have experienced this issue as I have?  When I used a regular asp.net textbox, the validator is working fine, but it would be nice if I can use the RadNumbericTextBox in the radgrid in my application.  Could you please tell me what is causing the validator failed here?  Thanks!

Below is my client side code.   I am using RadControls Q1 2009 version.

function ShowUpdateQuantityWin(quantityTxtBxId, nbrPersTextBxId, quantityList) {  
                window.radopen("UpdateQuantity.aspx?quantityList=" + quantityList + "&quanId=" + quantityTxtBxId + "&persId=" + nbrPersTextBxId, "quantityRadWindow");  
                var quantityTxtBx = $find(quantityTxtBxId);   
                quantityTxtBx._textBoxElement.readOnly = false;                  
                return false;  
            }  
 
            function OnQuantityWindowClose(oWnd) {  
                //get the transferred arguments  
                var arg = oWnd.argument;  
                if (arg) {  
                    // alert("arg info: " + arg.quantity + "-" + arg.nbrOfPers + " " + arg.quanId + " " + arg.nbrPersId);  
                    $get('<%=nbrOfPersonsHF.ClientID %>').value = arg.nbrOfPers;  
                    $get(arg.nbrPersId).innerHTML = arg.nbrOfPers;  
                      
                    $get('<%=quantityHF.ClientID %>').value = arg.quantity;  
 
                    $get('<%=quantityListHF.ClientID %>').value = arg.quantityList;  
 
                    var quantityRadTxtBx = $find(arg.quanId);  
                    quantityRadTxtBx.set_value(arg.quantity);                          
                    quantityRadTxtBx._textBoxElement.readOnly  
    }


Arash
Top achievements
Rank 1
 answered on 13 Nov 2010
1 answer
85 views
Hello,

I would like to highlight multiple dates in the calendar to represent days that that have user events associated with them. (I'm pulling the event dates from a database. ) 

I've played around with adding the dates to the SelectedDates collection, but I don't think that's what I want, because I also want the user to be able to click on a different date that doesn't have an event and route the user to a different page with the selected date.

I've also played around with adding the dates to a Special Days collection, but it seems like overkill because I don't really need a full template for this purpose, just a different style for these days.

What's the recommended way of doing this?

Thanks,

Scott

Scott
Top achievements
Rank 1
 answered on 12 Nov 2010
2 answers
235 views
Can't understand why RadAjaxManager's ClientEvents are not fired when Ajax post back is initiated by ajaxifyed usercontrol. Please see the following test project:
default.aspx:
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="ScriptManager1">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</asp:ScriptManager>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="SubmitBtn">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="TextItemView" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    <ClientEvents OnResponseEnd="OnAjaxRequestStop" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
</telerik:RadAjaxLoadingPanel>
 
<script type="text/javascript">
    function OnAjaxRequestStop(sender, args) {
        alert('OnAjaxRequestStop');
    }
</script>
 
<div>
    Test project    <br /><br />
    <hr />
    <WW:TextItem runat="server" ID="TextItemView" />
    <hr />
    <br />
    <asp:Button ID="SubmitBtn" runat="server" Text="Submit" />
    <br />
    When you click on outer submit btn OnAjaxRequestStop event fires as expected (see alert msg).<br />
    When you click on inner submit btn client side event funtion is not called but ajax postback is innitiated...
</div>
</form>

usercontrol TextItem.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TextItem.ascx.cs" Inherits="TextItem" %>
User control content: <br />
<asp:Label runat="server" ID="Counter" /> <br />
<asp:Button ID="InnerSubmitBtn" runat="server" Text="Control's Submit" OnClick="Btn_OnClick" />

That is pretty much it, when I click InnerSubmitBtn,OnAjaxRequestStop function is not being called. But Ajax request happens (I check it using counter label that is incremented in OnClick method). Please let me know where is my assumptions are wrong. The task is: I need to know when ajax request ends when InnerSubmitBtn is clicked.

Thank you,
Denis.
Denis
Top achievements
Rank 1
 answered on 12 Nov 2010
1 answer
57 views
Hi there,
Is it possible to set up the grid as to have minimum width 100% of the container width.
Something like:
- in case the grid is larger than the container than the latter will horizontally scroll.
- in case the grid is narrower than the container than it shouild fill the container somehow (either one of the columns will be configured to take the rest of the space or maybe columns will all have percentage widths
Or any other suggestion?
Thanks
Iulian
Pavlina
Telerik team
 answered on 12 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?