Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views
In the examples, all I see are edit item templates and validation on those fields in the template.  What about if you are using the autogenerated edit form?  Any examples like that?  Thanks.
Vasil
Telerik team
 answered on 14 Oct 2010
6 answers
102 views
I have upgraded my project from 2010.1.519 to 2010.2.713.
After that I found that some strings in RadScheduler control cannot be localized.
Most of these strings relates to Recurrence part in the edit appointment form.
For example, you can try something like:

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" >
<Localization 
    AdvancedRecurrence ="Localize String 1" 
   AdvancedYearly="Localize String 2" 
/></telerik:RadScheduler>

 

 

 I tried the latest  hot- fixed release 2010.2.817, but it didn't help.
Nikolay Tsenkov
Telerik team
 answered on 14 Oct 2010
3 answers
139 views
  I have been working on creating a Data Provider by following the instructions under: Implementing a provider that supports multivalued resources. I am now ready to use it. However the only documentation that I have found is the article on Using a Data Provider which only describes how to use an XML file for a provider.  I have tried adapting it but I obviously don't know my way around the web.config enough to finesse it into working.  Are there other directions that I am missing?
 The Data Provider I created uses a SQL database and is named ACMESchedulerProvider.
 I am using RadControls for ASP.NET AJAX Q2 2010 NET35.

Thanks!

Don

Veronica
Telerik team
 answered on 14 Oct 2010
2 answers
186 views
Hi
I have a lstCentre in dropdown and txtOnDate as datepicker.
Based on these values the grid should display data.
I am using Linqdatasource with where clause
I tried all the following:
1. Where="Centre == @Centre && ExpectedDate == (DateTime.Parse(@ExpectedDate))"
2. Where="Centre == @Centre && (DateTime.Parse(ExpectedDate)) == @ExpectedDate"
3. Where="Centre == @Centre && ExpectedDate == Convert.ToDateTime(@ExpectedDate)"

None of them work and give me error as shown in screen shot attached.
Below is the code:
Visitors.aspx
******************************************************************
<li>
        <asp:Label ID="lbCentre" runat="server" Text="Centre:" AssociatedControlID="lstCentre"></asp:Label><telerik:RadComboBox ID="lstCentre" runat="server" AppendDataBoundItems="True" DataSourceID="LinqCentre"
            DataTextField="Centre" DataValueField="Centre" DataKeyField="Centre" DataSortField="Centre" ReadOnly="true"
            CausesValidation="False" onselectedindexchanged="lstCentre_SelectedIndexChanged" AutoPostBack="true"><Items><telerik:RadComboBoxItem Text="Choose One..." Value="10" /></Items></telerik:RadComboBox>
        </li><li></li>
        <li><asp:Label ID="lbOnDate" runat="server" Text="On (Date):" AssociatedControlID="txtOnDate"></asp:Label>
            <telerik:RadDatePicker ID="txtOnDate" runat="server" DateFormat="dd/MM/yyyy" 
                Enabled="true" Culture="English (United Kingdom)" AutoPostBack="true"
                onselecteddatechanged="txtOnDate_SelectedDateChanged"></telerik:RadDatePicker>
        </li>
 <asp:LinqDataSource ID="LinqVisitors" runat="server" 
            ContextTypeName="CWC.Staffnet.Forms.StaffnetDataContext" 
            TableName="tblVisitors"  
                Where="Centre == @Centre && ExpectedDate == (DateTime.Parse(@ExpectedDate))" 
                onselecting="LinqVisitors_Selecting">
            <WhereParameters>
                <asp:ControlParameter ControlID="lstCentre" Name="Centre" 
                    PropertyName="SelectedValue" Type="String" />
                <asp:ControlParameter ControlID="txtOnDate" Name="ExpectedDate" 
                    PropertyName="SelectedDate" Type="DateTime" />
            </WhereParameters>
        </asp:LinqDataSource
*****************************************************
Visitors.aspx.cs
*****************************************************
protected void LinqVisitors_Selecting(object sender, LinqDataSourceSelectEventArgs e)
       {
           foreach (KeyValuePair<string, object> kvp in e.WhereParameters) 
           
               if (kvp.Value == null) 
               { e.Cancel = true; return; } 
           }
       }

Please help me.
Thanks in advance..
S
Sucheta Patil
Top achievements
Rank 1
 answered on 14 Oct 2010
3 answers
267 views
I am trying to hide the DataPager if not results are being returned.  Here is my markup:

<telerik:RadListView ID="ProductResults" Width="100%" AllowPaging="True" runat="server" AllowSorting="true" ItemPlaceholderID="ProductsHolder" DataKeyNames="Key.Id"
            <LayoutTemplate> 
                <div class="PagingContainer" id="RadListView1"
                    <asp:Panel ID="ProductsHolder" runat="server" /> 
                    <asp:Panel ID="PagingPanel" runat="server"
                        <div id="Paging" runat="server" style="float: left; clear: both;"
                        <telerik:RadDataPager Skin="Default" AllowSEOPaging="true" SEOPagingQueryPageKey="page" 
                            Font-Bold="false" BackColor="#FFFFFF" BorderColor="#FFFFFF" ID="ProductResultsPager" 
                            runat="server" PagedControlID="ProductResults" PageSize="12"
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerTemplatePageField> 
                                    <PagerTemplate> 
                                        <div style="float: right; text-align: right; font-family: Arial;"
                                            <b>Products 
                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> 
                                                to 
                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" /> 
                                                of 
                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> 
                                                <br /> 
                                            </b> 
                                        </div> 
                                    </PagerTemplate> 
                                </telerik:RadDataPagerTemplatePageField> 
                            </Fields> 
                        </telerik:RadDataPager> 
                    </div> 
                    </asp:Panel> 
                </div> 
            </LayoutTemplate> 
            <ItemTemplate> 
                <div class="itemPicker" style="float: left; height: 75px; width: 215px; margin: 7px; padding: 10px 5px 10px 5px; border: solid 1px #ccc;"
                    <div style="width: 75px; float: left; margin: 0 0 0 5px;"
                        <id="ProductImageLink" runat="server"
                            <img border="0" src="<%# Eval("Value")%>"></a> 
                    </div> 
                    <div style="width: 120px; float: left; padding-left: 10px;"
                        <id="ProductLink" class="ProductSearchGridResultTitle" runat="server"
                            <%# Eval("Key.Title")%> 
                        </a> 
                    </div> 
                </div> 
            </ItemTemplate> 
        </telerik:RadListView> 

I am using FindControl to get access to the DataPager, and when I step through my code, and value.count  is 0, I get a null exception  on dataPager:

if (value.Count == 0) 
                { 
                    NoResults.Visible = true
                    RadDataPager dataPager = (RadDataPager)ProductResults.FindControl("ProductResultsPager"); 
                    dataPager.Visible = false
                } 

Ideas?

Thanks in advance!




Pavlina
Telerik team
 answered on 14 Oct 2010
1 answer
200 views
How to fill the color in the Pie-Chart series ...
Evgenia
Telerik team
 answered on 14 Oct 2010
1 answer
57 views
I want my loading panel to occupy the whole screen in transparency style..I am adding controls to the ajaxmanager programmaticaly ..My loading panel never do that (whole screen in transparency) ..it is do only thing..Whole screen or transparency ..I do not know exactly where is the error...Hope some one help me

This is my Cs code

uxRadAjaxManager.AjaxSettings.AddAjaxSetting(Panel1, Panel1, RadAjaxLoadingPanel1);
uxRadAjaxManager.AjaxSettings.AddAjaxSetting(Button1, Panel1, RadAjaxLoadingPanel1);
Is there specific order to add controls to the ajaxmanager ?


This is my aspx code


 <telerik:RadCodeBlock>
 <script type="text/javascript">
     function adjustLoadingPanelHeight() {
         $get("<%= RadAjaxLoadingPanel1.ClientID %>").style.height = document.documentElement.scrollHeight + "px";
         var loadingImage = document.getElementById('<%= RadAjaxLoadingPanel1.FindControl("Image1").ClientID %>');
         loadingImage.style.position = "relative";
         loadingImage.style.top = (parseInt(document.documentElement.clientHeight) / 2) - 50 + "px";
         loadingImage.style.right = (parseInt(document.documentElement.clientWidth) / 2) - 50 + "px";
     }

  </script>
 </telerik:RadCodeBlock>
 



<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>    

<rad:RadAjaxManager ID="uxRadAjaxManager" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
ClientEvents-OnRequestStart="adjustLoadingPanelHeight();" />



<rad:AjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  transparency="30" backcolor="#E0E0E0" IsSticky="true" style="position:absolute;top:0;left:0" Width="100%" Height="100%">
    <div>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Utilities/Images/loading1.gif" AlternateText="loading" />
    </div>
    </rad:AjaxLoadingPanel>
Dimo
Telerik team
 answered on 14 Oct 2010
3 answers
114 views
Hey everyone,

What are the mandatory events in using a RadGrid?..Why it is not visible in the browser until it is empty and there is no datasource?....I want to show an empty rad grid with template columns in edit mode on page load,where user inputs data.Than data will be saved to a data table and then to db.But the grid is not visible?...What's that required or is compulsory while using radGrid?...
Maria Ilieva
Telerik team
 answered on 14 Oct 2010
5 answers
186 views
We are using an ObjectDataSource with the RadGrid.  When I use filter and sort the full list is retrieved from the datasource and then filtered/sorted afterwards.

I would like to be able to use these in the retrieval process (and push the work back onto the SQL server).  However I can't seem to find a way to get the filtercommand or sortcommand where I want it (and tell the grid that I've already done the work).  With a standard DataGrid/ObjectDataSource pair I would simply add a sort parameter name and the gridview would fill it in.  Does the RadGrid support anything like this?

As another option it doesn't have to be so automatic, I can provide the values to the datasource using its onselecting event.  I just can't figure out where to get the values at that point.  Right now I have placed them in a page level variable, which is a little ugly.  I would like to be able to just access the current FilterCommand or SortCommand from the Grid.  Something like:  RadGrid.GetCurrentSortCommand() ?

Thanks
Matt
Andrey
Top achievements
Rank 1
 answered on 14 Oct 2010
1 answer
134 views
We are using Telerik 2009.2.701.20 version. We have RadEditor on the screen to enter comments.
Our requirement is that whenever user makes change in this editor, a client side flag should be set to indicate that the editor contents are updated.
So is there any event for rad editor to achieve above functionally?
Shinu
Top achievements
Rank 2
 answered on 14 Oct 2010
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?