Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
365 views
Hi,

I am having the RadDatePicker control inside the rad grid. I want to add the "OnDateSelected" client event dynamically in code behind based on some conditions.

I have the following code in my grid's ItemDataBound,

 

string paramVal = "('" + isConditionalTimeFrame + "','" + imgExpandButton.UniqueID + "','" + grdViewRegistries.ClientID + "')";

 

if

 

(isConditionalTimeFrame)

 

{

 

    dtpLastEventDate.ClientEvents.OnDateSelected =

"dtpLastEventDate_OnDateSelected" + paramVal;
}

This is my java script,

 

function

 

dtpLastEventDate_OnDateSelected(isConditionalTimeFrame, imgExpandButtonUniqueID, grdViewRegistriesClientID)

 

{
    

 

}

The issue is, the script is executed immediately after ItemDataBound, and its not triggered when I select any date in the DatePicker.
If anybody have any idea about this, pls share with me.

Thanks.

Mahtab
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
63 views
I have put several RadComboBoxes on a page.  The client had a user that selected bad entries.  How can the client remove the entries via the interface?

I am trying to use an iPad for the Client, and as I select the combobox, the keyboard doesn't pop-up.  Also, it seems the delete key on a computer doesn't clear the selection.  In my old days, we used a {ctrl}+0, to set the combobox back to null, but that didn't work either.  Can someone share what I should tell the user to clear the selection?

Thanks,
Dan
Kalina
Telerik team
 answered on 08 Nov 2012
3 answers
128 views
Dear all

I have radgrid to show all student information (Data key:student_id) and i use radtooltip to show details information about this student , but the problem hapen after filter my radgrid when mose move over any row the radtooltip retrive wrong information about student , the radtooltip use the previous primary key like before filter

here simulation example

before filter

student_id       Name
A1                    A
A2                    B
A3                    C
A4                    D
A5                    E
A6                    F



After filter

student_id            Name
A5                           E
A6                           F


when mouse move over A5   the radtooltip show A1  and when mouse move over A6 the radtooltip show A2

also the code to retriev primary key to radtooltip is

Protected Sub OnAjaxUpdate(sender As Object, args As ToolTipUpdateEventArgs)
       Me.UpdateToolTip(args.Value, args.UpdatePanel)
   End Sub
 
 
 
Private Sub UpdateToolTip(elementID As String, panel As UpdatePanel)
       
       Dim ctrl As Control = Page.LoadControl("../Class_Details.ascx")
       Session("center_id") = elementID
       panel.ContentTemplateContainer.Controls.Add(ctrl)
   End Sub


how to solve this problem



Vasil
Telerik team
 answered on 08 Nov 2012
1 answer
96 views

I am using DataSet as DataSource for RadGrid. I can apply DataSource either through NeedDataSource or through directly datasource property of radgrid. I could not use DataSource control for binding. I went through all examples but could not find one which does not use DataSource control or any example with DataSet.

Edit Scenario:
Records Insert / Update needs to be in-place and all rows are editable from start, User have option of clicking "Save" button to save all changes.

Insert Scenario:
For insert operation, when user clicks "Add New" button. New row will be added at bottom and user can add new record in that. Then clicking on "Save" button will save new record along with any changes made in existing records.

Current Issues:
# DataSource is not retained after post-back from "Save" or "Add New" button and RadGrids shows empty. Any control with in RadGrid, like rows and columns which are rendered in page are also empty.
# For Insert Scenario I tried adding empty row in DataTable and then did binding. But above issue occurs and not data is retained from end user.

Mentioned scenario should be well with-in the capabilities of RadGrid control. Please advise on implementation details.

Andrey
Telerik team
 answered on 08 Nov 2012
1 answer
95 views

Hello,

I have a RadGrid with 4 template columns.
1. ASP:TextBox
2. RadEditor
3. ASP:LinkButton (ADD)
4. ASP:LinkButton. (DELETE)

When we click on "ADD" button we are adding a new row next to the selected row. Same way we are deleting the selected row on click of "DELETE" button. This we are doing in postback by rebinding the RadGrid. We need to avoid the postback and Add/Delete rows dynamically in javascript. Please provide the solution. Please find herewith the sample code that we are doing in code behind.

FYI: we are using net framework 4.0 and the Telerik.Web.UI.dll version is v. 2011.2.915.40

I am not able to add the code here.

Vasil
Telerik team
 answered on 08 Nov 2012
6 answers
213 views
Hi all

got something funny going on.
Trying to hide the Anchor tab in the LinkManager dialog as per http://www.telerik.com/help/aspnet-ajax/disablingtabs.html

If I put the Visible="false" attribute in the tab does not show but when I click the email tab I get the Anchor fieldset!?

Tried with a fresh file and just made that one change and always does it. What am I doing wrong?

Matt

Q3 2008
FF 3.08 and IE6
Roberto
Top achievements
Rank 2
 answered on 08 Nov 2012
9 answers
272 views
Hi,

I customized the paragraphs dropdown using the config file.
Everything works fine until I try to add paragraphs with classes or "unusual" paragraphs like <code>.

For example I added
<paragraph name="&lt;code>Code&lt;/code>" value="&lt;code>" /> 
<paragraph name="&lt;p class='tipp'>Tipp&lt;&lt;/p>" value="&lt;p class='tipp'>" /> 
to the config file.

The result is that the two options are shown in the drop down box, but they are not applied to the paragraphs or selection when I select one of them.

According to the docs, it should work this way.

By the way: The documentation (http://www.telerik.com/help/aspnet/editor/paragraphstyles.html) regarding this is buggy. The example code for the ToolsFile.xml breaks the editor.

Regards

Martin
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
90 views
X Axis's value type  and Y Axis's value type are number type.X - axis points are -2 , -1, 0, 1,2.Y-axis points are from -10 to 0.
How to set X Axis and Y Axis crossing 0 point?
Yavor
Telerik team
 answered on 08 Nov 2012
17 answers
134 views
Hi Telerik.

I have a standard Sharepoint 2010 environment using Telerik Radeditor WCM v 6.1.7.0.

1) Open hyperlink manager and create an anchor HøHø
2) Create a hyperlink using hyperlink manager and use the "Existing Anchor" dropdown and select HøHø.
3) Publish the page and the anchor link does not work.

It seems as if the anchor-link is encoded to the utf-8 version <a href="#H%c3%b8H%c3%b8">, but the anchor itself remains like <a name="HøHø". As effect, the hyperlink is not working in IE but works fine in Firefox.    

In the ConfigFile.xml I have ContentFilters=ConvertToXhtml, ConvertCharactersToEntities

Before the content is published, the anchor and the link is written with html entities as H&oslash; In RadEditorGetStorageHtml in SPEditorTools.js the value of editor.get_html(true) is also the correct using html entities.

Please advice.

Best regards
Klaus
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
173 views
Hi,
I am trying to use the show group panel, allowing a user to drag the column names into it, however it keeps throwing an error:

"Error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid group by expression: 'Group By' clause missing"

However if I define an item in the configuration manager it works, properly, So why can't I drag and Drop? :(
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" GridLines="None"
            OnRowDataBound="NamesGridView_RowDataBound" PageSize="14"
            DataKeyNames="OrderId" ShowGroupPanel="True" CellSpacing="0">
            <GroupingSettings ShowUnGroupButton="True" />
            <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
                ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True"></Selecting>
 
                <ClientEvents OnRowMouseOver="RowMouseOver"></ClientEvents>
            </ClientSettings>
            <MasterTableView CommandItemDisplay="Top" ClientDataKeyNames="OrderID, Text" DataKeyNames="OrderID">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                        <FooterStyle Width="32px" />
                        <HeaderStyle Width="32px" />
                        <ItemStyle Width="32px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="OrderId" GroupByExpression="OrderID" HeaderText="Order Ref"
                        SortExpression="OrderId" UniqueName="OrderId" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderNum" GroupByExpression="OrderNum" HeaderText="Order Number"
                        SortExpression="OrderNum" UniqueName="OrderNum" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectRef" HeaderText="Project" UniqueName="ProjectRef"
                        SortExpression="ProjectRef" GroupByExpression="ProjectRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Location" HeaderText="Location" UniqueName="Location"
                        SortExpression="Location" GroupByExpression="Location">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CostCentre" HeaderText="Cost Centre" UniqueName="CostCentre"
                        SortExpression="CostCentre" GroupByExpression="CostCentre">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AccountCode" HeaderText="Account Code" UniqueName="AccountCode"
                        SortExpression="AccountCode" GroupByExpression="AccountCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="activityRef" HeaderText="Order Activity" UniqueName="activityRef"
                        SortExpression="activityRef" GroupByExpression="activityRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryRef" HeaderText="Type of Work" UniqueName="CategoryRef"
                        SortExpression="CategoryRef" GroupByExpression="CategoryRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Order Date" HeaderText="Order Date" UniqueName="OrderDate"
                        SortExpression="Order Date" GroupByExpression="Order Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Plan Date" HeaderText="Target Complete" UniqueName="TargetComplete"
                        SortExpression="Plan Date" GroupByExpression="Plan Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Actual Date" HeaderText="Actual Complete" UniqueName="ActualComplete"
                        SortExpression="Actual Date" GroupByExpression="Actual Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Amount" HeaderText="Estimated Cost" UniqueName="EstimatedCost"
                        SortExpression="Amount" GroupByExpression="Amount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceProvider" HeaderText="Service Provider"
                        UniqueName="ServiceProvider" SortExpression="ServiceProvider" GroupByExpression="ServiceProvider"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text" Display="false">
                    </telerik:GridBoundColumn>
                </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
                <CommandItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50%;">
                                <a href="#" onclick="return ShowInsertForm();">
                                    <img alt="Insert" border="0" height="20" src="App_Images/AddRecord.gif" width="20" />
                                    Add New Record</a>
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkArchived" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowArchived_CheckChanged"
                                    Text="Show Archived" Width="163px" />
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowComplete_CheckChanged"
                                    Text="Show Completed" Width="163px" />
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
            </MasterTableView>
            <GroupPanel Visible="True">
            </GroupPanel>
                        <ClientSettings AllowDragToGroup="True" Selecting-AllowRowSelect="true">
            </ClientSettings>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="None"
            Behaviors="Default" InitialBehaviors="None" Left="" Top="" ReloadOnShow="True"
            VisibleStatusbar="false">
        </telerik:RadWindowManager>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    </form>
</body>
</html>

I can't see any errors myself and it all works fine on the page except this group panel,
Many thanks for your help
Ryan
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?