Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
hi all ,
          when i filter grid with special charecters (={}|[]\:";'<>?/,') script error occured.Is any option for blocking special charecters in the filter text box?
thankyou
lekha
lekha
Top achievements
Rank 1
 answered on 28 Jan 2010
1 answer
440 views

Hello
I am filling my combobox with data in this manner (I can see the DataTextField)

 

            EntityType[] entityTypes = WritingPresenter.GetEntityTypes();  
              
            this.ddlType.DataSource = entityTypes;  
            this.ddlType.DataTextField = "Type";  
            this.ddlType.DataValueField = "GUID";  
              
            this.ddlType.DataBind();  
 


I am trying to retrieve the selectedvalue via Javascript by doing this:

 

        var combo = <%=ddlType.ClientID %>;  
        returnVals.type = combo.get_value();   
 

However, when the javascript runs, I get a Microsoft JScript runtime error: Object doesn't support this property or method when it tries to get the value.

Interestingly, if I look at the html that gets generated, I do not see the dataValue:
<div class="rcbSlide" style="z-index:6000;">  
    <div id="ddlType_DropDown" class="RadComboBoxDropDown RadComboBoxDropDown_Default " style="float:left;display:none;">  
        <div class="rcbScroll rcbWidth" style="width:100%;">
            
<ul class="rcbList" style="list-style:none;margin:0;padding:0;zoom:1;">  
                <li class="rcbItem ">Passport</li> 
                <li class="rcbItem ">Individual</li>
            
</ul>  
        </div> 
    </div>     
</div> 
 
<input id="ddlType_ClientState" name="ddlType_ClientState" type="hidden" /> 

Here is the markup from the aspx page:
                    <telerik:RadComboBox ID="ddlType" runat="server" Width="100%">  
                    </telerik:RadComboBox> 
 

Do I need a few more properties on my RadComboBox to get this working?

Shinu
Top achievements
Rank 2
 answered on 28 Jan 2010
2 answers
123 views
Hi. Is it possible to have more than one expand item per panel item? Example, say I have a RadPanelBar with three RadPanelItems named Cars, Trucks and Buses. Next to Cars I would like a LinkButton that reads "New" and next to that "Used". So, clicking on the default "Cars" would display all the cars, the "New" would list just new cars and "Used" would display used cars. How would I pass onto a RadMultiPage what the user has clicked? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Jan 2010
1 answer
278 views
Hi,
I am using tab strip and multiview panels for my tabs controls
I have 7 tabs in tabstrip and 7 mutiview.
After what I wanted to do on the first tab and multiview things were working.
when i added the functionality on the 2nd multiview things were working as well. but as soon as I added the required field validators and ran the applicaiton, no error no nothing.  But  now I can't switch tabs. tabs are stand still.

Just to check I removed validaitons control and checked again. Everything started to work fine.  So I don't know what is the problem.

Also,  I dont have causevalidation off  on the tabstrip,
Thanks,
Poul Henningsen
Top achievements
Rank 1
 answered on 27 Jan 2010
2 answers
148 views
Hi, 
  
    We are looking for a drag and drop operation with RAD controls in our application. I could see that drag and drop is possible between 
1) nodes of a tree view. 
2) between trees
3)  Tree to HTML elements.

Regarding the 3rd point, HTML elements in the sence is it allowed to drag and drop to all HTML elements or is it allowed to drop only on any specific controls ?  I tried dropping a tree node in to a RadGrid and Textbox, it worked on both. But, when tried to drop on a button placed inside a grid, it doesn't seem to work when the mouse focus is on the button.

  1) I would like to drop a node on a button control. Is this possible by any means ? or
  2) Can i get a complete list of controls where the nodes can be dropped ?!

Thanks & Regards,
Karthik.
Joshua Holt
Top achievements
Rank 2
 answered on 27 Jan 2010
3 answers
149 views
I'm using a web-service to pull data from a SharePoint list which is then cleaned up and bound to a Rotator. During debug I can see that the XML is clean, and when checking the rendered source I can see that there are the appropriate number of items generated. The dummy text 'Boo!' even rotates twice as expected. However, I cannot seem to bind to the underlying elements such as <%# XPath("title") %>.

Generated XML (sw)
<?xml version="1.0" encoding="utf-16"?> 
<newsfeed xmlns="http://schemas.microsoft.com/sharepoint/soap/"
  <article> 
    <title>Some Text here.</title> 
    <author>Smith, Steve</author> 
    <created>2008-02-04 16:28:43</created> 
    <body>Some Text here.</body> 
  </article> 
  <article> 
    <title>Some Text here.</title> 
    <author>Doe, John</author> 
    <created>2010-01-21 14:10:10</created> 
    <body>Some Text here.</body> 
  </article> 
</newsfeed>



Code behind
// code to retrieve and transform webservice feed above here 
XmlDataSource1.Data = sw.ToString(); 
rr_TacNews.DataBind(); 

ASPX
    <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource> 
    <div id="webpane"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadRotator ID="rr_TacNews" runat="server" ScrollDirection="Left" FrameDuration="10000" 
            Height="800px" Width="100%" ForeColor="White" DataSourceID="XmlDataSource1"
            <ItemTemplate> 
                <div style="width: 576px; padding: 12px;"
                Boo! 
                    <asp:Label ID="Label1" runat="server" Text='<%# XPath("title") %>'></asp:Label><br /> 
                    <asp:Label ID="Label2" runat="server" Text='<%# XPath("author") %>'></asp:Label><br /> 
                    <asp:Label ID="Label3" runat="server" Text='<%# XPath("created") %>'></asp:Label><br /> 
                    <asp:Label ID="Label4" runat="server" Text='<%# XPath("body") %>'></asp:Label> 
                </div> 
            </ItemTemplate> 
        </telerik:RadRotator> 
 

Any ideas?



Mike
Top achievements
Rank 1
 answered on 27 Jan 2010
2 answers
210 views
Hi,

New to RadControls and while there are lots and lots of information on how to use the product features, I'm having a hard time finding a simple data entry screen application that would allow you to display, edit, insert and delete records from a datasource, in other words, using traditional row editing. Perhaps someone can point me to some solution already available.

It looks like once I understand the RadGrid MasterTableView, EditForms, FormTemplate relationship, I should be able to fly but right now it a bit confusing.

A VB.NET sample would be appreciated :)

Thanks!

Howard Meirs
Top achievements
Rank 1
 answered on 27 Jan 2010
1 answer
68 views
I am looking for help to get the values from the auto generated edit form client side.   I am currently capturing the command event "PerformInsert" but I do not know how to get the value the user typed into the edit field.

//Insert command 
 else if (args.get_commandName() == "PerformInsert") {
                    var MasterTable = $find("<%=RadGrid1.ClientID %>").get_masterTableView();
                    itemID = -1
                    insertLineItem(itemID, MasterTable);
                }

With a column defined as:
<telerik:GridNumericColumn DataField="Qty" HeaderText="Qty" EditFormColumnIndex="0" />

How would I get its NEW value so I can build my JSON obj to pass to my data service.
Looking for a snippet to do this:

var qty == (some code to get the value of the edit form for Qty);

Thanks in advance
Peter Forney
Top achievements
Rank 1
 answered on 27 Jan 2010
3 answers
214 views
I've noticed a strange behavior with the RadDatePicker control and setting the SharedCalendar in code. It appears the date pickers forget the shared calendar reference. For example, when the page first loads all the calendars work, but after a post back they don't show the popup calendar.

The way I have my pages setup is like so, I have the shared calendar in my master page and then I set the shared calendar of all my date pickers to this calendar control in my code-behind.

If you could try this out and tell me if you experience the same thing or if I'm doing something wrong.

Thanks
Martin
Telerik team
 answered on 27 Jan 2010
1 answer
95 views

 

Hi all,

 

1)the Between option for Filtering is Showing Wrong data for dates when we use Telerik grid bound column i also used Datatype as system.datatime for that column if we use Telerik Datetime  column as shown in examples

it is not showing Between option.I want Between option

ex:If iam giving dates as 02/24/1984 03/20/1986 in the Filter textbox and using BETWEEN for those two dates it is showing wrong data.Iam attaching the screen shot.
..................................Code for Filtering...........................................






 
 
Hi all,  
 
 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">   
 
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">   
 
<ContentTemplate>   
 
 <telerik:RadGrid ID="gviewResource" runat="server" AutoGenerateColumns="False" OnRowEditing="gviewResource_RowEditing"   
 
 
OnRowDeleting="gviewResource_RowDeleting" AllowPaging="True" AllowSorting="True"   
 
OnDataBound="gviewResource_DataBound" CellPadding="0"   
 
GridLines="None" Width="100%" OnPageIndexChanging="gviewResource_PageIndexChanging"   
 
 
OnRowCreated="gviewResource_RowCreated" OnSorting="gviewResource_Sorting"   
 
BorderColor="#66CCFF" BorderStyle="Solid" BorderWidth="1px"   
 
onrowdatabound="gviewResource_RowDataBound"   
 
onitemcommand="gviewResource_ItemCommand" Skin="Vista"   
 
AllowFilteringByColumn="True" onitemcreated="gviewResource_ItemCreated"   
 
 
EnableLinqExpressions="False"   
 
onitemdatabound="gviewResource_ItemDataBound">   
<MasterTableView>   
<Columns>   
<telerik:GridBoundColumn DataField="ResourceID" HeaderText="ID" >   
<HeaderStyle CssClass="textCenter" Width="6%" Wrap="True" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" HeaderStyle-Width="75px">   
 
 
<HeaderStyle Width="75px" />   
 
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Designation" HeaderText="Designation" SortExpression="Designation" HeaderStyle-Width="75px">   
 
   
<HeaderStyle Width="75px" />   
 
   
</telerik:GridBoundColumn>   
 
 <telerik:GridBoundColumn DataField="Date Of Joining" HeaderText="Date Of Joining" SortExpression="Date Of Joining" HeaderStyle-Width="75px">   
 
   
<HeaderStyle Width="75px" />   
 
 </telerik:GridBoundColumn>   
 
 <telerik:GridBoundColumn DataField="Date Of Birth" HeaderText="Date Of Birth" SortExpression="Date Of Birth" HeaderStyle-Width="75px">   
 
<HeaderStyle Width="75px" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Exp. In Yrs" HeaderText="Exp. In Years" SortExpression="Exp. In Yrs" HeaderStyle-Width="75px">   
 
<HeaderStyle Width="75px" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Exp. In Mon" HeaderText="Exp. In Mon" SortExpression="Exp. In Mon" HeaderStyle-Width="75px">   
 
<HeaderStyle Width="75px" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Email" HeaderText="Email ID" SortExpression="Email" HeaderStyle-Width="75px">   
 
<HeaderStyle Width="75px" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="Resource Status" HeaderText="Status" SortExpression="Resource Status" HeaderStyle-Width="75px">   
 
<HeaderStyle Width="75px" />   
 
</telerik:GridBoundColumn>   
 
<telerik:GridTemplateColumn HeaderText="Edit" AllowFiltering="false" >   
 
 <ItemTemplate>   
 
 <asp:ImageButton ID="Image" runat="server" ImageUrl="images/edit.gif" CommandName="Edit" ></asp:ImageButton>   
</ItemTemplate>   
</telerik:GridTemplateColumn>   
<telerik:GridTemplateColumn HeaderText="Reject/Delete" AllowFiltering="false">   
 
<ItemTemplate>   
 
<asp:ImageButton ID="imgbtnDeActivate" runat="server" ToolTip="Delete Resource" ImageUrl="~/images/delete-icon.gif"   
 
CommandName="Delete" OnClientClick="return confirm('Are you sure you want to reject/delete this resource?');" />   
 
</ItemTemplate>   
 
</telerik:GridTemplateColumn>   
 
</Columns>   
 
 </MasterTableView>   
 
<ClientSettings EnableRowHoverStyle="true">   
 
<Selecting AllowRowSelect="true" />   
 
<Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="False" />   
 
<Resizing AllowColumnResize="True" />   
 
   
</ClientSettings>   
 
<FooterStyle ForeColor="White" />   
 
<HeaderStyle CssClass="heading" Font-Bold="True" Font-Strikeout="False" Font-Underline="False"   
 
Height="30px" />   
 
</telerik:RadGrid>   
 
</ContentTemplate>   
 
 </asp:UpdatePanel>   
 
</telerik:RadAjaxPanel>   
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"   
 
Width="75px" Skin="Sunset">   
 
</telerik:RadAjaxLoadingPanel>   
 
   
 
 

Martin
Telerik team
 answered on 27 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?