Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
89 views
Is there a way to override the formdecorator style?
I have the need for a hidden button in order to call some server-side script from a client-side action.
I have other buttons on the form that I would like decorated.
When I apply the formdecorator style, it overrides my 'hidden' buttons - which aren't really hidden, otherwise they wouldn't work, they are just set to null text, no border, no background. The formdecorator makes them visable.

Is there anyway to force my inline button styles?

e.g.
<telerik:radformdecorator id="FormDecorator1" runat="server" DecoratedControls="all" Skin="Windows7"></telerik:radformdecorator>

<asp:Button ID="RadCboAllGeographyHelper" runat="server" Text="" OnClick="RadCboAllGeographyHelper_Click" BackColor="Transparent" BorderStyle="None" />   

Thanks in advance for any help.
-Megan
Megan Vee
Top achievements
Rank 1
 answered on 22 Sep 2010
1 answer
299 views
Hi,
I have  a RadComboBox named "TicketTypeComboBox",  Panel1 and Panel2.   Panel2 wraps  a userControl named "SearchForm".  This usercontrol has a Button with an ID = "SearchBtn".
Selectedindex changed event in TicketTypeComboBox should toggle visibility of Panel1 and Panel2. Similarly,  click event of SearchBtn sends an ajax request to hide Panel2 and show Panel1. Given below is the ajax setting for project. RadCombox  works as expected and tooggles the visibility of Panel1 and panel2 untill you hit Search Btn in usercontrol.
On Clicking "searchBtn" it hides panel2 and shows panel1, and it messes up  the function of "TicketTypeComboBox".  TicketTypeComboBox sends ajax request but can no longer update any of its updated control. Can someone tell me why this is happening? Am I missing something?

//Markup for ajax setting
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
           onajaxrequest="RadAjaxManager1_AjaxRequest" EnablePageHeadUpdate="False"   >
     <telerik:AjaxSetting AjaxControlID="TicketTypeComboBox">
                    <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="Panel1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel2" />
                    </UpdatedControls>
    </telerik:AjaxSetting>   
  <telerik:AjaxSetting AjaxControlID="SearchBtn">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel2" />
                    </UpdatedControls>
  </telerik:AjaxSetting>
</telerik:RadAjaxManager>

//MarkUp for MainPage
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" EnableViewState="true" %>
    ..
    ..
    <telerik:RadComboBox ID="TicketTypeComboBox" runat="server"  AutoPostBack="true"  EnableViewState="true"
                        onselectedindexchanged="TicketTypeComboBox_SelectedIndexChanged" >
                </telerik:RadComboBox>   
    <asp:Panel ID="Panel1" runat="server"  CssClass="HideQueryNTicketPanel" >
                                 <telerik:RadGrid  ID="TicketsGrid"  runat="server"   >   </telerik:RadGrid>
                    </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" CssClass="ShowQueryNTicketPanel" >
                                <uc1:CSearch ID="SearchForm" runat="server" ></uc1:CSearch>
                </asp:Panel>    
    ...
    ...


//Codebehind
  protected void TicketTypeComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            string selectedText = TicketTypeComboBox.SelectedValue;
            switch (selectedText)
         {
            case ("Open Tickets"):
    Panel1.visible = true;
    Panel2.visible = false;
                   break;
            case ("Assigned Tickets"):
                   Panel1.visible = false;
    Panel2.visible = true;
                   break;
    }           
}
//MarkUp for userControl ("SearchForm")
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomSearch.ascx.cs" Inherits="CustomSearch" %>
<asp:UpdatePanel ID="QueryPanelUPD" runat="server" UpdateMode="Conditional" >
     <ContentTemplate>
             <asp:Panel  ID="QueryPanel"  runat="server" CssClass="ShowPanel" >
                           <asp:Button  ID="SearchBtn"        runat="server" Text="Add"    onclick="SearchBtn_Click" />
           </asp:Panel>
     </ContentTemplate>
  </asp:UpdatePanel>


//Codebehind for usercontrol

  protected void SearchBtn_Click(object sender, EventArgs e)
    {
        Panel1.visible = true;
        Panel2.visible = false;
    }

Sincerely,
Prava
Pavlina
Telerik team
 answered on 22 Sep 2010
3 answers
131 views
hi

I have a menu item called Inbox.

I want to append some values like numbers of documents beside the Inbox.
I have already a stored proc that does the count for me but need to show it beside the Inbox

For example Inbox (10)

How should i go about it? thanks
L
Top achievements
Rank 1
 answered on 22 Sep 2010
1 answer
154 views
Hi, I think I found a bug (maybe it's already fixed in newer versions). When I copy a file from the grid, and paste it in a treeview folder that I already visited, the destination folder doesn't refesh it's contents.

These are the steps:

1) Go to folder 'A'
2) Go to folder 'B'
3) Copy file 'X' in folder 'B'
4) Without changing folders, right-click folder 'A' in the treeview and paste the copied file.
5) Go to folder 'A'

The new file doesn't appear in folder 'A'. It do appears if I hit refresh.
This bug doesn't happen if I drag-n-drop the file from 'B' to 'A'.

I'm using version 2010.1.309.35. Is there a way to fix this without changing my current version? Like manually invalidating the grid cache from javascript after the operation.

Thanks,
Santiago.
Fiko
Telerik team
 answered on 22 Sep 2010
1 answer
293 views
Hi,
i just want to disable and Enable ASp Drop Down list inside Rad grid form   based on value of another combo box.

Example
Combo.selectedvalue="Yes" then<BR>Enable Combo2<BR>else<BR>Disable Combo2


Using Client Side onslectedindexchanged method in the ASP drop down i tried lot of ways but not working
Shinu
Top achievements
Rank 2
 answered on 22 Sep 2010
1 answer
83 views
This is a brainstorming question. Should be easy. I'm writing a scheduling program and I can't conceptualize how to accomplish what I need to.  Here is the scenario:

1)You have a group of electricians, carpenters, and plumbers who log onto a RadSchedule and enter their various available days and times.
2) A person submits a request.  "I need a plumber for 3:00-4:00 on 9/17/2010."
3) A coordinator gets the request and needs to be able to see that on that day and time, plumbers Joe, Ralph, and Veronica are available.
4) The trick is how do you show that Plumber Veronica is scheduled to work from 8:00 to 5:00 and then schedule her for the  3:00-4:00  slot while showing that she is still available for the remaining  8:00-2:00 and 4:00-5:00 slots? You would be deleting and recreating 3 different appointment records.
5) I need the database to simultaneously tell me that Veronica has an 8 hour block "available" and these are the parts of that 8 hours that are taken up already.


BAD ANSWER: Here is my current idea which really isn't a good solution.  The plumbers, electricians, and carpenters all log onto the system and with radscheduler, they select their available schedules. I mark these with a resource named "Available".  Now I can ask RadScheduler to tell me "Who's available on this day?"  I then see that Veronica is available and I create a NEW and SEPARATE 3:00-4:00 appointment which shows up along side her "Available" appointment.  Now I can see Veronica's usual schedule and those parts of it that are taken up already.  Here is the kicker.  This gets to be a mess when there are 19 plumbers available at the same time.  You then must either toggle various appointments on and off or go through each person available and look at their schedules separately.

ANOTHER IDEA: I don't know how to do this because database programming with DateTimes is Hell on wheels but maybe Joe Electrician could log on and choose 8:00-5:00 on  Tuesdays as being available.  Then behind the scenes, you grab that 8:00-5:00 appointment and replace it with 18 separate half hour appointments between 8:00-5:00.  Then the Coordinator receiving the request for 3:00-4:00 could just delete the "little" appointments and replace them with the new appointment time being scheduled.

I'm writing this here because I hope I'm missing something totally obvious in using RadScheduler.  Maybe there is some combination of resources I could use that would accomplish this.  I can' think of it though.

Thanks and Best to All!

Veronica
Telerik team
 answered on 22 Sep 2010
3 answers
131 views
Hello again,

How can I remove rad Cloud item from tag list by using javascript from Client Side.?

I couldn't see any function about this property in help document. 

I want to remove when user click on it. Maybe we can put remove images left side each tag.

can we put dynamic "remove image" ( maybe image button ) for every tag ?  Pls help.

 

function OnClientItemClicking(cloud, args) {

 

 

if (cloud.get_id() == "RadTagCloudCustomer")
 
{

 

 ??????? // remove this item from list.

}

 

 

args.set_cancel(

true);

 

}



Pero
Telerik team
 answered on 22 Sep 2010
1 answer
174 views
Hello,

I have an app which uses various Telerik controls (radgrid, radcontextmenu).  The app works fine in development but not on the production server.  Can anyone tell me why the client-side events (selecting radgrid row, right-clicking radgrid for context menu popup) dont work on the production server?  I have other apps on the server that don't use Telerik controls that work fine.

Any help appreciated!
Thanks in advance.
Dimo
Telerik team
 answered on 22 Sep 2010
1 answer
150 views
Hi is there anyone who knows how i can bind data to a grid at runtime and be able to edit the grid and submit changes to the database.Reason why i need to bind at runtime is because the number of columns in my dataset varies all the time. Thank you.
Tsvetoslav
Telerik team
 answered on 22 Sep 2010
1 answer
50 views
Dear Team,

i am using rad grid inside grid dropdown .
when click button or any Event after will disappare griddropdown values inside the grid .

Give me a Correct Solutuions.

With Regards,
S.Kannadasan
Pavlina
Telerik team
 answered on 22 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?