Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
332 views
Dear Forum,

I'd like to reduce the filter menu options in RadFilter but can find no way to do that. Does anyone have any guidance for me? I reduced the filter menu options for RadGrid by following this example:
http://www.telerik.com/help/aspnet/grid/grdreducingfiltermenuoptions.html

Thanks,
Celeste
Jeremy
Top achievements
Rank 1
 answered on 06 Nov 2014
10 answers
147 views
After learning about the TreeMap at your webinar, I've been doing a little bit of experimentation. The TreeMap might work well for displaying some aggregate information we want to display on a new website. However... it does not appear that the TreeMap has much in the way of navigation or events, or am I missing something?

The main part of the RadTreeMap has a NavigateUrl property. But the TreeMapItem controls do not appear to have any exposed click events or a NavigateUrl property. So how does Telerik expect one to do drill-through like clicking on the TreeMapItems to go to specific detail pages or trigger events?

I have experimented with several methods to do this but they are a bit of a kludge. So I'm curious how Telerik intended for this to work.

MO
Top achievements
Rank 1
 answered on 05 Nov 2014
1 answer
110 views
We are trying to use RADCompression on our website for compressing Viewstate only and do not see the viewstate getting compressed.  We wrote a small "hello world" website and can get the viewstate compression working perfectly on the test website, but not on the primary website.  We have compared the web.config and the browserFile.Browser file between the test and primary websites and they are the same.  Below is the configurations that we are using.  Is there any diagnostics that we can turn on to see what is happening within the RadCompression module?

The Browser File content
<!--
    You can find existing browser definitions at
    <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
-->
<browsers>
    <browser id="NewBrowser" parentID="Mozilla">
        <identification>
            <userAgent match="Unique User Agent Regular Expression" />
        </identification>        <capture>
            <userAgent match="NewBrowser (?'version'\d+\.\d+)" />
        </capture>        <capabilities>
            <capability name="browser" value="My New Browser" />
            <capability name="version" value="${version}" />
        </capabilities>
    </browser>    <browser refID="Mozilla">
        <capabilities>
            <capability name="xml" value="true" />
        </capabilities>
    </browser>    <browser refID="Default">
      <controlAdapters>
        <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />
      </controlAdapters>
    </browser></browsers>




The web.config file only has

    <modules runAllManagedModulesForAllRequests="true">
  <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
 </modules>


We are not using the configSections sections in the web.config file. 


Pavlina
Telerik team
 answered on 05 Nov 2014
4 answers
120 views
Hi,

I am new to Telerik. I am trying to update the db with the help of the example provided Grid - RadToolBar as Command Item here  -http://demos.telerik.com/aspnet-ajax/toolbar/examples/applicationscenarios/gridcommanditem/defaultvb.aspx?product=grid , I removed the functions using quickstart, no delete, no insert. Just the  update function.

When I click on the Update button, it gives the message as updated "id updated", but it is not updated in the database.

//After so many tries this is the updated command that worked without errors like Oracle invalid table name or missing expression. Parameter = '@Parameter'

here is my sqlsource for update command

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServicesOracle %>"

ProviderName="<%$ ConnectionStrings:ApplicationServicesOracle.ProviderName %>"

UpdateCommand="update PM_table set COMET_DESCRIPTOR = '@COMET_DESCRIPTOR', COMET_TRANS_NOTES ='@COMET_TRANS_NOTES' where id= '@id' and year||month='@year||'@month'">

<UpdateParameters>

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

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

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

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

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

</UpdateParameters>

</asp:SqlDataSource

>

codebehind .vb

Protected Sub RadGrid1_ItemUpdated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles RadGrid1.ItemUpdated

If Not e.Exception Is Nothing Then

e.KeepInEditMode = True

e.ExceptionHandled = True

DisplayMessage(True, "id " + e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("id").ToString() + " cannot be updated due to invalid data. " + e.Exception.ToString)

Else

DisplayMessage(False, "id " + e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("id").ToString() + " updated")

 

End If
End Sub


 

 

 


Subhashini
Top achievements
Rank 1
 answered on 05 Nov 2014
1 answer
81 views
Hi All,
I would like to increase the height of the week view scheduler so as there is no scroll bar.
(see picture). Any suggestions?

Thanks Chris.
Nencho
Telerik team
 answered on 05 Nov 2014
4 answers
115 views
Hello,

I have to show all the appointment information untill i will mouse pointer remove from appointment...How can i show all that information and up to more time...
Tried with the Tooltip , but tool tip is for short time, and all the information is not customly arranged...
Will it be possible to cover both the one ? or any possibility to open the POP UP upon mouse over the appointment?

Please help me ASAP....

Regards
Samir
pankaj
Top achievements
Rank 1
 answered on 05 Nov 2014
1 answer
440 views
hi,

I am using a radtooltip to make a dynamic tutorial.

To be able to move the tutorial around I had to put it as relative to the BrowserWindow.
Then I can change the offsets.

The reason I am doing this is because I cannot attach the tutorial to anything because I am using a canvas to draw things.
And the tutorial is pointing to those drawings on the canva.
If I attach the tutorial to the canvas, it will just display on the side of the canvas, no near the controls.

My problem with this is that I lose the small arrow on the side of the tutorial window.
And I would like to have it back.

Am I doing things right and there is no way to get the small arrow to show?
Or is there an other way to do what I want that would restore the arrow ?

This is my code for the tooltip:

<telerik:RadToolTip
    runat="server"
    ID="RadToolTip3"
    Position="Center"
    Width="300px"
    Height="70px"
    Animation="Fade"
    ShowEvent="FromCode"
    HideEvent="FromCode"
    ShowDelay="0"
    RelativeTo="BrowserWindow"
    OnClientBeforeShow="PreTooltipShow"
    OffsetX="0"
    OffsetY="0">
    <div style="display: table;">
        <div style="display: table-row;">
            <div style="display: table-cell; vertical-align: middle; padding-top: 10px; padding-left: 10px; padding-bottom: 5px; padding-right: 10px;">
                <asp:Label ID="Lbl_Tutorial" runat="server" Text="This is a test" />
            </div>
        </div>
        <div style="display: table-row;">
            <div style="display: table-cell; vertical-align: middle; text-align:right; padding-top: 10px; padding-left: 10px; padding-bottom: 5px; padding-right: 10px;">
                <telerik:RadButton
                    ID="RdBttn_NextTutorial"
                    runat="server"
                    Text="Next"
                    AutoPostBack="false"
                    OnClientClicked="OnNextTutorial">
                </telerik:RadButton>
            </div>
        </div>
    </div>
</telerik:RadToolTip>

With the following javascript to control it:

function PreTooltipShow() {
    PageMethods.PreTooltipShow(PreTooltipShowCompleted);
}
 
function PreTooltipShowCompleted(pResult) {
    var tooltip = $find('RadToolTip3');
    if (pResult.length > 0) {
  
        tooltip.set_offsetX(parseInt(pResult[0]));
        tooltip.set_offsetY(parseInt(pResult[1]));
        tooltip.updateLocation();
 
        var label = document.getElementById('<%=Lbl_Tutorial.ClientID %>');
        label.innerHTML = pResult[2];
 
        var button = $find('RdBttn_NextTutorial');
        button.set_text(pResult[3]);
    }
    else {
        tooltip.hide();
    }
}
 
function OnNextTutorial() {
    var button = $find('RdBttn_NextTutorial');
    PageMethods.OnNextTutorial(PreTooltipShowCompleted);
}




​
Marin Bratanov
Telerik team
 answered on 05 Nov 2014
1 answer
105 views
Looks like if I want to export to excel I first need to bind radgrid and load to  the page and then the user does something to initiate the download.

I am trying to do the bind and export in one event. Thats why I didn't add my grid to the page, I just wanted to leverage its ability to export the data for me. I don't plan on my user ever seeing a bound radgrid.

Is something like this possible? 
public void RunReport_Click(object sender, EventArgs e)
{
    //bind a radgrid in code behind
    //export the radgrid to excel when its done binding
}

Please advise.

My data has dynamic column. I use dynamic query. The code I'm using is
       private void BuildReport(string @SpecID)
        {
            RadGrid gvTemp = new RadGrid();
            
            int db = (int)CommonFunctions.CurrentDatabase();
            DateTime StartDate = UIStartDate.SelectedDate.Value;
            DateTime EndDate = UIEndDate.SelectedDate.Value;

            using (STS32Entities ctx = new STS32Entities())
            {
                SqlConnection caConn = new SqlConnection(CaConn);
                SqlCommand caCmd = new SqlCommand("CreateDynamicQuery", caConn);
                caCmd.CommandType = CommandType.StoredProcedure;
                caCmd.Parameters.Add(new SqlParameter("@DB", db));
                //caCmd.Parameters.Add(new SqlParameter("@SeqNo", SeqNo));
                //caCmd.Parameters.Add(new SqlParameter("@DataVrsn", UIDataVersion.SelectedItem.Text));
                caCmd.Parameters.Add(new SqlParameter("@SpecID", SpecID));
                caCmd.Parameters.Add(new SqlParameter("@DateType", UIEventType.SelectedValue));
                caCmd.Parameters.Add(new SqlParameter("@StartDate", StartDate.ToShortDateString()));
                caCmd.Parameters.AddWithValue("@EndDate", EndDate.ToShortDateString());
                caCmd.Parameters.Add(new SqlParameter("@HarvestCode", UIHarvestCode.Checked));

                caConn.Open();
                SqlDataReader caRdr = caCmd.ExecuteReader();

                gvTemp.DataSource = caRdr;
                gvTemp.DataBind();
                this.Form.Controls.Add(gvTemp);
                //Download.Enabled = true;
            }
            gvTemp.ExportSettings.IgnorePaging = true;
            gvTemp.ExportSettings.FileName = "DQRecords";
            gvTemp.ExportSettings.OpenInNewWindow = true;
            gvTemp.ExportSettings.Csv.FileExtension = "xls";
            gvTemp.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Comma;
            gvTemp.MasterTableView.ExportToCSV();
            gvTemp.Visible = false;
        }







Kostadin
Telerik team
 answered on 05 Nov 2014
1 answer
166 views
Hi all,

how could we be able to expand/collapse a treeview without passing by the needdatasource event ?

I mean:
    we have a page with a treelist control.
The first load (!page.ispostback) we need to load it empty. The second load (page.ispostback) we load the treelist control with the results of a filter options.

If we click on expand/collapse button it doesn't work (expand/collapse)

Every time we  start an event, treelist goes on needdatasource event to load the object.

How could we be able to expand/collapse a treeview without passing by the needdatasource event , load it and click on expan/collapse button to expand or collapse nodes?

Hope you undestand.
Thank you

BR
Jesús

Kostadin
Telerik team
 answered on 05 Nov 2014
2 answers
105 views
Hello,

I've got an issue with one of my RadWindow. I want to refresh the parent page when there's a change in the RadWindow. For that, I use an arg when I close the RadWindow and catch that in the parent page :

RadWindow script :
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow)
        oWindow = window.radWindow;
    else if (window.frameElement.radWindow)
        oWindow = window.frameElement.radWindow;
    return oWindow;
}
 
function CloseWindowsWithArgument(arg) {
    var oWindow = GetRadWindow();
    oWindow.close(arg);
}
 
function CloseWindows() {
    var oWindow = GetRadWindow();
    oWindow.close();
}

The two close functions are call like that :
string scriptCloseWindow = modifiedItemCount > 0 ? "CloseWindowsWithArgument('NewData')" : "CloseWindows()";
 
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "saveCustomRainFall", scriptCloseWindow, true);

In the parent page, I've got this script :
function WindowsRainFallNewClose(sender, eventArgs) {
    // Explicitely instructed to reload
    if (eventArgs._argument != null) {
        window.location.reload();
    }
}

The RadWindow is declared like that :
<telerik:RadWindowManager ID="Singleton" runat="server" Behavior="Default" InitialBehavior="None" EnableEmbeddedSkins="False"
    Left="" meta:resourcekey="SingletonResource1" Style="display: none;" Top="" VisibleOnPageLoad="False" EnableViewState="False">
    <Windows>
        <telerik:RadWindow ID="DialogWindow" Skin="Bayer" EnableEmbeddedSkins="false" Behaviors="Maximize,Move,Reload,Resize,Close"
            ReloadOnShow="True" ShowContentDuringLoad="False" VisibleOnPageLoad="False" EnableViewState="False" OnClientClose="WindowsRainFallNewClose"
            Left="250px" Modal="true" runat="server" Width="300px" Height="400px" Title="Custom Rain Fall"
            NavigateUrl="GFTDonRisk_CustomRainFallNew.aspx" VisibleStatusbar="false" meta:resourcekey="DialogWindow">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

When the parent page is reloaded, the page contained in the RadWindow also reloaded and I don't want that. I use a global script to show a loading bar when the pages are loading and close it when they are loaded. On the reload, the RadWindow don't finish its reload and it's blocking my loading bar (see the attach file : in red, the radwindow page. in yellow, the parent page).

How can I do to avoid the loading of the radwindow page after the "window.location.reload();" ?
Pierre-Antoine DOUCHET
Top achievements
Rank 1
 answered on 05 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?