Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
482 views
Love the RadWindow,

I just cant't find the property to control (actually turnoff) the display of the URL at the bottom of the window?

thanks

david

Georgi Tunev
Telerik team
 answered on 06 Apr 2010
5 answers
502 views
Hi Telerik,

I am trying to get the return value from radconfirm. below is the my code.

//javascript

 

function ValidateFn()

 

{

 

var clk;

 

clk = radconfirm(

'Do you want to accept changes done by ABC?',callbackFn,310,100,null,'Title');

 

alert(clk);

 

 

}

 

function callbackFn(arg)

 

{

 

//Here i need to store this variable in a hidden field which i will be using in server side code.
alert(arg);

 

 

}


 

 

 

 

 

 

<asp:ImageButton ID="ImageButton1" OnClientClick="ValidateFn(); return false;" runat="server" />

 

 

 

But when i click on image button then radconfirm window itself is not coming. this problem is occurring only in case when the page is inherited from master page. In case of simple page it is working fine.



Please help me to short out this problem.

waiting for reply!

 

 

Georgi Tunev
Telerik team
 answered on 06 Apr 2010
1 answer
153 views
Hello,

I've started with the advancedTemplate Sample - and I've added some new fields. so the template growth in size (hight) and the save, resp. chancel  button vanishes. (this makes the form unusable. at leased I think so -:))

I looked at the html. and I found:
<quote>
<div id="RadScheduler1" class="RadScheduler RadScheduler_Default" style="height:400px;"> 
</quote>
now I'm wondering - because I do'nt see this id , nor the class or even the style in the original aspx file. that's a miracle - isn't? 

1) How can I increase the size of this class (preferable during showing the advanced template) ? (this question is important)
2) where is the spring of the miracle class, style and ID (and how can I use/change those things)? 

thx in advance
Otto
Peter
Telerik team
 answered on 06 Apr 2010
3 answers
205 views
Hello,

Using Q1 2010.
I included a browser file on my site but it doesnt seem to work, still very heavy viewstates ?
My file
<browsers> 
  <browser refID="Default">  
    <controlAdapters> 
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" /> 
    </controlAdapters> 
  </browser> 
</browsers> 
 

And I read in some threads that using session for viewstate is not perfectly supported when using some modal dialogs, but which ones ? RadWindow, RadUpload ? ???

last point, I have also seen in Chrome console that telerik scripts come without being zipped where I have the default RadScriptManager which should use GZip ???

Thanks
CS
BaiH
Top achievements
Rank 1
 answered on 06 Apr 2010
13 answers
403 views
Hi i have problem with pager. My pager show top and bottom after postBack or AjaxPostBack or my pagerSetting is AlwaysVisible="true" Position="Bottom". First loaded is correct. Same problem is in RadTab when OnClienttab send ajaxrequest for update visible grid.

  <telerik:RadGrid ID="GridKenticoUser" runat="server" EnableDragToSelectRows="True" 
        AllowFilteringByColumn="false" AllowSorting="True" AutoGenerateColumns="false" 
        AllowMultiRowSelection="True" PageSize="500" Width="99%" OnNeedDataSource="GridKenticoUser_NeedDataSource" 
        OnItemCommand="GridKenticoUser_ItemCommand"> 
        <MasterTableView Width="100%" AllowPaging="true" DataKeyNames="UzivatelID, LektorID, Uzivatel"  PagerStyle-Position="Bottom"> 
            <HeaderStyle HorizontalAlign="Left" /> 
            <ItemStyle HorizontalAlign="Left" /> 
            <AlternatingItemStyle HorizontalAlign="Left" /> 
            <PagerStyle AlwaysVisible="true" Position="Bottom" /> 
            <Columns> 
                <telerik:GridClientSelectColumn> 
                    <HeaderStyle Width="35" /> 
                </telerik:GridClientSelectColumn> 
                <telerik:GridBoundColumn DataField="Uzivatel" HeaderText="Uživatel" AutoPostBackOnFilter="true" 
                    AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"> 
                    <HeaderStyle Width="150" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridDateTimeColumn DataField="Zalozen" HeaderText="Založen" AutoPostBackOnFilter="true" 
                    AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains" 
                    DataFormatString="{0:dd.MM.yy}"> 
                    <HeaderStyle Width="60" /> 
                </telerik:GridDateTimeColumn> 
                <telerik:GridBoundColumn DataField="LektorFullName" HeaderText="Lektor" AutoPostBackOnFilter="true" 
                    AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"> 
                    <HeaderStyle Width="150" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Akce"> 
                    <ItemTemplate> 
                        <div style="padding-left: 10px;"> 
                            <asp:ImageButton runat="server" ID="BtnParuj" CommandName="Paruj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/ok.png" 
                                Visible='<%# (String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' 
                                ToolTip="Zpárovat" />&nbsp; 
                            <asp:ImageButton runat="server" ID="ImageButton1" CommandName="OdParuj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/cancel.png" 
                                Visible='<%# (!String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' 
                                ToolTip="ZruÅ¡it párování" /> 
                        </div> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn AllowFiltering="false"> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <ClientEvents /> 
            <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" ScrollHeight="390" /> 
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
        <GroupingSettings CaseSensitive="false" /> 
    </telerik:RadGrid> 

Pavel
Telerik team
 answered on 06 Apr 2010
3 answers
237 views
Hi,

I have jquery method that will validate all the controls inside of a panel. It works fine for all the controls but RadDatePicker doesnt work.

The CssClass is set to "required" is overwritten by control's default class. It works fine for DateInput control as class is appended.

Here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <p>
        &nbsp;</p>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <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" />
            <asp:ScriptReference Path="~/Scripts/jquery.validate.js" />
            <asp:ScriptReference Path="~/Scripts/additional-methods.js" />
        </Scripts>
    </asp:ScriptManager>

    <script type="text/javascript">
        $(document).ready(function() {
            // Initialize validation on the entire ASP.NET form.
            $("#form1").validate({

                // This prevents validation from running on every
                //  form submission by default.
                onsubmit: false
            });

            // Search for controls marked with the causesValidation flag
            //  that are contained anywhere within elements marked as
            //  validationGroups, and wire their click event up.
            $('.validationGroup .causesValidation').click(ValidateAndSubmit);

            // Select any input[type=text] elements within a validation group
            //  and attach keydown handlers to all of them.
            $('.validationGroup :text').keydown(function(evt) {
                // Only execute validation if the key pressed was enter.
                if (evt.keyCode == 13) {
                    ValidateAndSubmit(evt);
                }
            });
        });

        function ValidateAndSubmit(evt) {
            // Ascend from the button that triggered this click event
            //  until we find a container element flagged with
            //  .validationGroup and store a reference to that element.
            var $group = $(evt.currentTarget).parents('.validationGroup');
            var isValid = true;

            // Descending from that .validationGroup element, find any input
            //  elements within it, iterate over them, and run validation on
            //  each of them.
            $group.find(':input').each(function(i, item) {

                if (!$(item).valid())
                    isValid = false;
            });

            // If any fields failed validation, prevent the button's click
            //  event from triggering form submission.
            if (!isValid)
                evt.preventDefault();
        }
    </script>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <asp:Panel ID="Panel1" runat="server" CssClass="validationGroup">
            <asp:TextBox ID="TextBox1" CssClass="required" runat="server"></asp:TextBox>
            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="required">
               <asp:ListItem Text="Select One" Value=""></asp:ListItem>
               <asp:ListItem Text="test 1" Value="1"></asp:ListItem>
            </asp:DropDownList>
            <telerik:RadDatePicker ID="RadDatePicker1" CssClass="required" runat="server">
            </telerik:RadDatePicker>
            <telerik:RadDateInput ID="RadDateInput1" CssClass="required" runat="server">
            </telerik:RadDateInput>
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" CssClass="causesValidation" />
            <input id="Reset1" type="reset" value="reset" />
        </asp:Panel>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>

Veli
Telerik team
 answered on 06 Apr 2010
5 answers
498 views
Hi,
  Currently I have a requirement to add the grid control dynamically, this has NestedViewTemplate.
I was able to construct Grid on code behind as RadGrid r = new RadGrid(); How can I add NestedViewTemplate to this grid?
Manuel Ortiz
Top achievements
Rank 1
 answered on 06 Apr 2010
1 answer
142 views
Hello
 i am using the RadListView for displaying product boxes with ingress. i have following code


<telerik:RadListView runat="server" ID="products" Visible="false" ItemPlaceholderID="ProductItemContainer">
   <layouttemplate>
          <asp:PlaceHolder runat="server" ID="ProductItemContainer"/>
    </layouttemplate>
     <itemtemplate>
            <div class="<%=ArticleClassName%>">
                             <%#finArtTitle(CStr(DataBinder.Eval(Container.DataItem, "itemname")))%>
           </div>
   </itemtemplate>
</telerik:RadListView>


Now when i have place break-point for function "finArtTitle()" then i surprised to know that it fires for 16-times; when i have 4-products boxes (records).


Any suggestions / reasons please ?

Thanks.




Rosen
Telerik team
 answered on 06 Apr 2010
0 answers
85 views
Hello, i am working on rad schedular, and i print it in Portrait format, but now client wants to print it in landscape, any kind of help will be appreciated.
moftol
Top achievements
Rank 1
 asked on 06 Apr 2010
3 answers
270 views
Hello, the async upload works correctly (green checkmark) on my local (when i upload a file before postback) but when I push to my QA environment i get a red exclamation mark beside the file that I try to upload.  I was wondering if anyone knew what was wrong or if I forgot to add a permission to something on the QA server?

Let me know.

Thanks,


Jason
jasgrand
Top achievements
Rank 1
 answered on 05 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?