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

I know I am missing something simple here.

Have a multi-column combo box, listing Name, DoB, Age, Gender.

Can retrieve record_id in SelectedIndexChanged by
strPatientRecord_ID = RadComboBox1.SelecterdValue.ToString, so thats no a problem.

Without going back to the database, I would like to pass all the column values to the next webpage using session variables to use as a header for the patient info on the page.

What am I missing?

Thanks for the help, Kevin

 

Kevin
Top achievements
Rank 1
 answered on 21 Jan 2010
3 answers
167 views
I am using custom filtering in  my grid using the filter template as shown here:
http://www.telerik.com/help/aspnet-ajax/radgridfiltertemplate.html

I have a radcombobox in my fliter template.
the issue I have is once i select something in the dropdown and set the filter expression...the gid filters the recordsbut in the display my combobox does not show the selected value.
it defaults to the first item.

How can i retain the combobox selected value?

my grid column declaration:

<

telerik:GridTemplateColumn HeaderText="Name" UniqueName="RelType" HeaderStyle-Width="25%"

 

 

DataField="RelationType">

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxRelatedContacts" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadComboBoxRelatedContacts_SelectedIndexChanged">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="Family" Value="Family" />

 

 

<telerik:RadComboBoxItem Text="Business" Value="Business" />

 

 

<telerik:RadComboBoxItem Text="Personal" Value="Personal" />

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

<ItemTemplate><asp:Label ID="Label1" runat="server" CssClass="label" Visible='<%# !Convert.IsDBNull(Eval("Relationship")) %>'><br /><b>Relationship</b>:&nbsp;</asp:Label><%# Eval("Relationship")%>

 

 

<asp:Label ID="Label2" runat="server" CssClass="label" Visible='<%# !Convert.IsDBNull(Eval("RelationType")) %>'><br /><b>Rel. Type</b>:&nbsp;</asp:Label><%# Eval("RelationType")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

aspx.cs

protected

void RadComboBoxRelatedContacts_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

 

RadComboBox list = (RadComboBox)sender;

 

 

string filterExpression = "([RelationType] = '" + list.SelectedValue + "')";

 

 

GridFilteringItem item = (GridFilteringItem)list.NamingContainer;

 

 

RadGrid gridKeyRel = (RadGrid)item.NamingContainer.NamingContainer.NamingContainer;

 

gridKeyRel.MasterTableView.FilterExpression = filterExpression;

gridKeyRel.MasterTableView.Rebind(); 

}

Brian Schmidt
Top achievements
Rank 1
 answered on 21 Jan 2010
2 answers
183 views
Hi

I'm testing Scheduler component and got a question.
Is it possible to allow appointments to be added for multiple resources at once, by selecting resources with checkboxes?

Thanks.


John John
Top achievements
Rank 1
 answered on 21 Jan 2010
23 answers
1.6K+ views
I am unable to add the RadControls (Telerik.Web.UI.dll) to the Visual Studio 2008 toolbox.

 - I tried using the ToolBoxInstaller.exe application. This did not accomplish it.

 - I tried manually adding the Telerik.Web.UI.dll file to a tab in the toolbox (By creating a tab for Telerik, right clicking it, and selecting Choose Items) and I receive this error:

    There was an error loading types from assembly
    'C:\Telerik\bin35\Telerik.Web.UI.dll\'
    'Could not load file or assembly 'Telerik.Charting,
     Version=2.0.0.0,Culture=Neutral, PublickKeyToken=d14f3dcc8e3e8763'
    or one of its dependencies. The system cannot find the file specified.'

Telerik.Charting.dll is also in the same folder. This happens regardless of whether I use the bin folder or the bin35 folder. I am able to use the controls. It's just that I am not able to add the controls to a toolbox, and I am also not able to see the Intellisense for the telerik controls.
   
   
squicc
Top achievements
Rank 1
 answered on 21 Jan 2010
6 answers
275 views
I have a rad window that pops up that allows the users to add or edit existing linked records.  When the window closes I want to update RadComboBox with the new information.  I have everything working to call the AjaxRequest and reload the RadComboBox but it does not refresh.

Here is the code.  Thanks in advance for your help.

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="ddAgency" >

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgency" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1" >

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgency" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="ddAgency">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgencyContract" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxPanel ID="radPanel1" runat="server">

 

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" >

 

 

<script type="text/javascript">

 

 

//<![CDATA[

 


function
OnClientClose(oWnd, args) {

 

 

 

var arg = args.get_argument();

 

 

if (arg) {

 

 

 

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

 

 

if (ajaxManager) {

 

alert(arg)

ajaxManager.ajaxRequest(arg);

 

 

}

}

}

 

//]]>

 

 

</script>

 

 

</telerik:RadCodeBlock>


 

protected

 

void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)

 

{

 

string cArgs = Convert.ToString(e.Argument);

 

 

 

if (cArgs.Contains(":"))

 

{

 

string[] vals = cArgs.Split(':');

 

 

string cFieldType = vals[0];

 

 

string cValue = vals[1];

 

 

 

switch (cFieldType)

 

{

 

case "Agency":

 

 

Utility.LoadRadComboBox("Agencies", ddAgency, "Name", "Id", "");

 

ddAgency.SelectedValue = cValue;

ddAgency.Text =

"Text from Code";

 

 

break;

 

 

case "Resource":

 

 

Utility.LoadRadComboBox("Resources", ddResource, "FullName", "Id", "");

 

ddResource.SelectedValue = cValue;

 

break;

 

 

case "AgencyContact":

 

 

Utility.LoadRadComboBox("AgencyContacts", ddAgencyContact, "FullName", "Id", "");

 

ddAgencyContact.SelectedValue = cValue;

 

break;

 

 

default:

 

 

break;

 

}

}

}

Mark Galbreath
Top achievements
Rank 2
 answered on 21 Jan 2010
4 answers
104 views
Hi

I'm testing Telerik RAD Editor and got the next questions:

1. I saw , that it's possible to edit table added to the document. But in my case, I'm able only to add table, not edit it (add/remove rows,columns etc). Whats wrong with it? I tried to find any description and didn't succed.

2. Is it possible to make editor to load images from user's PC, not server? How is this can be done?

Thanks
John John
Top achievements
Rank 1
 answered on 21 Jan 2010
4 answers
370 views
Hi,

where is the the EnableLinqExpression, and did I need this in the future for case sensitive search in the filter?

In the forum I found the hint for case sensitive search:

EnableLinqExpressions = False
GroupingSettings.CaseSensitive = False

After binary update I get errors, I didn't found any information in your Version Note

regards Stefan

 

Stefan Timm
Top achievements
Rank 2
 answered on 21 Jan 2010
3 answers
150 views
Is there an easy way to change some of the tool functionality in how it generates html tags?

For instance, instead of wrapping text in <strong> </strong> it would wrap the text in <b></b> instead. Any ideas? There is limited support for html in sql reporting and we are restricting all the tools to work with this limitation.
Dobromir
Telerik team
 answered on 21 Jan 2010
11 answers
160 views
I have a GridHyperLinkColumn like so:

<telerik:GridHyperLinkColumn DataTextField = "niin" 
                             HeaderText = "NIIN" 
                             DataNavigateUrlFields = "LIN" 
                             DataNavigateUrlFormatString = "~/RCM/list_LIN_detail.aspx?lin={0}" 
                             UniqueName = "niin">  
</telerik:GridHyperLinkColumn> 

You can see I am displaying the contents of the "niin" field while hyperlinked to the "lin" field.  When I export this to Excel, all the data fields arrive just fine, but the "niin" field is duplicated in side-by-side columns in Excel.

Any clues as to why this would be occurring?

tia,
Mark
Mark Galbreath
Top achievements
Rank 2
 answered on 21 Jan 2010
1 answer
153 views
Hi,

Is there a property or some css that we can use to specify the location of footer? If a grid has a horizontal scrollbar, the footer text is displayed below the horizontal scrollbar. Is there a way to move the footer to above the scrollbar?

Also, the vertical scrollbar is displaying on top of the last column. Is there a way to separate it from the last column? And finally when I have the scrollbars, the footer text is not correctly aligned with the rows in the grid. Please see my attachment.

Thanks.
Daniel
Telerik team
 answered on 21 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?