Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
112 views

Hi,

I would like to show the summary of appointment in monthview,  I am able to get the dataset formonth view. I am able to bind this dataset in month view, there are noexceptions. The problem is that I am not able to see my appointment in monthview.

Design code:

<telerik:RadScheduler ID="schAdminView"

                Width="700px"

                Height="400px"

                DataKeyField="AppoinmentId"

                DataSubjectField="ApptName"

                DataStartField="StrtTime"

                DataEndField="EndTime"

                DisplayDeleteConfirmation="true"

                SelectedView="DayView"

               

                Skin="Web20"

                runat="server"

                OverflowBehavior="Scroll"

                AdvancedForm-Enabled="false"

                ShowViewTabs="true"

                AllowEdit="true"

                ShowDateHeaders="true"      >

<MonthView VisibleAppointmentsPerDay="10"  />

</telerik:RadScheduler>

Sample dataset (Month view)

AppoinmentIdApptName       StrtTime              EndTime

   1        2Appt          3/9/2009 12:00:00 AM  3/9/2009 11:59:59 PM

   2           3Session       3/9/2009 12:00:00 AM  3/9/200911:59:59 PM

   3        2Appt          8/9/2009 12:00:00 AM  3/9/2009 11:59:59 PM

   4           3Session       8/9/2009 12:00:00 AM  3/9/200911:59:59 PM

Thanks

Sabarish

Veronica
Telerik team
 answered on 10 Jan 2011
1 answer
111 views
I have a simple category TreeView control with recID, parentID, categoryNames as datafieldID, dataFieldParentID, dataTextField respectively.

I also have a gridview control, whose datasource control gets recID value from TreeView control in order to populate the GridView control.

Datasource is as follow:

<asp:SqlDataSource ID="DS_catAttribute" runat="server"
        ConnectionString="<%$ ConnectionStrings:myCS %>"
        SelectCommand="sp_paramCatAttributeSelectGV"
        SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="categoryTV" Name="catID"
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
</asp:SqlDataSource>

SelectedValue property for categoryTV (treeview control) returns categoryName instead of recID.

How can I get recID to pass it my store procedure?

Thank you
Canis Lupus
Top achievements
Rank 1
 answered on 10 Jan 2011
0 answers
101 views
I have a RadAjaxManagerProxy inside a UserControl. I have an ajaxfied ImageButton. The first time I click the button it sends a normal post-back, but then AJAX works fine.

Any idea?
I'm using Q3 2010.

Thanks
Jorge
Top achievements
Rank 1
 asked on 10 Jan 2011
1 answer
79 views
I need to know when the Multipage is available on the clientside.  The manipulation I need to preform is inside of $(document).ready()

Difficulty: I am unable to use the pageLoad function :)
Cori
Top achievements
Rank 2
 answered on 10 Jan 2011
1 answer
43 views
Hi Can any body help 
I have problem in radgrid select row index value.if i selecte first row of the grid it is showing zero row index.that is fine.when i slecetd next page of that rad grid .then again i select first row it is showing again zero.but it need to show 11 row index right?
how can i get that row index.

and same as how can i get last row index.


thanks
Vasil
Telerik team
 answered on 10 Jan 2011
6 answers
711 views
Hi, I am using a RadCombo in Listview. I have assigned CausesValidation property of the RadCombo to false. But on focus of RadCombo, client validation is happening and ValidatorCalloutExtender is getting popped up.
Below is the html for radcombo :

 <tr>
                        <td align="left" class="formlabel"  >
                          Category
                          <span class="contentwarninglabel">*</span>
                            <asp:RequiredFieldValidator  ValidationGroup="UploadValidation" ID="CategoryValidator" runat="server"
                                ControlToValidate="rdComboCategory"  Visible="true" Display="None" ErrorMessage="<%$ Resources:Messages, DOCUMENT_CATEGORY %>">
                            </asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="CategoryCalOutExtender" WarningIconImageUrl ="~/Images/icon_oops.gif"  CssClass="customCalloutStyle" HighlightCssClass="customCalloutStyle"
                            runat="server" TargetControlID="CategoryValidator" >
                            </ajaxToolkit:ValidatorCalloutExtender>  


                        </td>
                        <td  class="formcontrol"  align="left"  >
                            <telerik:RadComboBox
                                    ID="rdComboCategory" runat="server" AllowCustomText="false" Width="128px" AutoPostBack="true" CausesValidation="false"
                                    CloseDropDownOnBlur="true" CssClass="formlabel2controls"
                                    EnableItemCaching="true" HighlightTemplatedItems="true"  
                                    MarkFirstMatch="true" DataTextField="CategoryID" DataValueField="cATEGORYnAME" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" OnClientFocus="return false;"  >
                            </telerik:RadComboBox>
                 


                      
                                    <asp:LinkButton runat="server" CssClass="contentlinks" ID="AddCategory"   >New</asp:LinkButton>
                                      <div class="panelCSS">
                                     <div id="pnlModalPanel1" style="display: none">
                                   
                                     <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                            <ContentTemplate>
                                        
                                            <uc1:Category ID="ucAddPopup" runat="server" />
                                        
                                        </ContentTemplate>
                                        </asp:UpdatePanel>
                                        </div>
                                   </div>
                                    <ajaxToolkit:ModalPopupExtender TargetControlID="AddCategory" PopupControlID="pnlModalPanel1"
                                        BackgroundCssClass="modalBackground" runat="server" ID="mdlpopupAddevent">
                                    </ajaxToolkit:ModalPopupExtender>
                       </td>


Can anyone please help how to stop client validation of RadCombo?

Thanks
-Sanjivani
Cori
Top achievements
Rank 2
 answered on 10 Jan 2011
1 answer
111 views

i am using window.radopen function .and i want use OnClientclose event in this function how can i use.

return

 

string.Format("var win = window.radopen('DisplayImage.aspx?id={0}&regno={1}&hosid={2}','Details');win.center();win.maximize();win.set_visibleStatusbar(false); ", Convert.ToString(id), Session["registrationId"].ToString(), Session["HospitalLocationId"].ToString());

 

Shinu
Top achievements
Rank 2
 answered on 10 Jan 2011
1 answer
113 views
HI
I have a RadTreeView inside RadAjaxPanel, I also have a textbox and button inside AjaxPanel, when the user clicks the button, Server side method executes and find appropriate node according to the text in textbox and select the first item.I want to scroll to selected node and I use ScrollIntoView with the following format:

<script type="text/javascript">
function OnResponseEnd(sender, arguments)
{
      var treeviewInstance = <%=RadTreeView1.ClientID %>;
      var selectedNode = treeviewInstance.SelectedNode;
       if (selectedNode != null)
       { 
          selectedNode.ScrollIntoView();
       }
}
</script>

<radA:RadAjaxPanel
    ID="RadAjaxPanel1"
    runat="server"
    ClientEvents-OnResponseEnd="OnResponseEnd">
</radA:RadAjaxPanel>

But it doesn't work and it can not find treeviewInstance.SelectedNode. What should I do?

Thanks In Advance
Simon
Telerik team
 answered on 10 Jan 2011
1 answer
106 views
Hi all,

I have bind listbox as the following at RadAjaxManager1_AjaxRequest event.

ListBox1.DataTextField = "Desc"
ListBox1.DataValueField = "ID"
ListBox1.DataSource = dt
ListBox1.DataBind()
Data didn't show out in ListBox1.

But when I look at Watch window like this   ListBox1.Items.count it shows me 5 , when I look detail  ListBox1.Items(0).text it shows "AAA".
So this mean data are already in Listbox, but just not show.

Please advise how I can show these data?
Here is my Listbox sourcecode
<telerik:RadListBox ID="ListBox1" runat="server" CheckBoxes="True"
            Skin="Default" Height="300px" >
        </telerik:RadListBox>

Please Help...

Thanks and best regard.
Simon
Telerik team
 answered on 10 Jan 2011
1 answer
478 views
Hello, 

I have a small question, about the SortExpression in a GridTemplateColumn.
In fact, I have a SQL table [Action] and a table [PlanActionNiveauDeRealisation]. Like this an [Action] can have a lot of [PlanActionNiveauDeRealisation].

So, I put a RadGrid with all my [Actions] and in the last columns I put this : 
<telerik:GridTemplateColumn UniqueName="LastNiveau" HeaderText="Niveau de réalisation" >
                        <ItemTemplate>
                            <telerik:RadRating ID="ratingBar" runat="server" Orientation="Horizontal" ItemHeight="61px"
                                ItemWidth="11px" CssClass="ratingClass" OnRate="ratingBar_Rate" AutoPostBack="true">
                                <Items>
                                    <telerik:RadRatingItem Value="0" HoveredImageUrl="/images/Rating/Rating1/2h.png" HoveredSelectedImageUrl="/images/Rating/Rating1/2h.png"
                                        SelectedImageUrl="/images/Rating/Rating1/2s.png" ImageUrl="/images/Rating/Rating1/2.png" ToolTip="0 %" />
                                    <telerik:RadRatingItem Value="25" HoveredImageUrl="/images/Rating/Rating1/3h.png" HoveredSelectedImageUrl="/images/Rating/Rating1/3h.png"
                                        SelectedImageUrl="/images/Rating/Rating1/3s.png" ImageUrl="/images/Rating/Rating1/3.png" ToolTip="25 %" />
                                    <telerik:RadRatingItem Value="50" HoveredImageUrl="/images/Rating/Rating1/4h.png" HoveredSelectedImageUrl="/images/Rating/Rating1/4h.png"
                                        SelectedImageUrl="/images/Rating/Rating1/4s.png" ImageUrl="/images/Rating/Rating1/4.png" ToolTip="50 %" />
                                    <telerik:RadRatingItem Value="75" HoveredImageUrl="/images/Rating/Rating1/5h.png" HoveredSelectedImageUrl="/images/Rating/Rating1/5h.png"
                                        SelectedImageUrl="/images/Rating/Rating1/5s.png" ImageUrl="/images/Rating/Rating1/5.png" ToolTip="75 %" />
                                    <telerik:RadRatingItem Value="100" HoveredImageUrl="/images/Rating/Rating1/6h.png" HoveredSelectedImageUrl="/images/Rating/Rating1/6h.png"
                                        SelectedImageUrl="/images/Rating/Rating1/6s.png" ImageUrl="/images/Rating/Rating1/6.png" ToolTip="100 %" />
                                </Items>
                            </telerik:RadRating>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>

In the ItemDataBound, I put : 
protected void RGPlanAction_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                var maxLength = 50;
                var dataItem = e.Item as GridDataItem;
                var myPlanAction = (Model.PlanAction)e.Item.DataItem;
 
                var myRadRating = (RadRating) dataItem["LastNiveau"].FindControl("ratingBar");
                myRadRating.Attributes.Add("IdPlanAction", myPlanAction.IdPlanAction.ToString());
                myRadRating.Attributes.Add("IndexRadGrid", e.Item.ItemIndex.ToString());
                var ndr = myPlanAction.PlanActionNiveauDeRealisation.LastOrDefault();
                if(ndr != null)
                {
                    myRadRating.Value = ndr.NiveauDeRealisation;   
                }
                else
                {
                    myRadRating.Value = 0;  
                }
            }
        }

Like this, it's perfect, I have a nice RadGrid with the last [PlanActionNiveauDeRealisation] of each [action].

Just, I would like to make some sorting with this last column : [lastNiveau], but i dunno what to put in the SortExpression...

Do you have any idea?


Thank you



Maria Ilieva
Telerik team
 answered on 10 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?