Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
HOW TO AVOID POSTBACK IN RAD TOOL BAR BUTTONS
Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
0 answers
86 views
Data Manipulation by User Input ?
Sigma
Top achievements
Rank 1
 asked on 11 Jun 2012
0 answers
43 views
Sql query into LINQ
Sigma
Top achievements
Rank 1
 asked on 11 Jun 2012
1 answer
53 views
Hi,

I am using telerik Gray skin for rad window.
I am trying to edit the skin and change colors, background images etc.
My problem is that I create a css class with the same name as the control has, but it seems like my class is canceled and the original one is taken.

I attached print screen to explain the problem clearer.
my css is Covertix.css, but the properties are taken from the WebResource.axd file.
my class in the .css file is:

DIV.radwindow_Gray TABLE TD.topleft

{

background-image: url(Images/Design/Window/PopupTitle_Left.png);

height: 23px;

}



Can you please tell me what am I doing wrong?
Thanks a lot!

Marin Bratanov
Telerik team
 answered on 11 Jun 2012
2 answers
109 views
I have created a custom filter with two datafields

on my aspx page i have
 

<custom:CustomFilter DataField1 = "Name" DataField2="LastName"  

HeaderText="Name"  

 

CurrentFilterFunction="Contains"  

 

UniqueName="UserName"  

 

AutoPostBackOnFilter="True">  

 

<ItemTemplate>  

 

<asp:Literal ID="Literal1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Literal>  

 

<asp:Literal ID="Literal2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>'></asp:Literal>  

 

</ItemTemplate>  

 

</custom:CustomFilter>

The issue comes when i try to use filterexpression

 

 

RadGrid1.DataSource = Data.GetAll();

 

 

 

string test = "(([LastName] LIKE \'%" + txtFilterBox.Text + "%\') OR ([Name] LIKE \'%" + txtFilterBox.Text + "%\'))";

 

RadGrid1.MasterTableView.FilterExpression = test;

RadGrid1.Rebind();

its probally wrong the way i use the filterexpression but how I should use it with 2 parameters, cant find a simmilar example :)

 

Tsvetina
Telerik team
 answered on 11 Jun 2012
1 answer
99 views
Hi,

I have been trying your RADGrid demo at:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultcs.aspx

....with Inline editing, and multi row edit selected.

There appears to be a problem in the following kind of scenario...
- Sort by "Last Name" Descending
- Click Edit on rows with the surnames "Leverling", "King", and "Fuller" so that they are all open for editing.
- Change "Leverling" to "Everling" (so that on update it changes position in the sort order.)
- Click Update on the "Everling" row.

The "Everling" row changes position but remains open for edit.

The "King" row takes the position of the "Everling" row in the grid and is made read-only.

It appears that the grid sorts the data without correctly tracking which rows should (or should not) be in edit mode.

Is there a way to fix it?

Thanks
Eyup
Telerik team
 answered on 11 Jun 2012
1 answer
60 views
in my application i have lot of pages and one master page. i want to allow the customer to change the skin according to his wish in combobox in master page and i need to store the skin name along with the customer details, so that next he logins in skin loads by default. 
is it possible to set the skin master page and that makes other pages to change the skin. if yes, how can i make this possible.
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
85 views
 how can the width of the RadTextBox can be resized according to the aspx page width when cols property is specified and browser width is changed.
Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
70 views
How can i implement drag and drop functionality in TreeList?
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
3 answers
213 views
Hi,

    There is a problem with adding an event handler to a RadEditor when combined with a RadWindow. First I had some issues with the toolbar, and fixed them with the proposed workaround here http://www.telerik.com/community/forums/aspnet-ajax/window/radeditor-toolbars-not-working-when-use-radwindow-as-the-container.aspx

    Unfortunately, this does not solve the issue with the registered event handlers. 

    I need to capture whatever the user types in the RadEditor. It works fine when the RadEditor is not inside a RadWindow... Is there any solution to this issue? 

  Here is an example to reproduce the problem. One RadEditor outside the RadWindow and another inside one. I tried several things, like adding a <div> as a wrapper, add an space in the Content tag, etc... but nothing works.

   Any idea how to solve this?

<form id="form1" runat="server">
     <asp:ScriptManager ID="MyScriptManager" runat="server"></asp:ScriptManager>
    <div>
     
    <telerik:RadWindow ID="RadWindow1" Width="750" Height="500" OnClientShow="OnClientShow"
    runat="server" VisibleOnPageLoad="true">
    <ContentTemplate>
        <div id="editorWrapper" style="padding: 5px; display: none;">
           <telerik:RadEditor ID="RadEditorWithRadWindow"  OnClientLoad="RadEditorWithRadWindowOnClientLoad"
           runat="server" Width="600px" Height="250px" Visible="true"
            EnableEmbeddedScripts="true">
             <Content> </Content>
        </telerik:RadEditor>  
        </div>
    </ContentTemplate>
    </telerik:RadWindow>
       <telerik:RadEditor ID="RadEditorNoRadWindow"  OnClientLoad="RadEditorNoRadWindowOnClientLoad"
       runat="server" Width="600px" Height="250px" Visible="true"
        EnableEmbeddedScripts="true">
             <Content> </Content>
        </telerik:RadEditor>
          
     <script type="text/javascript">
         function RadEditorWithRadWindowOnClientLoad(editor, args) {
             editor.attachEventHandler("onkeypress", function (e) {
                 alert('We CANNOT reach this one');
             }
            );
         }
         function RadEditorNoRadWindowOnClientLoad(editor, args) {
             editor.attachEventHandler("onkeypress", function (e) {
                 alert('We CAN reach this one');
             }
            );
         }
       function OnClientShow(sender, args) {
           // Fix the size problem in IE.
           var editorParent = $get('editorWrapper');
           editorParent.style.display = '';
           // Fixes the problem with the content area in FF and Safari
           var editor = $find('<%= RadWindow1.ContentContainer.FindControl("RadEditorWithRadWindow").ClientID %>');
           editor.onParentNodeChanged();
           var style = editor.get_contentArea().style;
           style.backgroundImage = "none";
           style.backgroundColor = "white";
       }
   </script>
    </div>
       
    </form>

Many thanks!
Marin Bratanov
Telerik team
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?