Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
168 views
Hello Everybody

I have lost more day to check the Editor but not sccussfully.
I do not know why it work fine in the localhost, but not work in the web
I have met an error like this"
Web.config registration missing

The Telerik dialogs require a HttpHandler registration in the Web.config file. Please
use the control's Smart Tag to add the handler automatically, or see the help for moew information
control > Editor>Dialogs"
please help me
Thanks all
Phuc Hoang
Svetlina Anati
Telerik team
 answered on 14 Aug 2009
9 answers
212 views

Hi Telerik support,

I am running Telerik: v2008.3.1214.35
I am having trouble with the radgrid and tooltipManager with paging.

The grid is dynamically loaded when a menu selection is made.
When I don’t have paging my tooltips behave properly. With paging they are display data from the first page only.

I have the tooltip and the grid defined in AJAX manager, because I am using paging I went from simple databinding to advanced.   I know there is a sequence to the databinding when using advanced. 

I know I am hitting the Itemdatabound event before the rebind… Could you please provide an example on how to resolve this.

Thank you

Julie

Code below:

The setting in Ajax manager.

<telerik:AjaxSetting AjaxControlID="gridStudyDetails">

<UpdatedControls>

            <telerik:AjaxUpdatedControl ControlID="gridStudyDetails" LoadingPanelID="LoadingPanel1"/>   

            <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1"   />                                      

      </UpdatedControls>

</telerik:AjaxSetting>

 

 

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"

        RelativeTo="Element"                 

                    Width="420px"

                    Height="150px"

                    Position="BottomLeft"

                    HideEvent="ManualClose"

                    Title="Study Details"

                    Skin="Vista"

                    Animation="Slide"                   

                    ShowEvent="OnClick" AutoTooltipify="False"

             onajaxupdate="RadToolTipManager1_AjaxUpdate" EnableViewState="True">

        </telerik:RadToolTipManager>

 

The grid

<telerik:RadGrid ID="gridStudyDetails"  runat="server" AutoGenerateColumns="False"

                            ClientSettings-Selecting-AllowRowSelect="true"  CssClass="gridText"

                            skin="Vista" Width="675px" GridLines="None"

                onitemcommand="gridStudyDetails_ItemCommand" AllowSorting="True"

                onsortcommand="gridStudyDetails_SortCommand"

                onitemdatabound="gridStudyDetails_ItemDataBound" AllowPaging="True"

                onpageindexchanged="gridStudyDetails_PageIndexChanged" PageSize="6"

                EnableViewState="False" onneeddatasource="gridStudyDetails_NeedDataSource"   >

        <HeaderContextMenu EnableTheming="True">

        <CollapseAnimation Duration="200" Type="OutQuint" />

        </HeaderContextMenu>

        <ValidationSettings EnableValidation="False" />

        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />

        <ClientSettings  enablepostbackonrowclick="True">

        <Selecting AllowRowSelect="True" />

                 

        </ClientSettings><FilterMenu EnableTheming="True">

        <CollapseAnimation Duration="200" Type="OutQuint" />

        </FilterMenu>

        <PagerStyle Position="TopAndBottom" EnableSEOPaging="True" />

        <MasterTableView  DataKeyNames="StudyID, ProtocolID" EnableViewState="True" CurrentResetPageIndexAction="SetPageIndexToFirst">

      <Columns>

        <telerik:GridBoundColumn DataField="StudyID" HeaderText="Study ID" UniqueName="StudyID" Visible="True" ReadOnly="true">

        <HeaderStyle Width="65px" />

        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="RecType" HeaderText="RecType UniqueName="RecType" Visible="False" ReadOnly="true">

        <HeaderStyle Width="65px" />

        </telerik:GridBoundColumn>

<telerik:GridTemplateColumn UniqueName="DetailStudy">

    <ItemTemplate>

      <asp:HyperLink ID="hlkStudyDetail" runat="server" NavigateUrl="#" Text="Details" ></asp:HyperLink>

    </ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

 

 

Code Behind:

protected void gridStudyDetails_ItemDataBound(object sender, GridItemEventArgs e)

        {

            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)

            {

                Control hpStudyDetail = e.Item.FindControl("hlkStudyDetail");

                if (!Object.Equals(hpStudyDetail, null))

                {

                    if (!Object.Equals(this.RadToolTipManager1, null))

                    {

                        DataRowView currentRow = (DataRowView)e.Item.DataItem;

                        this.RadToolTipManager1.TargetControls.Add(hpStudyDetail.ClientID,currentRow.Row["StudyID"].ToString(), true);

                      

                    }

                }

            }

        }

 

protected void gridStudyDetails_PageIndexChanged(object source, GridPageChangedEventArgs e)

        {

          

            gridStudyDetails.DataSource = null;

            RadToolTipManager1.TargetControls.Clear();

            gridStudyDetails.Rebind();

        }

 

protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)

        {

            Control ctrl = Page.LoadControl("StudyDetail.ascx");

            StudyDetail details = (StudyDetail)ctrl;

            details.StrStudyID = e.Value;

            e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);

 

        }

protected void gridStudyDetails_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

        {

            if (Session["Selection"] != null)

            {

                string selection = Session["Selection"].ToString();

                if (selection == "Pending" || selection == "Approved" || selection == "Archived")

                {

                    SetMenu(selection);

                }

                else

                {

                    gridStudyDetails.DataSource = null;

                }

               

            }

        }

protected void SetMenu(string selection)

        {

switch (selection)

            {

case "Pending":

                    {

                        lblGridHeader.Text = "Pending Studies";

                        lblGridDetails.Text = "Studies";

                                              

                        gridStudyDetails.Columns.FindByUniqueName("ApprovalToDate").Display = false;

                        gridStudyDetails.Columns.FindByUniqueName("ReceiveDate").Display = true;

                        DataColumn dc0 = new DataColumn("DashBoardSelection");

                        dc0.DataType = typeof(string);

                        dc0.DefaultValue = selection;

                        gridDataTable.Columns.Add(dc0);

                        DataColumn dc1 = new DataColumn("DashBoardCategory");

                        dc1.DataType = typeof(string);

                        dc1.DefaultValue = "Studies";

                        gridDataTable.Columns.Add(dc1);

                        gridStudyDetails.DataSource = gridDataTable;

 

                        //gridStudyDetails.DataBind();

                        StudyPanel.CssClass = "";

                       

                        break;

                    }

}

}

 

protected void MenuDashboard_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)

        {

            Session["Selection"] = e.Item.Value;

            if (e.Item.Value == "Pending" || e.Item.Value == "Approved" || e.Item.Value == "Archived")

            {

                gridStudyDetails.DataSource = null;

                gridStudyDetails.Rebind();

            }

            else

            {

                SetMenu(e.Item.Value);

            }

        }

Daniel
Telerik team
 answered on 14 Aug 2009
1 answer
167 views
Hi,

I have a project with a RadComboBox which contains a list of items which each require a tooltip that shows an image and some text. I have used the example provided at http://www.telerik.com/support/kb/aspnet-ajax/tooltip/radtooltip-for-radcombobox.aspx 

However because my lists are created at runtime I ended up using the information on how to do a runtime template for list items provided at http://www.telerik.com/help/aspnet/combobox/combo_templates_runtime.html

The list is now working and showing tooltips, however the issue I have is that the tool tips are all wider (and in some cases higher) than the drop down section of the list, however the tooltip remains "inside" the drop down thus making it hard to read the tooltip (it also causes scroll bars on the drop down to appear, but I don't want users to have to scroll within the drop down just to view the tool tip). Is it possible to make the tool tip "break out" of the drop down?

The InstantiateIn for the template is currently:
public void InstantiateIn(Control container)  
{  
    Panel pnl = new Panel();  
    pnl.ID = "ElementContainerPnl";  
    pnl.CssClass = "elementListItem";  
 
    Label elementName = new Label();  
    elementName.ID = "ElementName";  
    elementName.DataBinding += new EventHandler(elementName_DataBinding);  
      
    RadToolTip toolTip = new RadToolTip();  
    toolTip.ID = "ElementToolTip";  
    toolTip.TargetControlID = elementName.ID;  
 
    Image img = new Image();  
    img.ID = "ElementToolTipImage";  
    img.DataBinding += new EventHandler(img_DataBinding);  
 
    Label toolTipText = new Label();  
    toolTipText.ID = "ElementToolTipText";  
    toolTipText.DataBinding += new EventHandler(toolTipText_DataBinding);  
 
    toolTip.Controls.Add(img);  
    toolTip.Controls.Add(toolTipText);  
 
    pnl.Controls.Add(elementName);  
 
    container.Controls.Add(pnl);  
    container.Controls.Add(toolTip);  

Any ideas?

Thanks
Svetlina Anati
Telerik team
 answered on 14 Aug 2009
2 answers
80 views
Hi,

I have been using telerik ajax asp.net controls since last year. We have been using following piece of code for animating RadDock.
I just updated my dll to Q2 2009. And I am getting javascript error at following bold line. Then I tried to do alert on Telerk.Web.UI.Slide and Telerik.Web.UI.SlideDirection.Up, but it gives javascript error saying object not defined. Would you please let me know what do I have to change to make following piece of code working?

var

 

slide;

 

var expanded = false;

 

 

function SetUpAnimation(element) {

element.style.position =

"relative";

 

 

 

if(Telerik.Web.UI.AnimationSettings != null) {
var expandAnimation = new Telerik.Web.UI.AnimationSettings({});

 

var collapseAnimation = new Telerik.Web.UI.AnimationSettings({});

 

slide = new Telerik.Web.UI.Slide(element, expandAnimation, collapseAnimation, false);

 

slide.initialize();

 

slide.set_direction(Telerik.Web.UI.SlideDirection.Up);

 

 

}

}

 

 

function ExpandPendingDock(element) {

 

 

if(!expanded) {

element.parentNode.style.visibility =

"visible";

 

element.parentNode.style.display =

"block";

 

slide.expand();

expanded =

true;

 

}

}

 

 

 

function CollapsePendingDock(element) { 

 

 

if(expanded) {

element.parentNode.style.visibility =

"visible";

 

element.parentNode.style.display =

"block";

 

 

slide.collapse();

expanded =

false;

 

}

}


Regards,
Venu

 

Pero
Telerik team
 answered on 14 Aug 2009
13 answers
660 views
I have a need to create ALL 3 of these dynamically/in code please do not just point me to the 'Dynamic RadDock Only' example.....I've tried many different methods and so far all have failed mostly because I think I'm doing something funny in the lifecycle.....Can someone provide me with a quick Clif's Notes/Page Lifecycle path for accomplishing this?

So far dynamic creation is not the problem it is page postbacks and attempting to save the Layout's/Zone's/Dock's that is frustrating me.
NIRAKAR
Top achievements
Rank 1
 answered on 14 Aug 2009
5 answers
627 views
Hi,
I am presently using the Q! 2009 version of the Rad controls.
I have used the export to excel feature in my screen throught a link button on my screen.
when i export the file on button click the following set of actions are seen on the client side.

A standard IE file download pop up appears which asks whether file should be opened or saved.
      If i say save it works fine.

  If I say Open it gives the standard Microsoft Office Excel 2003 warning(Which is fine) saying the file you are trying to open, Default.aspx(Which is my page name and not the filename as specified in the previous pop up or my code) you are trying to open is in a different format than specified by the file extension.Verify that the file is not corrupted and is from a trusted source before opening the file.do you want to open the file now?  


If i say yes it opens in excel with default.aspx.
 If I say no again I get another excel 2003 warning saying you are trying to open <The_Actual_File_Name>, is in a different format than specified by the file extension.Verify that the file is not corrupted and is from a trusted source before opening the file.do you want to open the file now?
If I say yes it opens the file but if I say no again I once again get a File download warning with the options of Save and cancel.

What I want the Export to Excel to do is present the option of open /save once as before and on clicking open It should open the file in Excel 2003(Even if it gives the excel warning its fine as long as it is only once with the right name)

How can we go about this?

Attached below is my VB code for reference.

Protected Sub lnkExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkExport.Click
         If Not ddlDataCut.SelectedValue = "" Then
            grid.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML
            grid.ExportSettings.IgnorePaging = True
            grid.ExportSettings.ExportOnlyData = True
            grid.ExportSettings.FileName = ddlDataCut.SelectedItem.Text.Substring(0, ddlDataCut.SelectedItem.Text.LastIndexOf(".")) 'Gets the filename from dropdown
            grid.MasterTableView.ExportToExcel
        End If
    End Sub



And this is my ASP code for the control i use

<asp:LinkButton ID="lnkExport" runat="server" Text="Export to Excel File (.Xls)"></asp:LinkButton>



Pavlina
Telerik team
 answered on 14 Aug 2009
3 answers
561 views
Hi,

my grid - not ajaxified - stays in edit mode after inserting.

No exceptions are thrown.

The updatecommand does literally the same, except for getting the edited row, and the grid reverts back to display mode.

Any suggestions are welcome

Thank you

Andreas

        protected void rgdViStore_InsertCommand(object source, GridCommandEventArgs e)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            DataTable substanceTable = this.substanceSource;

            storeData.VISTORE_V_EDIT_DISPLAYRow currentRow = (storeData.VISTORE_V_EDIT_DISPLAYRow)substanceTable.NewRow();

            try
            {
                // start editing
                currentRow.BeginEdit();
                // shared code for insert and update, does not fire exception
                // uses ExcractValues and gets the values from the template columns
                persistChanges(editedItem, currentRow);
                currentRow.EndEdit();
                substanceTable.Rows.Add(currentRow);
               this.substanceSource = (storeData.VISTORE_V_EDIT_DISPLAYDataTable)substanceTable;
                rgdViStore.EditIndexes.Clear();
                rgdViStore.Rebind();

            }
            catch (Exception ex)
            {
                currentRow.CancelEdit();
                rgdViStore.EditIndexes.Clear();
                rgdViStore.Rebind();
                e.Canceled = true;
            }

        }

Tsvetoslav
Telerik team
 answered on 14 Aug 2009
0 answers
95 views
<deleted>


Matthias S
Top achievements
Rank 1
 asked on 14 Aug 2009
1 answer
169 views
Hello,

I´m having the strangest behaviour on my page. 
I insert a radmenu on my page and I alredy had a div highlight (onmouseover) on the page.
Everytime I highlight the div the radmenu disappear. 

I´m using ie 6. 

Thanks,

Rod
Princy
Top achievements
Rank 2
 answered on 14 Aug 2009
1 answer
111 views

Hi,

Using the Day view of the RADScheduler I would liketo customize the in-line edit window. I would like to add the End-Time optionin the window itself without going to the ‘Option’ button. I would also like tocollect the appointment details from the server on the Appointment Insert Event.

Thanks

Sabrish

Peter
Telerik team
 answered on 14 Aug 2009
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?