Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
214 views
Hi all!
 I created a template for editmode. And set
EditMode="EditForms"

When click on "Edit", it shows correctly what I designed.
But the Checkbox doesn't automatically checked.
I mean when I edit a specific row, the checkbox of that row should be set to TRUE. Please attack the pics!
(This problem doesn't happen when EditMode="InPlace")

Thanks!

Andy.
Andy
Top achievements
Rank 1
 answered on 10 Nov 2010
2 answers
146 views
How can an animation be displayed while a grid is loading?
Rich
Top achievements
Rank 1
 answered on 10 Nov 2010
1 answer
341 views

I need to create a Javascript that does the following:

  1. Detect when the first key is pressed in the RadEditor

  2. Locate the cursor

  3. Programatically insert a piece of text where the cursor is

  4. Allow the normal process to continue, ie the key pressed by the user is to be added immediately after where I added the text.

I managed to do this for non-telerik normal text areas.  But it is giving me big problems with telerik RadEditor.Net2.dll version 7.2.0.0

On clientload of rad editor I am adding a KeyPress event handler.  However, in keypress method I am unable to get the cursor position.  I am using this script:

 

function getCaret(editor) {

if (editor.selectionStart) {

return editor.selectionStart;

}

else if (!document.selection) {

return 0;

}

var c = "\001";

var sel = document.selection.createRange();

var dul = sel.duplicate();

var len = 0;

dul.moveToElementText(editor); <-- GIVES JAVASCRIPT EXCEPTION OVER HERE

sel.text = c;

len = dul.text.indexOf(c);

sel.moveStart('character', -1);

sel.text = "";

return len;

}

What do you recommend?  Am I approaching this incorrectly for RadEditor?  I really need to get this working!

 

Rumen
Telerik team
 answered on 10 Nov 2010
1 answer
108 views
Hi All,

How can i get filtering my RadGrid with text? For Example in the slider 7 different Colour.
a  b  c  d  e  f  g 
and in the default view table will show products all of this colours
when user draging slider from a to b
i want to showing products which coloured b c d e f g in my RadGrid

When it is all numbers in DB it is ok. No Problem but when i wanted filtering with text really confused.

Hope to hear you soon.
Regards
.

<

 

 

telerik:RadSlider runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"

 

 

 

MinimumValue="0" MaximumValue="300" SmallChange="1" SelectionStart="0" SelectionEnd="300"

 

 

 

OnClientValueChanging="OnClientValueChanging" OnValueChanged="RadSlider1_ValueChanged"

 

 

 

OnClientSlideStart="OnClientSlideStart" OnClientSlideEnd="OnClientSlideEnd" AutoPostBack="true"

 

 

 

ShowDecreaseHandle="false" ShowIncreaseHandle="false" />

 

SelectionStart: $

 

<asp:Label ID="lblSelectionStart" runat="server" Text="0"></asp:Label><br />

 

SelectionEnd: $

 

<asp:Label ID="lblSelectionEnd" runat="server" Text="300"></asp:Label>

 



 

 

Protected Sub RadSlider1_ValueChanged(ByVal sender As Object, ByVal e As EventArgs)

 

lblSelectionStart.Text = RadSlider1.SelectionStart.ToString()

lblSelectionEnd.Text = RadSlider1.SelectionEnd.ToString()

RadGrid1.Rebind()

 

 

End Sub


 

SelectCommand

 

 

="SELECT * FROM [Products] INNER JOIN [Suppliers] ON Products.SupplierID=Suppliers.SupplierID WHERE (UnitPrice &gt; @MinimumPrice) AND (UnitPrice &lt; @MaximumPrice) AND (UnitsInStock &gt; @MinimumStock) AND (UnitsInStock &lt; @MaximumStock) AND (CategoryID &gt; @MinimumCategory) AND (CategoryID &lt; @MaximumCategory)">

 

 

 

 

 

 

 

<asp:ControlParameter ControlID="RadSlider1" PropertyName="SelectionStart" Name="MinimumPrice" />

 

Tsvetie
Telerik team
 answered on 10 Nov 2010
3 answers
243 views
hello everyone,

I am working with the radgrid and I have issue where paging is not working.  Let me be more specific: set page size isn't working and going to individual pages using the "go" button isn't working. 

I have tried everything i can think of.

<telerik:RadAjaxPanel runat="server" ID="rapResource" LoadingPanelID="ralpResource"
    <telerik:RadGrid ID="rgResourceList" runat="server" AllowPaging="true" PageSize="15" > 
        <MasterTableView AutoGenerateColumns="false" PageSize="15" AllowPaging="true"
            <Columns> 
                <telerik:GridTemplateColumn UniqueName="JobLinks" HeaderText="" /> 
                <telerik:GridTemplateColumn UniqueName="Tech" HeaderText="Technician" /> 
                <telerik:GridTemplateColumn UniqueName="Program" HeaderText="Program" Visible="false" /> 
                <telerik:GridTemplateColumn UniqueName="JobNumber" HeaderText="JobNumber" Visible="false" /> 
                <telerik:GridTemplateColumn UniqueName="ETA" HeaderText="ETA" /> 
                <telerik:GridTemplateColumn UniqueName="ETC" HeaderText="ETC" /> 
                <telerik:GridTemplateColumn UniqueName="Phone" HeaderText="Phone" /> 
                <telerik:GridTemplateColumn UniqueName="City" HeaderText="City" Visible="false" /> 
                <telerik:GridTemplateColumn UniqueName="State" HeaderText="State" Visible="false" /> 
                <telerik:GridTemplateColumn UniqueName="WorkOrder" HeaderText="WorkOrder"
                    <ItemTemplate> 
                        <asp:ImageButton runat="server" ID="ibtnPrint" ImageUrl="~/Images/iconPrint.png" 
                            AlternateText="" ToolTip="Print Work Order" /> 
                        <asp:ImageButton runat="server" ID="ibtnEmail" ImageUrl="~/Images/iconEmail.gif" 
                            AlternateText="" ToolTip="Email Work Order" /> 
                        <asp:ImageButton runat="server" ID="ibtnEmailAttach" ImageUrl="~/Images/iconEmailAttach.gif" 
                            AlternateText="" ToolTip="Email as Attachment" /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
</telerik:RadAjaxPanel> 
<telerik:RadAjaxLoadingPanel runat="server" ID="ralResource" /> 

Any help would be greatly appreciated....

Thanks,

-zd



Radoslav
Telerik team
 answered on 10 Nov 2010
1 answer
170 views
Hi,

I have a problem when i want to export RadGrid data into PDF format.
All non-english charachters (Hebrew) changes into '#' charachters.

Best regards,
Igor


Daniel
Telerik team
 answered on 10 Nov 2010
3 answers
107 views
I am reading up on the accessibility of the RadEditor control.

On ms-help://telerik.aspnetajax.radcontrols.2010.Q1/telerik.aspnetajax.radeditor.2010.Q1/standards-compliance-and-browser-support.html

Can you please clarify what this means:

Accessibility - Telerik RadEditor satisfies the requirements for accessibility, which is a result of the following:
- the interface of the Telerik RadEditor is "Level A" accessible (in accordance with the W3C Web Accessibility Guidelines 1.0).
- the content generated by the Telerik RadEditor can become accessible if the author fills in all required fields (marked with a special accessibility icon  ). 
  

Assuming that users fulfil the requirements of accessibility (identified by the symbol), what level of accessibility (A, AA, AAA) does the editor output? What settings are required to achieve this?

Update: to be clear, I'm asking about the generated mark-up from the user via the editor, not the editor UI itself.
Rumen
Telerik team
 answered on 10 Nov 2010
1 answer
217 views
I have a case with following control structure (described below), even thought the Ajax is happening and the target drop down is being populated, the client events are not being fired.

UserControl
  --> RadCombo: Inside it I have an item template which has a RadTreeView, the structure like this

    
<telerik:RadComboBox ID="lstTransTypes" runat="server" MarkFirstMatch="true" Skin="Vista"
            EmptyMessage="Select tranaction Type" AllowCustomText="true" Width="100%" AutoPostBack="True"
            OnSelectedIndexChanged="lstTransTypes_SelectedIndexChanged">
            <ItemTemplate>
                <div id="div1">
                    <telerik:RadTreeView ID="tvwTransTypes" DataFieldID="id" DataFieldParentID="parentid"
                        Skin="Vista" CheckBoxes="true" CheckChildNodes="true" DataTextField="valuetext"
                        runat="server" Width="400px" Height="250px" OnNodeCheck="tvwTransTypes_NodeCheck">
                        <DataBindings>
                            <telerik:RadTreeNodeBinding Expanded="False" />
                        </DataBindings>
                    </telerik:RadTreeView>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadComboBoxItem />
            </Items>
        </telerik:RadComboBox>

and the Ajax proxy is setup like this:
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="lstTransTypes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lstFilter" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="" />
            </UpdatedControls>
        </telerik:AjaxSetting>
       
      
    </AjaxSettings>
             
</telerik:RadAjaxManagerProxy>

Marin
Telerik team
 answered on 10 Nov 2010
4 answers
372 views
Hi,
Is it possible to return the WeekNumber of a RadCalendar on PostBack?
I need to pass the weeknumber (and probably the year also) to my function so that I can return sales for this week.

Is this possible?

Thanks
Vasil
Telerik team
 answered on 10 Nov 2010
3 answers
326 views
If you set a CustomValdiator on a Rad control (any one), but do NOT set a ControlToValidate property (this is perfectly legal per MS: http://msdn.microsoft.com/en-us/library/9eee01cx(VS.80).aspx) but you DO set SetFocus = "true," it will throw a Javascript error when executed because it is trying to resolve a reference to the ControlToValidate without first checking if the property was set.

Here's a snippet of the file.  The error occurs on the last line where it attempts to get the style of object "g." 
Telerik.Web.UI.RadInputControl.registerClass("Telerik.Web.UI.RadInputControl",Telerik.Web.UI.RadWebControl);
if(typeof(ValidatorSetFocus)=="function"){ValidatorSetFocus=function(d,a){var g;
if(typeof(d.controlhookup)=="string"){var f;
if((typeof(a)!="undefined")&&(a!=null)){if((typeof(a.srcElement)!="undefined")&&(a.srcElement!=null)){f=a.srcElement;
}else{f=a.target;
}}if((typeof(f)!="undefined")&&(f!=null)&&(typeof(f.id)=="string")&&(f.id==d.controlhookup)){g=f;
}}if((typeof(g)=="undefined")||(g==null)){g=document.getElementById(d.controltovalidate);
}var c=false;
if((g.style)&&(typeof(g.style.visibility)!="undefined")&&(g.style.visibility=="hidden")&&(typeof(g.style.width)!="undefined")&&(document.getElementById(g.id+"_text")||document.getElementById(g.id+"_dateInput_text"))&&(g.tagName.toLowerCase()=="input"||g.tagName.toLowerCase()=="textarea")){c=true;

It should check if g == null before doing this.

Steps to reproduce:
  1. Drag RadInput onto form
  2. Drag CustomValidator onto form
  3. Set OnServerVadliate to a proper function and add the function to the CodeBehind file
  4. Set SetFocus = "true"
  5. Run form
  6. Observe "Object expected" error

Sample CustomValidator control:

<asp:CustomValidator ID="CustomValidator1" runat="server" SetFocus="true" OnServerValidate="CheckSelectedClients" CssClass="validation-error" ErrorMessage="CustomValidator1"></asp:CustomValidator>

Sample Server side validation function:
protected void CheckSelectedClients(object source, ServerValidateEventArgs args)
{
    try
    {
        if (selSelectedClientFamily.Items.Count > 0)
            args.IsValid = true;
        else
            args.IsValid = false;
    }
    catch (Exception)
    {
        args.IsValid = false;
    }
}
Dimo
Telerik team
 answered on 10 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?