Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
170 views
Hi,

I would like to use a webservice to fetch the search results for my searchbox. I've created an .asmx file as shown in the examples online, and can get to the webservice call and grab the searchbox context without issue.

SearchRows = new RadSearchBox() { ID = pv.ID + "_SearchRows", OnClientButtonCommand = "RowSearchBox_ClientButtonCommand",
                EnableAutoComplete = true, ShowSearchButton = false, EmptyMessage = "Search Rows", Width = Unit.Parse("300px"), Skin = "Metro",
                OnClientSearch = "RadRowsSearch_ClientSearch" };
            SearchRows.DropDownSettings.Width = Unit.Parse("300px");
            SearchRows.DropDownSettings.Height = Unit.Parse("400px");
            SearchRows.WebServiceSettings.Path = "~/WebServices/LoadSearchResults.asmx";


However, in order to generate the results I want to show, I need to pass along a few additional parameters. Is there any way to do this? Looks like there's nothing I can set in the OnClientDataRequesting client handler. And I tried setting HttpGet to true and passing parameters through the URL string, but it returns a 500 Page not found error.

Thanks,

Ajit
Dimitar Terziev
Telerik team
 answered on 21 Aug 2013
2 answers
127 views
Hi all

I have used RadEditor which is displayed as Textbox. I want to have HTML, design and preview options in it. How do i do this? 

Thanks
Kamini
kamini
Top achievements
Rank 1
 answered on 21 Aug 2013
2 answers
125 views
I am working on a helpdesk solution for tracking issues within tests, candidates doing the tests have information stored against sessions.
When the page loads, it loads in a manner that depends on whether a ticket has already been created.
One of the parts of the page is a radtabstrip and multi page.
The problem is that when a ticket is being created, the attendant cannot switch tabs. The radtabstrip seems to do nothing.
However when a ticket that has been created is reloaded for editing, the attendant can switch tabs.
I have set causesValidation=false within the page, and I can see no way in which one loads significantly enough from the other for it to cause a problem.

Does anyone have any ideas? I imagine its one of those silly, "ohh I didn't know that" kind of things", any help is appreciated :D

Here is my code-behind
loadDDLs();
if (Request["Ticket"] != "0")// if a ticket exists
{
    var objRec = objDb.QuerySingle("Query removed for your sake");
    loadCommonFields(objRec);
 
 
    ///This block should cause no problems
    ///---------------------------------
    txtTicketNum.Text = objRec.TicketID.ToString();
    txtFaultDescription.Text = objRec.FaultDescription;
    txtNotes.Text = objRec.Notes;
    txtLastAction.Text = objRec.LastActioned.ToString();
    txtDateLogged.Text = objRec.DateLogged.ToString();
    txtLoggedBy.Text = objRec.LoggerName;
    txtCampaignDescription.Text = objRec.CampaignDescription;
    lblLoggedByID.Text = objRec.LoggerID.ToString();
    lblLoggedByID.Visible = false;
 
    setDDLs(objRec);
    setDDLs2(objRec, objDb);
    if (objRec.SessionID != null)
    {
        txtSessionID.Text = objRec.SessionID;
        m_strID = objRec.SessionID;
        loadCurrentStatus(objDb);
        ddlCompany.Enabled = false;
        ddlCampaign.Enabled = false;
        txtInitLastAccess.Text = objRec.im;
        initModule.Visible = true;
        initStatus.Visible = true;
        txtInitModuleStatus.Text = objRec.il.ToString();
    }
}
else
{
    lblLoggedByID.Text = objUser.UserID.ToString();
    lblLoggedByID.Visible = false;
    txtLoggedBy.Text = objUser.DisplayName;
    txtDateLogged.Text = DateTime.Now.ToString();
    txtLastAction.Text = "No Prior Action";
 
    if (Request["ID"] == "0")
    {
        //  This section is used if there is no session at all, not a concern so I truncated this section
    }
    else
    {
 
        if (m_strID == null)
            m_strID = Request["ID"];
 
        var objRec = objDb.QuerySingle("Query removed for your sake");
        var objModPage = objDb.QuerySingle("Query removed for your sake");
        if (objModPage != null)
        {
            lblModuleID.Text = objModPage.moduleID.ToString();
            txtModuleName.Text = objModPage.Name;
            lblPageNum.Text = objModPage.CurrentPage;
            rowModule.Visible = true;
            rowPageNum.Visible = true;
        }
        txtCampaignDescription.Text = objRec.CnDn;
        txtStatus.Text = objRec.StatusName;
        txtSessionID.Text = Request["ID"];
        m_strStatus = objRec.Status;
        ddlCompany.Enabled = false;
        ddlCampaign.Enabled = false;
        loadCurrentStatus(objDb);
        loadCommonFields(objRec);
        setDDLs(objRec);
    }
}
:
Here is what I deem to be the relevant aspx code
<telerik:RadTabStrip ID="RadTabStrip" runat="server" MultiPageID="RadMultiPage" >
      <Tabs>
          <telerik:RadTab causesvalidation="false" runat="server" PageViewID="Status" ID="StatusTab"
             Text="<%$ Resources:Platform, Status %>">
          </telerik:RadTab>
          <telerik:RadTab causesvalidation="false" runat="server" ID="ProgressTab" PageViewID="Progress"
              Text="<%$ Resources:Platform, Progress %>">
          </telerik:RadTab>
          <telerik:RadTab causesvalidation="false" runat="server" ID="NotesTab" PageViewID="Notes"
              Text="<%$ Resources:Platform, Notes %>">
          </telerik:RadTab>
      </Tabs>
  </telerik:RadTabStrip>
Aaron
Top achievements
Rank 1
 answered on 21 Aug 2013
0 answers
114 views
Hi there. I'm pretty new to both asp.net and sql so this might be a common question. I have a microsoft sql 2008 R2 server with a certain database which has many branching sub-directories. All of which end with different folders with data tables in them. I was wondering how I could bind this hierarchy to a data source (I'm using sqlDataAdapter) and attach it to the radMenu so that it would neatly re-produce this hierarchy. It looks like there are a few ways to go about it. Mostly I'm uncertain of how to query the database to get a folder with children (and sub-children) and how it's organized as a table, set, etc. I only really know the basic SELECT*. UPDATE, DELETE commands.

From what I've read, the radMenu binding uses a parentID, childID system. How does that work exactly? Does my hierarchy or it's tables have to be organized a certain way?


So I guess that's more than one question, but any help is appreciated!

thanks

Will
Will
Top achievements
Rank 1
 asked on 20 Aug 2013
3 answers
149 views
I have a problem that after run time modification labels at YAxis are not readable. I`m trying to convert time format from minutes to hour:minutes format at run time. It seems that these new labels doen`s fit to the area and result is mess. Timeformat is changed at PrePaint event handler. Control doesn`t update it`s measures after that.

protected void MyChart_PrePaint(object sender, EventArgs e)
{
            RadChart are = (RadChart)sender;
            ChartYAxis yAxis = are.PlotArea.YAxis;

            are.Series[0].Appearance.LabelAppearance.Dimensions.AutoSize = false;
            are.Series[0].Appearance.LabelAppearance.Dimensions.Width = 500;          

            yAxis.Appearance.TextAppearance.AutoTextWrap = AutoTextWrap.False;
            yAxis.Appearance.TextAppearance.Dimensions.Width = 500;
            yAxis.Appearance.TextAppearance.Dimensions.AutoSize = false;



            foreach (ChartAxisItem axisItem in yAxis.Items)
            {
                axisItem.TextBlock.Text = "some text here";
            }
}

Jaseem
Top achievements
Rank 1
 answered on 20 Aug 2013
1 answer
171 views
Hello I have a RadButton that I am using on Click to Hide and Show two Divs. In order for the event to fire the button needs to be clicked twice. After that It works fine.

<telerik:RadButton ID="rbShowServiceMonitorDialog" runat="server" Text="Add A Service To Monitor"
                   OnClientClicked="showServiceMonitorConfig" ButtonType="LinkButton" UseSubmitBehavior="False" AutoPostBack="false"/>
function showServiceMonitorConfig() {
    $telerik.$('#<%= rbShowServiceMonitorDialog.ClientID %>').click(function() {
        $telerik.$('.serviceMonitorView').hide('slide');
        $telerik.$('.ServiceMonitorConfiguration').show('slide');
 
    });
}
Will
Top achievements
Rank 1
 answered on 20 Aug 2013
0 answers
113 views
I have an AsyncUploadControl on a page, and when I add one or more files, the select input/button disappear.  All the demo's don't have that issue, what am I missing?

EDIT: scratch that, found my issue.  I had: MaxFileInputsCount="1" as an attribute which caused my display issue.

Mike
Top achievements
Rank 1
 asked on 20 Aug 2013
1 answer
285 views

I am using a Radgrid in Batch Editing Mode (example)

I am trying to allow an end user to apply a value to a column for all records listed.

For example I have 3 columns named 1 2 & 3, and we have 10 records showing in the grid. I want the End User to be able to apply a value which is determined outside the grid to all 10 records in column 2.

The problem is that when I am using the grid in batch editing mode, I need to somehow tell the grid which cells have been edited so that the red triangle in the top left corner of the cells show up once a cell has been edited. The goal is to not apply the changes until the End User clicks the save button attached to the grid.

I have placed an arrow on the save button and an arrow pointing at the red triangle which indicates that a cell has been modified.


I have a button outside of the grid which attempts to set the value to the ACT Arrival column for all records.

Here is the code behind that button

 

So, I want to edit all cells in a given column for all records and mark all records that have been modified as ready to process in batch.

I appreciate any assistance that can be offered and will reply quickly to questions.
Angel Petrov
Telerik team
 answered on 20 Aug 2013
3 answers
67 views

Is there any function/javascript regarding mousever event? I want to change the image of my custom tool once it is hovered by the mouse pointer. Thanks in advance!
Vessy
Telerik team
 answered on 20 Aug 2013
2 answers
95 views
We have a number of grids in our application, all of which have hidden fields. 

Up until recently we have accessed this items when clicking on a control. We recently upgraded Radcontrols to the latest version, and now we cannot access those hidden fields. We can still access fields to do not have the visibility set to false. 

We have tried setting them as visible, and the column width as 0px. But this fails on some older browsers and makes the column width about 5px. 

Any help would be greatly appreciated. 
     

                GridDataItem item = (GridDataItem)e.Item;

                String EmailActionLogID = Convert.ToString(item.GetDataKeyValue("EmailActionLogID"));

                String EMLEmailFrom = item["mailfrom"].Text;
                String EMLRecipient = item["rcptto"].Text;
                String EMLDateTimeReceived = item["datetimeReceived"].Text;
                String EMLGuid = item["emlGUID"].Text;
                String EMLQuarantineID = item["ActionValue"].Text;
Markus
Top achievements
Rank 2
 answered on 20 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?