Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
397 views

Hi
i have one RadioButtonList as below...

 

<asp:RadioButtonList id="rblType" runat="server"

 

 

style="z-index: 103; left: 465px; position: absolute; top: 120px;

 

 

width: 150px; height: 16px; vertical-align: middle;"

 

 

RepeatDirection="Horizontal" AutoPostBack="false"

 

onmousedown

 

="getCheckedRadio()"

 

 

 

 

 

 

 

OnSelectedIndexChanged="rblType_SelectedIndexChanged">

 

 

 

<asp:ListItem Text="St" Value="St" Selected="True"></asp:ListItem>

 

 

<asp:ListItem Text="TC" Value="TC"></asp:ListItem>

 

 

 

</asp:RadioButtonList>

now i want to change the text of textbox using the selected lsititem in radiobuttonlist using javascript.

 

function getCheckedRadio()
{

    var rblType= document.getElementsByName("ctl00_messagePanelsContent_contentPlaceHolder_fvAllotmentDetail_rblType");
//some loop here on rblType and then 
for(int i=0; i < rblType.length; i++ )
{
    if (rblType.item[i] == "checked")
      {       
            alert("You checked ");
        }
}
   
}

but the above javascript code is not working.
could anyone please help me to how to get the selected listitem using javascript.
thanks in advance...

waiting for reply.

bharat kumar
Top achievements
Rank 1
 asked on 15 Apr 2010
3 answers
168 views
We took the latest 2010Q1 release, and as always are going through the site to find the bugs.

One small one is that icon in the upper left of the rad window popups changed from a yellow/white to a green/light green icon.  It sticks out as the popup boarder is blue, yet there is this green icon. 

We are using the built in skins - I think Vista for the popup.

Is this a known issue and is there a suggestion on how to correct?

Thanks

Tim
Jeff
Top achievements
Rank 1
 answered on 15 Apr 2010
2 answers
328 views
Dear Sir,
i m using Scheduler Control. I want to change Appointment Back Colour Condition Wise

In Appointment Template i Have a Label i have Just bound it to database and through This Label Value i want to Change Appointment Back Color.

Like If Label Value = "U" Then Appointment Color ="Red"
If Label Value = "P" Then Appointment Color ="Blue"
If Label Value = "A" Then Appointment Color ="Pink"

Like This. When i use Appointment Databound Event For Colour Changing Then How can i get Appointment Template Control Field Value on Appointment Databound.

And When i Use Appointment Created Event Then that Time Label Value Is Blank.

How Can I Achive this Problem.

Some Code Sample Like As


protected

 

void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)

 

{

 

 

 

Label lblStatus = (Label)e.Container.FindControl("lblStatus");

 

 

 

 

if (lblStatus.Text == "U")

 

{

e.Appointment.BackColor = System.Drawing.

 

 

Color.Yellow;

 

}

 

 

 

else if (lblStatus.Text == "A")

 

{

e.Appointment.BackColor = System.Drawing.

 

 

Color.Blue;

 

}

 

 

 

else if (lblStatus.Text == "P")

 

{

e.Appointment.BackColor = System.Drawing.

 

 

Color.Green;

 

}

 

 

 

//checkbox1.Checked = true;

 

 

 

}



//////////////////////////////////////////////////////// aspx


<

 

telerik:RadScheduler AllowInsert="false" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated"

 

 

 

 

 

runat="server" ID="RadScheduler1" Skin="Office2007" Height="551px" CustomAttributeNames="AppointmentStatus"

 

 

 

 

 

Width="690px" ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00"

 

 

 

 

 

DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"

 

 

 

 

 

ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

 

 

 

DataSubjectField="1" DataStartField="1" DataEndField="1" ShowAllDayRow="false"

 

 

 

 

 

OnClientAppointmentContextMenuItemClicked="A" OnClientAppointmentClick="ShowExisting1"

 

 

 

 

 

OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked" AllowDelete="false"

 

 

 

 

 

OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"

 

 

 

 

onnavigationcommand="RadScheduler1_NavigationCommand">

 

 

 

 

 

<AppointmentContextMenuSettings EnableDefault="false" />

 

 

 

 

 

<TimelineView UserSelectable="false" />

 

 

 

 

 

<AppointmentTemplate>

 

 

 

 

<%

# Eval("Subject")%>

 

 

 

 

<asp:Label ID="lblStatus" runat="server" Text=<%#Eval("AppointmentStatus") %>></asp:Label>

 

 

 

 

 

</AppointmentTemplate>

 

 

 

 

<

 

TimeSlotContextMenuSettings EnableDefault="False" />

 

 

 

 

 

</telerik:RadScheduler>

 

 

 

 






Please Help Me.
Thanks
Chandan Kumar.
Chandan Kumar
Top achievements
Rank 1
 answered on 15 Apr 2010
2 answers
145 views
Hi

I have implemented a Custom Content Filter that converts web control-like tags <tag:xslfile /> to an image and back.

I want to run this filter on load, so that the images are displayed in Design view, but the original tag is displayed in Html view.

The hacky way is to do this:

editor.set_mode(2);
editor.set_mode(1);

But this makes the editor flicker.

Is there a nicer way?

Thanks
--Jakob
Jakob Christensen
Top achievements
Rank 1
 answered on 15 Apr 2010
2 answers
170 views
hi

     i am using Rad menu control for my horizontal menu and i am using black css
the issue is when mouse over the first root menu the hover image is not aligned properly please give me the solution for this issue
i attached issue screenshot please refer
sathish venkat
Top achievements
Rank 2
 answered on 15 Apr 2010
1 answer
92 views
Hi everybody,
I'm testing Telerik controls in order to use them in a wss/moss custom application. I need help passing data between different Panels.

My final goal is to make refreshing different web parts when i click on a control on a single web part passing some data to the other web parts before they render again.

I designed my app with 2 panel: a menu area and a content area.
The idea was to customize the master page where I put:

  • 1 asp:ScriptManager
  • 1 telerik:RadAjaxManager
    <asp:ScriptManager runat="server" ID="ScriptManagerMain" /> 
     <telerik:RadAjaxManager ID="RadAjaxManagerMain" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="CustomPanelMenu"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="CustomPanelMain"  /> 
                 </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="CustomPanelMain"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"/> 
                    <telerik:AjaxUpdatedControl ControlID="CustomPanelMenu" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 


  • 1 asp:Panel to be used for menu purposes
                <asp:Panel ID="CustomPanelMenu" runat="server"
                    <WebParts:TestMenu001 runat="server" ID="TestMenu001_1" Title="MenuSx" __MarkupType="vsattributemarkup" __WebPartId="{0ce525f0-089d-4f57-902a-78d4b87b34b9}" WebPart="true" __designer:IsClosed="false" /> 
              </asp:Panel> 
 



  • 1 asp:Panel where I put the standard moss content placeholder "PlaceHolderMain" for main content web parts
  • 1 telerik:RadAjaxLoadingPanel to make the application more interactive
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelMain" runat="server"/> 
 
<asp:Panel ID="CustomPanelMain" runat="server"
    <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server"
    </asp:ContentPlaceHolder> 
</asp:Panel> 
 

As you can see in the first code block, I configured the RadAjaxManager in order to update the panels.
I had to pass data between the web part I will put in the panels:
For example: when I click on a control in the web part put in the menu panel I want the web part put in the CustomPanelMain will refresh with the id I chose.

I try to put data in the Page.Session, but I tested that the refresh on the main web part will start before the data is written in the menu web part.
What am I wronging? What do you suggest to do that?

Many thanks,
RF







Tsvetoslav
Telerik team
 answered on 15 Apr 2010
1 answer
90 views
From production logs of our application we see that editor.get_html() method call intermittently fails and returns a value of undefined. This failure highly correlates with FF 3.5.9 and above browsers. Any ideas, on this issue?
Rumen
Telerik team
 answered on 15 Apr 2010
3 answers
270 views
Hi All,

I've got to say the Telerik controls are awsome, and the community is even better. I have converted my entire project from a competitor to Telerik over the past 6 weeks and have gotted all the info I need from the forums and documentation.

Well up until now, but I dont think this is a hard one....

I'm enabling my users to select their own skins. this is all great for the Rad controls and Decorated form elements.

However I'm missing the boat on how to apply the same styles to some simple elements like an html link. When using the black theme links show up in the standard blue which is hard to see.

I know I can apply a style for the links using regular CSS but that wont work so well when I have a black vs white background.

The second item I want to know is if I can reuse some of the background images that are present in the headers of elements like the grid and splitter for things like a table row background that would be reflected when the skin is changed (So I can't apply a specific styl e name like Telerik_Web20_class).

Thanks in advance for any replies!



Georgi Tunev
Telerik team
 answered on 15 Apr 2010
9 answers
253 views
The 'group by' behaviour appears to behave diferrently if defined declaratively as apposed to dragging and dropping the columns into the GridGroupPanel.

When the page first loads and I define declaritively the 'Group By' rows look like the following:

+ HomeTerminal: Buffalo; JobNumber: 222222
[row data]
[row data]
[row data]
+ HomeTerminal: Buffalo; JobNumber: 555555
[row data]
[row data]

Then I drag the items from the GridGroupPanel to clear the grouping.  Then I drag the 'Home Terminal' column to group by that column.  Then I drage the 'Job Number' column to group by that column.  The results are then:

+ Home Terminal: Buffalo
+ Job Number: 222222
[row data]
[row data]
[row data]
+ Job Number: 555555
[row data]
[row data]

Does anybody know how to get the grid to look like the second example when the page first loads?  Thank you very much for your help.


Yavor
Telerik team
 answered on 15 Apr 2010
1 answer
165 views
I tried this example and what  I was not sure was whether if the data changed if the rotator was suppose to update the feed.

I have a scrolling feed that has a bunch of alerts.  If the alerts change, ie one of them gets deleted, added or update, the feed will change.  I doesnt look like this example does this. 

I tried using a timer and ajax to update the alerts, but is not smooth when it updates the alerts.  any ideas
Pero
Telerik team
 answered on 15 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
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?