Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
217 views
Hi

I am using the Telerik Radgrid with radiobuttonlist as shown in following code
My problem is I am not able to find the radibutto list is checked or not at client sid when I validate the data (case:at least one radion button should be checked)

Please send me some clue.


<telerik:RadGrid ID="RadGrid1" runat="server" BackColor="#eeeeee" AutoGenerateColumns="false"
BorderWidth="0px" GridLines="None" Skin="" Width="450px" OnItemDataBound="RadGrid1_ItemDataBound">
 <%-- <ItemStyle CssClass="RowColor" />--%>
 <HeaderStyle Height="25px" />
 <MasterTableView Font-Names="Arial" Font-Size="8pt">
  <Columns>
<telerik:GridTemplateColumn HeaderText="Date" UniqueName="Date">
<ItemTemplate>
<asp:Label ID="lblODDate" runat="server" Text='<%# Eval("AttendanceDate", "{0:dd MMM yyyy}") %>'></asp:Label>
 </ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="80px" />
<ItemStyle HorizontalAlign="Center" Width="80px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Day" UniqueName="Day">
<ItemTemplate>
<asp:Label ID="lblODDay" runat="server" Text='<%# Eval("AttendanceDate", "{0:dddd}") %>'></asp:Label>
 </ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemStyle HorizontalAlign="Center" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Shift" UniqueName="Shift">
<ItemTemplate>
<asp:Label ID="lblShiftCode" runat="server" Text='<%# Bind("ShiftCode") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemStyle HorizontalAlign="Center" Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Hrs" UniqueName="Hrs">
 <ItemTemplate>
<table cellpadding="0" cellspacing="0" width="250px">
<tr>
 <td align="left">
  <asp:RadioButtonList ID="rbtnOdDay" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
CssClass="textStyle1" Width="200px" RepeatLayout="Table">
 <asp:ListItem Text="Full Day" Value="1"></asp:ListItem>
<asp:ListItem Text="Half Day" Value="0.5"></asp:ListItem>
<asp:ListItem Text="Hours" Value="0"></asp:ListItem>
 </asp:RadioButtonList>
</td>
 <td id="trHrs" align="left" style="display: none" runat="server">
 <telerik:RadTimePicker ID="radTimePicker" runat="server" Width="35px" EnableTheming="true"
SkinID="ESSTimePicker">
</telerik:RadTimePicker>
   <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Select hrs."
Text="*" ControlToValidate="radTimePicker" ValidationGroup="mygroup" Display="Dynamic"></asp:RequiredFieldValidator>--%>
 </td>
   </tr>
</table>
 </ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="250px" />
<ItemStyle HorizontalAlign="Center" Width="250px" />
 </telerik:GridTemplateColumn>
   </Columns>
<EditFormSettings>
 <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif"
  InsertImageUrl="Update.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"
    UpdateImageUrl="Update.gif">
</EditColumn>
  </EditFormSettings>
 <PagerStyle FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"
 NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif" />
</MasterTableView>
 <HeaderStyle Font-Bold="True" />
</telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 19 Mar 2012
5 answers
222 views
Hello Sir,

We are using rad ajax panel with Assembly Version (1.7.2.0) in .net 4.0 framework (Visual Studio 2010) but rad Ajax Panel is not working in my code.

I am using it in asp drop down list with auto postback= true  but When i do selected item from drop down then it is not being PostBack and it is giving javascript error.

Please let me know.How Should I remove this error.

thanks,

Alok
Vasil
Telerik team
 answered on 19 Mar 2012
5 answers
266 views
Hi,

Im creating a popup with the modalPopUpExtender (ajaxcontroltoolkit Version=3.0.30930.28736), for that im using a asp panel and inside them i got two raddatepicker, combobox, enclosing the panel i got a Updatepanel.. something like this:

<updatepanel>
<panel>
   <div>
    <raddatepicker1><raddatepicker2><radcombobox> 
   </div>
   <ajaxToolkit:ModalPopupExtender>
</panel>
<aspbutton> //to open the popup
</updatepanel>

The popup opens fine, but when a control fire an event like combobox selectedindexchaged or i close de popup i got this error:

Server Error in '/' Application.
Invalid JSON primitive: {"minDateStr":"2/28/2012 0:0:0","maxDateStr":"12/31/2099 0:0:0"}.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.ArgumentException: Invalid JSON primitive: {"minDateStr":"2/28/2012 0:0:0","maxDateStr":"12/31/2099 0:0:0"}.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[ArgumentException: Invalid JSON primitive: {"minDateStr":"2/28/2012 0:0:0","maxDateStr":"12/31/2099 0:0:0"}.]
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +543674
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37
   System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(String input) +13
   Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +137
   Telerik.Web.UI.RadDatePicker.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +40
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +346
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
 
 
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634

I will appreciate your help.
Antonio Stoilkov
Telerik team
 answered on 19 Mar 2012
11 answers
124 views
We have multiple telerik controls on a page and any time you click on the in IE 8 on a win xp machine we get the error attached. Do you know of any solution for this? I should note that the commands (such as a delete command in a gridview, an upload command, etc) actually work, it just pops up with that ajax error every time. Any ideas?
Iana Tsolova
Telerik team
 answered on 19 Mar 2012
1 answer
94 views
I have two Listview's. They are populated the same was. One does not give any evidence of getting any data. HELP!

Here is the definition of the one that has no data:
<telerik:RadListView ID="RadListView2" runat="server" AllowPaging="True" ItemPlaceholderID="ListPlaceHolder"
    Skin="listview_2" EnableEmbeddedSkins="false" DataKeyNames="id,filenameextension,typeAbbr,title"
    OnNeedDataSource="RadListView2_NeedDataSource">
    <LayoutTemplate>
        <table id="products" class="products">
            <thead>
                <tr>
                    <th>
                        Prev
                    </th>
                    <th class="expand">
                    </th>
                    <th>
                        File Name
                    </th>
                    <th>
                        Asset Type
                    </th>
                    <th>
                        Document Type
                    </th>
                    <th>
                        Advertiser Name
                    </th>
                    <th>
                        Advertiser Category
                    </th>
                    <th>
                        Details
                    </th>
                    <th>
                        Market
                    </th>
                    <th>
                        Product Category
                    </th>
                    <th>
                        Keywords
                    </th>
                    <th>
                        Approved
                    </th>
                    <th>
                        Date
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr id="ListPlaceHolder" runat="server">
                </tr>
            </tbody>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <%# String.Format("javascript:Popup_Window('asset_preview', '{0}');", Eval("id").ToString())%>
            </td>
            <td>
                <asp:CheckBox ID="ChkImage2" runat="server" Style="float: left; padding-top: 5px" />
            </td>
            <td>
                <%# String.Format("javascript:Popup_Window('asset_detail', '{0}');", Eval("id").ToString())%>
            </td>
            <td>
                <%# Eval("typeAbbr")%>
            </td>
            <td>
                <%# Eval("documentTypeText")%>
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found 2
    </EmptyDataTemplate>
</telerik:RadListView>
Andrey
Telerik team
 answered on 19 Mar 2012
1 answer
178 views
Hi,

                                 I have put two tabs in my tabstrip and added a multipageview.Every time when i opens the tabstrip i want my first tab to be opened even i have opened the second one before last close.I have set the selectedindex to '0',but it doesn't work for me.
Kate
Telerik team
 answered on 19 Mar 2012
1 answer
67 views
Hi Team,

while loading the RadAjaxLoadingPanel, we need to restrict the access to other conrols. this panel is used in masterPage only.
we have used radAjax controls.
i.e., Page has 4 buttons and lot of other controls. while clicking "button1" , the Loadingpanel and its image will be displayed. at the same time, we can access(click) the other(button) controls.
kindly clarify this one.

Regards,
Meenakshi
Andrey
Telerik team
 answered on 19 Mar 2012
1 answer
183 views
i'm trying to add a RadFilter to filter my RadGrid which has several coulmns.it works fine. now i need to add a dropdown only for a one column filter.i have a column named  Revision in my RadGrid.i'm trying the following but it doesn't work

   <telerik:RadFilter runat="server" ID="RadFilter1" 
                FilterContainerID="gridSearchL3" ShowApplyButton="true" Height="100px" >
                <FieldEditors>
                <custom:RadFilterDropDownEditor DataValueField="Revision" DataTextField="Revision" DataType="System.String" FieldName="Revision" />
       
                </FieldEditors>
                </telerik:RadFilter>

i'm getting the error " Object reference not set to an instance of an object"
for creating custom dropdown i've used following class

http://www.telerik.com/help/aspnet-ajax/filter-custom-editors.html 

Tsvetina
Telerik team
 answered on 19 Mar 2012
1 answer
40 views
I currently have an issue where a RadMenu in a Site.Master page seems to slide under a txtbox when expanded (see attachement).

This seems to only impact IE. Any thoughts?
Kate
Telerik team
 answered on 19 Mar 2012
1 answer
63 views
Hi,

I have been using Telerik ASP.NET AJAX FileExplorer control.

Here is my problem:
On right click of folder or file in FileExplorer, i need to get the full path with name of the file or folder.

Please help,
Dobromir
Telerik team
 answered on 19 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?