Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
158 views
In our web app, we are setting CurrentFilterFunction values for each column that will be able to be filtered.

However, once one column has some criteria entered in and the user presses <Enter>, that column's filter is properly applied but every remaining column now has a CurrentFilterFunction of "NoFilter"...even after the original criteria is blanked out, essentially setting the grid back to its original state.

Is this something that can be done via the markup/client-side only or are we going to have to set CurrentFilterFunction for each column after every postback?

Or, is there some other method for setting filtering options that persist after postbacks for a page?  In our case, we want only one filtering option to be available for each column and no filter icon to be shown.

Thanks.

Jerry
Jerry T.
Top achievements
Rank 1
 answered on 04 Oct 2010
1 answer
167 views

I had a similiar question but I didnt see an answer so...

I am updating a Org item... but I need to updated the 'updatedby' and 'updateddate' which I must do programmatically since it is not part of the radgrid... How do I do this ?

Here is how I am trying to do it but the break point is not being hit.. is this the right way to get my custom update?  I suppose I COULD create a seperate stored procedure.. but it would be nice if I could keep it in the entities world.

<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=G3TEntities"
          DefaultContainerName="G3TEntities" EnableFlattening="False" EnableInsert="True"
          EntitySetName="Orgs" EnableUpdate="True" OnUpdated="EntityDataSource1_Updated">
      </asp:EntityDataSource>
   protected void EntityDataSource1_Updated(object sender, EntityDataSourceChangedEventArgs e)
      {
          Org oOrg = new Org();
          oOrg = (Org)e.Entity;
          oOrg.updateby = 69;
      }
matt
Top achievements
Rank 1
 answered on 04 Oct 2010
1 answer
136 views

Hi Team

 

I have two Telerik RadComboBox at the bottom of the page. On selection change of first RadComboBox ,2nd RadComboBox will populate, In this case binding is working fine but Page does not maintain scroll position at the bottom of the page, It goes on the top of the page.

 

I have written MaintainScrollPositionOnPostback="true" but it is not working.

Please help me ,It’s very urgent.

 

My Code blocks is

  <telerik:RadComboBox ID="drpRequestType" Width="185px" runat="server" AutoPostBack="True"

                                    OnSelectedIndexChanged="drpRequestType_SelectedIndexChanged" EnableScreenBoundaryDetection="true" >

                                </telerik:RadComboBox>

  <telerik:RadComboBox Width="185px" ID="drpSubRequestType" runat="server">

                                </telerik:RadComboBox>

 

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

                        <AjaxSettings>

                        

                            <telerik:AjaxSetting AjaxControlID="drpRequestType">

                                <UpdatedControls>

                                    <telerik:AjaxUpdatedControl ControlID="drpSubRequestType"  />

                                </UpdatedControls>

                            </telerik:AjaxSetting>

                          

                        </AjaxSettings>

                    </telerik:RadAjaxManager>

Simon
Telerik team
 answered on 04 Oct 2010
1 answer
33 views

With this set up, the border on the bottom / last menu item is a double line border while the others are as designed in the CSS below.  How do I make the last item like the others?

<

 

telerik:RadMenu ID="USSRadMenu" runat="server" DataSourceID="USSsmd" EnableEmbeddedSkins="false" Skin="">

 

 

</telerik:RadMenu>

 

 

div.RadMenu .rmGroup .rmLink

 

{

 

color: #000;

 

 

border:1px solid #DEDFDF;

 

 

padding: 2px 0 2px 0;

 

}

TIA

Yana
Telerik team
 answered on 04 Oct 2010
1 answer
91 views
Hi

I am using Radscheduler and an underlying data base to manage site visits.

I have set my datasource as followed:
On insert there is a line created in the table (with auto ID) but no value for the other fields.
Also, when I try to move an appointment, it goes back where is was before.
So it seems that the fields are not passing to the database for some reason
Thanks for your help
Regards

<asp:SqlDataSource ID="SchedulerDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TEST_DS%>"

 

ProviderName="System.Data.SqlClient"

 

SelectCommand="SELECT [SiteVisitID], [SiteVisitStart], [SiteVisitEnd], [SiteVisitSubject], [SiteVisitDue], [SiteVisitPriority] FROM [tbl_SiteVisit] WHERE ([SiteVisitStart] IS NOT NULL) AND ([SiteVisitEnd] IS NOT NULL)"

 

InsertCommand="INSERT INTO [tbl_SiteVisit] ([SiteVisitSubject], [SiteVisitStart], [SiteVisitEnd]) VALUES (@Subject, @Start, @End)"

 

UpdateCommand="UPDATE [tbl_SiteVisit] SET [SiteVisitStart] = @Start, [SiteVisitEnd] = @End, [SiteVisitSubject] = @Subject WHERE SiteVisitID = @ID"

 

DeleteCommand="DELETE FROM [tbl_SiteVisit] WHERE [SiteVisitID] = @ID">

 

<insertparameters>

 

<asp:Parameter Name="Subject" Type="String" />

 

<asp:Parameter Name="Start" Type="DateTime" />

 

<asp:Parameter Name="End" Type="DateTime" />

 

</insertparameters>

 

<updateparameters>

 

<asp:Parameter Name="Subject" Type="String" />

 

<asp:Parameter Name="Start" Type="DateTime" />

 

<asp:Parameter Name="End" Type="DateTime" />

 

<asp:Parameter Name="ID" Type="Int32" />

 

</updateparameters>

 

<deleteparameters>

 

<asp:Parameter Name="ID" Type="Int32" />

 

</deleteparameters>

 

</asp:SqlDataSource>


Peter
Telerik team
 answered on 04 Oct 2010
3 answers
154 views
I found Javascript from the search site function which enables me to check the number of characters when I paste.
Unfotunately, it doesn't work!

The javascript is below, and the ClientExecutedCommand function is fired on "OnClientCommandExecuted":
<script type="text/javascript">  
 function CalculateLength(editor, value) {  
            var textLength = editor.get_text().length;  
            var clipboardLength = value.length;  
            textLength += clipboardLength;  
            return textLength;  
        }  
 
 
        function ClientExecuteCommand(editor, args) {  
            var commandName = args.get_commandName();  
            var value = args.get_value();  
            if (commandName == "PasteFromWord"  
            || commandName == "PasteFromWordNoFontsNoSizes"  
            || commandName == "PastePlainText"  
            || commandName == "PasteAsHtml"  
            || commandName == "Paste") {  
                var textLength = CalculateLength(editor, value);  
                if (textLength >= 10) {  
                    alert("Max char. reached");  
                    args.set_cancel(true);  
 
                }  
            }  
        }     
</script> 

The HTML:
                    <telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="ClientExecuteCommand">  
                        <Content> 
                        </Content> 
                    </telerik:RadEditor> 

The problem is that line 12 args.get_value() of the Javascript returns null although I have contents in my clipboard and I can see that when I paste in to Notepad there is something there.

Does anyone have any ideas?

Thanks
R
Rumen
Telerik team
 answered on 04 Oct 2010
1 answer
293 views

Hi,


We have following query on Rad editor

 

When data is get copied from notepad into telerik editor, line break by “br” (<br />) tag get added. Also new line char. (\r\n) present in editor content.

Is there any way to keep only “br” or new line char. (\r\n), when data is being copied to editor design mode from notepad?

  

Rumen
Telerik team
 answered on 04 Oct 2010
2 answers
87 views
I noticed the following lines in the release notes for 2010.2.929:

Fixed: The dropdown size is incorrect the first time the dropdown opens if its height exceeds the window's visible height and the document has 'overflow: hidden'

Fixed: The dropdown size is incorrect in IE the first time if there are items with long text with spaces

However, we're now seeing a similar problem (the dropdown size is very small the first time you open it; it's correctly sized the second and subsequent times) in our application after upgrading to 2010.2.929; we weren't seeing it before (on the Q2 SP1 release). It appears to occur on a RadComboBox that has items with long text with spaces; the dropdown size isn't longer than the window size.

Is there a workaround/known issue?

Eric Means
Top achievements
Rank 1
 answered on 04 Oct 2010
2 answers
86 views
I have a RadMenu which is successfully binding to my IQueryable collection.  However, I have several items that I'd like to ALWAYS appear on the menu, which are not in the datasource.  What is the best way to accomplish this?  Specifically, some of the items will require custom ItemTemplates.  I tried an approach like this without success.  When I would call DataBind(), it seems the control would ignore the hard coded items I'd added and only apply the databound items.

     <telerik:RadMenuItem runat="server"
             <Items><telerik:RadMenuItem>        
                        <ItemTemplate>
                             <ContentTemplate>
                                   My code here....
                                        </ContentTemplate>
                                 <
ItemTemplate>
                   
</Items>
      </telerik:RadMenuItem>
Cori
Top achievements
Rank 2
 answered on 04 Oct 2010
4 answers
110 views
Dear forum,
i have a tabstrip with one multipage and severall pageviews.
Just in one (of up to 5) pageviews i have input controls and a submit button.
This input controls should be validated only if this button is pressed,
but i don't want validating, when the user just want to switch to another tab/pageview.
Is this possible.
Currently i can just switch tabs when all date in the input controls are correct (in case causevalidate = true for the tabstrip) because of validating.
But no validating is done at all when causevalidate = true for the button and false for the tabstrip.
Any suggestions how to realize my szenario ?
Kind regards
Martin
Martin Gartmann
Top achievements
Rank 2
 answered on 04 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?