Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
136 views
Hello, All,

Could somebody please give some info how to add new fonts to HTML editor control?

Thanks in adnvance, Rodion
Rodion
Top achievements
Rank 1
 answered on 10 Jan 2011
6 answers
890 views
Hello,  I'm using a RadGrid to display some data, and I want to be able to show or hide one of the cells based on the value of another cell on a particular row.  In this particular instance, I want to hide the "Accept" and "Reject" cells based on what the text in "Status" is for that particular row.  So if the "Status" field comes out to = "Accepted", i want the Accept and Reject cells to show. but if it says "Rejected" I don't want those button cells to show up. How can I do this?

<tel:RadGrid ID="rgReferrals" runat="server" DataSourceID="odsReferrals" EnableLinqExpressions="true"
            AllowFilteringByColumn="true" AllowPaging="true" AllowSorting="true"  AutoGenerateHierarchy="true"
            OnDetailTableDataBind="rgReferrals_DetailTableDataBind" OnPreRender="rgReferrals_PreRender" >
        <MasterTableView AutoGenerateColumns="false">
            <Columns>                  
                <tel:GridBoundColumn HeaderText="ID" DataField="ReferralID" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
                <tel:GridBoundColumn HeaderText="Status" DataField="Status" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
                <tel:GridButtonColumn HeaderText="Accept" ImageUrl="~/Content/Images/Icons/tick.png"
                    CommandName="Accept" ButtonCssClass="InoperatableButton" ButtonType="ImageButton" Text="Accept" />
                <tel:GridButtonColumn HeaderText="Reject" ImageUrl="~/Content/Images/Icons/cross.png"
                    CommandName="Reject" ButtonCssClass="InoperatableButton" ButtonType="ImageButton" Text="Reject" />
Devon
Top achievements
Rank 1
 answered on 10 Jan 2011
5 answers
104 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
106 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
90 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
75 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
40 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
690 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
108 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
109 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?