Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
443 views
Hello experts..

I have a scenario in my application where end users can send mail to multiple users with seperator ' ; ', they can select from combo items(contact name) or they can enter a new contact's email id. when they enter mail id which is not in the combo list item, i shoud popup the add contact modal popup and once they add it, i will bind the added user and they can select it from combo. so when user sends the mail, i need to get selected contact's contact id and send the mail to those id's

I was able to achieve the above functionality with few issues,
they are
1. when user type a text 'Ra' and combo lists the 'Raja', if user uses keyboard and presses END button and ' ; ', my code assumes it as some text entered other than item frm combo, if user presses 'Ra' and user selects the Raja using mouse and presses ';' means my code works fine.
2. when users enters mail id alone and not entering ';' means, i cant prompt user to add contact.
3. Im storing the contact id in hidden field and when i click send button I'm retrieving it.

I used radcombo, binding its data from web method as follows

 

 

<telerik:RadComboBox ID="rdCombotxtToUser" runat="server" Width="397px" Height="140px" Enabled="false"

 

 

 

EmptyMessage="Please enter your contacts (e.g John Doe;Jane Doe)" AllowCustomText="true" AutoCompleteSeparator=";" EnableAutomaticLoadOnDemand="true" EnableItemCaching="true" MarkFirstMatch="true" OnClientKeyPressing="OnClientKeyPressing">

 

 

 

<WebServiceSettings Method="GetContactName" Path="~/WebServices.asmx" />

 

 

 

</telerik:RadComboBox>

When users enters ; im firing following below javascript

 

 

 


function
OnClientKeyPressing(sender, e)

 

{

 

 

 

var strSelecteditem

 

 

 

if (e._domEvent.keyCode == "186")

 

{

 

 

var combo = $find("<%= rdCombotxtToUser.ClientID %>");

 

strSelecteditem = combo._selectedItem;

 

 

if (strSelecteditem == null) {

 

 

 

var mdlPopup = $find("mdladdContactPopupBId");

 

document.getElementById(

 

"<%=txtName.ClientID %>").value = combo._filterText;

 

mdlPopup.show();

}

}

Can anyone suggest me any other method or solution to prompt user only when mail id or items not in combo is entered.

Ivan Danchev
Telerik team
 answered on 03 Oct 2016
1 answer
79 views

I have a XML file for users to click a link to display a help pdf.  The XML is using Node Text = Course and I can use Text to display the PDF in an iframe.  The XML has attributes of PDFFile and Permissions, also.

A part of the xml file:

<Node Text="System Software Requirements" PDFName="SystemSoftware" Permissions="Administrator,Installer">
    <Node Text="Client PC System Software" PDFName="SystemSoftwareClientPC" Permissions="Administrator,Installer"/>
    <Node Text="Server System Software" PDFName="SystemSoftwareServer" Permissions="Administrator,Installer"/>
</Node>

In the C# code behind, I am using Telerik.Web.UI.RadTreeNodeEventArgs e

string PDFName = e.Node.Text

to display the pdf file

I would like to use PDFName to display the PDF file and remove the link if the person is not an Administrator or Installer.  I have tried selectedName.Attribute("PDFName"), but it is giving me an error.  What attribute should I use?

Thanks,

Jeff

Nencho
Telerik team
 answered on 03 Oct 2016
1 answer
100 views

Hi

Is it possible to edit treelist view only for a few row ?? 

After searching, i did not find a way to view my gantt row...

I would like to edit some value of row from one column and represented them by a different color.

 

Thanks

Salvatore

Veselin Tsvetanov
Telerik team
 answered on 03 Oct 2016
9 answers
212 views

I have a problem where after I dragged Branch ID into the Row Area and update, the pivotgrid will load for some time and show empty result. Results will show if Branch ID is not dragged into row area. 

I have tried the same scenario in Visual Studio 2008 SSAS and it successfully shows the result.

Thanks.

Maria Ilieva
Telerik team
 answered on 03 Oct 2016
45 answers
1.5K+ views
I'm noticing that the RadAjaxPanel control is causing a full postback when one of its child controls is fired (like a checkbox with autopostback=true).  This only happens the 1st time and all subsequent postbacks happen via AJAX.

Any idea on why this may be happening?

Also, when more than 1 RadAjaxPanels are on the same page, it seems that all the other update panels work fine on their 1st trigger, it's just the first request from any of them that seems to be a problem.

These are inside a formview in a user control, if that matters.
Mihail
Top achievements
Rank 1
 answered on 02 Oct 2016
2 answers
68 views

Hi,

I am playing with Radmenu on multiple devices, including desktop and mobile devices. I realize i can set "RenderMode" to "Auto" and it will adapt to devices automatically.

However, one issue i noticed is that once it is set to "Auto", it renders desktop menu in "Lightweight" mode. According to my research, it is the default behavior: if there is lightweight mode available, use lightweight mode for desktop and using Mobile mode for mobile devices. I also realized the lightweight mode has different HTML layout than the Classic one. That cause some styling issue cross my web application. I would prefer to show "Classic" on desktop, and "Mobile" for mobile devices. Is there any setting/configuration that can help with that?

In addition, is there any specific CSS files for lightweight mode that I need to download and add to my web application (because this is my first time play with lightweight render mode)?

 

Thanks

Kan

Kan
Top achievements
Rank 1
 answered on 30 Sep 2016
6 answers
242 views
Hi,

I have open a RadWindow on a button click event and then in that window i have added a download button for downloading the file.
But as the download pop up the radwindow stop behaving. Right now i want that RadWindow should get close automatically  when the download gets completed but currently it remains open. So please provide me solution for this.

Thanks
Logan Marshall
Top achievements
Rank 2
Iron
 answered on 30 Sep 2016
2 answers
41 views

Hello All, 

I'm using the self hierarchy rad grid, in the second and third level I'm hiding few columns programmatically but the grid render is not happening.

please help me on this, its bit urgent.

Attached the image for reference.

 

With Thanks

Amjath

Amjath
Top achievements
Rank 1
 answered on 30 Sep 2016
0 answers
60 views

Hi guys,

I have created a Pie Chart for my application but appearance does not look good. If I have at least 6 items the % is squeezed and cannot be seen.

Please see attached file.

Help me with this issue.

Thanks so much.

 

Vitaly
Top achievements
Rank 1
Iron
Iron
 asked on 30 Sep 2016
3 answers
216 views

I am very new to Telerik, so forgive my nearly total lack of knowledge in this area. I am coming from Selenium and having a difficult time trying to find the equivalent ways to do things in Telerik.

One example is simply invoking JavaScript by reference elements that are available in c#. For example,

C# fake code of what I'm trying to accomplish:

var inputbox = myclass.FindElement.ByXPath<HtmlInputText>("//*[@id='someid']//input[@type='someotherid']");
mybrowser.Actions.InvokeScript( inputbox.HowToReferToThisInJS?? +".some_method_like_click_or_whatever_in_js()" );

Sorry if this isn't clear and I'm missing something super obvious. This was relatively straight forward in Selenium (at least I was used to it) and I'm sure there is an easy way to do this using Telerik, I'm just having a hard time bridging the gap.

Something similar that works in Java+Selenium (the arguments[0-1] are magically brought in from the parameters in the method call - this is essentially what I'm trying to accomplish):

WebElement dropdown = driver().findElement(By.xpath(xpath)); // A dropdown box
int index = 5;
((JavascriptExecutor)driver()).executeScript("var select = arguments[0]; select.options[arguments[1]].selected = true;", dropdown, index);

 

Thanks.

Konstantin Dikov
Telerik team
 answered on 30 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?