Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
336 views
Hi,

In a scheduler
I want to scroll dynamically to an appointment which is the starting one in week and day view. Please help me.


Thanks.
Veselin Tsvetanov
Telerik team
 answered on 21 Jul 2016
2 answers
124 views

I am using the GridAttachmentColumn with batch editing. The files are upload fine and I'm using the following code to get the uploaded files. 

Directcast(grdTemplates.MasterTableView.GetBatchEditorContainer("RequestAttachments").Controls(0), RadAsyncUpload).UploadedFiles

However, I cannot tell which file each file belongs to which row. I thought using the AttachmentKeyFields would work, but that doesn't seem to be the answer. Any help would be much appreciated. 

 

Sam
Top achievements
Rank 1
 answered on 21 Jul 2016
1 answer
367 views

Hi all...

 

I need to run a couple of discrete stored proc when I do my update from a grid.  I need to check if the combobox selection indicates a change to one field and if so execute etc.

I can't for the life of me figure out how to get that value, I tried an selectedindexchanged event and that doesn't seem to work either. I'd be very grateful for a nudge in the right direction as I'm veryyyyyyyyyy rusty :(

 

Here's what I tried most recently:

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
{

if (e.CommandName == "Update")
{


GridEditableItem item = (GridEditableItem)e.Item;
RadComboBox combo =(RadComboBox)item.FindControl("updateComboBox");
var status = (string)item.GetDataKeyValue("status");
if (combo.SelectedItem.Text!= status)
{

 // Do my update...
}

Viktor Tachev
Telerik team
 answered on 21 Jul 2016
1 answer
410 views
Is it possible to add a button control to the list box item?  I was able to add images to each item, but i want to make these images to button icons. 
Ivan Danchev
Telerik team
 answered on 21 Jul 2016
1 answer
131 views

I have a RadScheduler where I want to show details in a ToolTip from a context menu "Details...".

I got it all working, e.g. context menu is selectable, the code is called, data is being loaded and a tooltip is showing up, 

BUT:

The tooltip always load the same tooltip for one appointment no matter on which appointment I select the context menu. It seems like it doesn't promote the AppointmentId or it doesn't see which appointment was right-clicked. 

Any hints?

I have this code in 'AppointmentContextMenuItemClicked()  where I call .Show() on the RadToolTipManager:

01.protected void RadSchedulerPlanning_AppointmentContextMenuItemClicked(object sender, AppointmentContextMenuItemClickedEventArgs e)
02.        {
03.            AppointmentContextMenuItemClickedEventArgs args = e;
04.          
05.            if (e.MenuItem.Value == "CommandDetails")
06.            {
07.                string id = e.Appointment.ID.ToString();
08. 
09.                foreach (string domElementID in e.Appointment.DomElements)
10.                {
11.                    RadToolTipManager1.TargetControls.Add(domElementID, id, true);
12.                }
13. 
14.                RadToolTipManager1.Show();
15.            }
16.        }

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
1 answer
99 views

radnotification does not work on the pages with telerik.reportviewer.

Does it required some additional coding

Thank you for your reply

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
1 answer
310 views

I'm trying to automatically open an appropriate page on a popup modal. My page design is I've got a RADGRID with an edit button for each column. Each row has a unique ID (lets say row 1 is 1, row 2 is 2 and etc.). Each cell has a unique ID number as well. Currently, I've got a popup modal that appears when you click edit on a row in the radgrid. The modal displays all the editable cellsfor that unique row. You then have to click through a cell name/id to fire the "edit" command to code behind that opens up a new page in the modal specific for that cell name/id. The edit button takes in hidden row details of the modal. How can I click on a cell (not a row) and open up the appropriate modal page to edit that cell without having to select the cell on the modal?

 

If this is too confusing or more information is needed I will explain it a bit better.

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
1 answer
133 views
Is there a way to programmatically set the editor to an unordered list and keep it in that mode, so the user can only enter bullets?
Ianko
Telerik team
 answered on 21 Jul 2016
8 answers
587 views
Context: I'm using as RadSearchBox and calling a web service using:

<WebServiceSettings Path="~/Service.asmx"  Method="GetSearchBoxResults" ></WebServiceSettings>

Just to be clear, my code works.

However, on the odd occasion, especially if there is a delay in the response from the server, and the user tries navigating the page away before the response has been received, the error message "The server method 'xxx' failed" appears several times, which is irritating to users.

Is there a straight forward way to suppress this message?

 


Plamen
Telerik team
 answered on 21 Jul 2016
3 answers
297 views
Hello Sir/Mam

i'm using radalert to display message. On radButton

OnClientClicked Event

It show message window  for few seconds and disappears........
I'm attaching source code..

  <telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
            EnableShadow="true" 
            DestroyOnClose="true" VIsibleOnPageLoad="true">
        </telerik:RadWindowManager>
  
 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    
    <script type="text/javascript" >
  
        function chkName() 
        {           
            var v1 = document.getElementById("<%=txtName.ClientID%>");
            if (v1.value == "") {
                radalert("Enter username");
                return false;
            }
            else if(v1.value.search("^[a-zA-Z. ]{1,40}$") != 0)
            {
                radalert("Enter valid username", 300, 200, "NAME VALIDATION");
                return false;
            }
            else 
                  
                return true;
              
        }
  
         
    </script>   
  </telerik:RadCodeBlock>
  
    <table>
        <tr>
            <td>Name</td>
            <td
                <telerik:RadTextBox ID="txtName" runat="server" />               
            </td>
            <td>
                <telerik:RadButton ID="btnName" runat="server" OnClientClicked ="chkName" />                
            </td>
        </tr>
</table>



Help!!!1


Thanks

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?