Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
My dock is not restoring to its original size when I expand after collapse. Here is my code. Any help is appreciated.

<

 

telerik:RadDockLayout runat="server" ID="RadDockLayout1" Skin="Web20" EnableEmbeddedSkins="false">

 

 

<telerik:raddockzone runat="server" id="RadDockZone1" orientation="Horizontal" Width="98%" Height="98%" minheight="95%" MinWidth="95%" HighlightedCssClass="DockHighlight">

 


<

 

telerik:raddock id="RadDock3" Skin="Outlook" title="mydock" runat="server" height="95%" width="30%" dockhandle="TitleBar" Resizable="true" DefaultCommands="ExpandCollapse, PinUnpin, Close">

 

 

<contenttemplate>

 

 

<ucControls:Control1 id="control1" runat="server" />

 

 

</contenttemplate>

 

 

</telerik:raddock>

 

 

 

</telerik:raddockzone>

 

 

 

 

 

 

</telerik:RadDockLayout>

 

Pero
Telerik team
 answered on 30 Jul 2009
1 answer
199 views
I have the RadDatePicker on the site and I am trying to figure out how to give it the option of opening up or down.  Well, how do you specifiy this?  I know that there is supposed to be some kind of option where you popup to open upper left, upper right, lower left or lower right.  I can't seem to find this option anywhere within the control and it is driving me nuts.  Please tell me where exactly to find it in the menu or where I can plug it in on my code.  Thanks!
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2009
3 answers
589 views
Hello,
I am getting errors on getting a label text value (in EditFormSettings) from the code behind '<%# DataBinder.Eval(Container,"SIDX1H") %>'
in the aspx page. Please see the code below...
I have tried Container.DataItem also but still error.
Any solutions to get the value correctly?
Also Can I get the row header (column) value in the EditFormSettings ?

Here is the Code Behind for Grid Item Command:

 

Protected Sub gv_Search_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gv_Search.ItemCommand

 

 

'Get the Row index of the click and load the DataKeys (Columns)

 

 

Dim index As Int32 = Convert.ToInt32(e.Item.ItemIndex)

 

 

Select Case e.CommandName

 

 

Case "edit"

 

 

Dim SIDX1H As String = _user.Containers(0).CustomView.SIDX1.ToString ..........

 


Here is the aspx code for Editformsettings:

<

 

EditFormSettings EditFormType="Template">

 

 

<EditColumn ButtonType="LinkButton" CancelText="Cancel" InsertText="Insert Order" UniqueName="col_Edit" UpdateText="Update">

 

 

<ItemStyle BackColor="Black" />

 

 

</EditColumn>

 

 

<FormTemplate>

 

 

<div class="divGVEdit" style="padding-left: 10px;">

 

 

<div style="padding-left: 10px; text-align: left">

 

 

<table id="tblReg" style="border-collapse: collapse;" cellspacing="2" cellpadding="1">

 

 

<tr>

 

 

<td align="left">

 

 

<itemtemplate>

 

 

<asp:Label ID="lbl1" runat="server" Text='<%# DataBinder.Eval(Container,"SIDX1H") %>' />

 

 

</itemtemplate>...........

 


Thanks
Sanjay
Princy
Top achievements
Rank 2
 answered on 30 Jul 2009
1 answer
72 views
I'm working with your most recent release and I want to tweak one of the RadMenu skins to remove the left and right borders.  I have the menu at 100% width across my container and the right and left borders look funky.  I have done some searching but found nothing that has given me the answer.  I want to leave everything else the same in the style, just remove the left border and the right border.

Any suggestions?

Thanks,
Dave
Veselin Vasilev
Telerik team
 answered on 30 Jul 2009
1 answer
119 views
Hi everyone

Im working on a project with a radPanelBar and some RadPanelItems below its my code, the problem is the when I tried to use the FindItemByText method to get a combobox value in the panelbar variable it does not show me this method.. :( What can I do?  am I doing someting wrong?
//Javascript script
 var panelbar;
        var itemcombo;

        function pageLoad() {
            // initialize the global variables
            // in this event all client objects
            // are already created and initialized
            var panelbar = $find("<%=RadPanelBar1.ClientID%>");
            var panelitem = panelbar.findItemByText(
     --->  itemcombo = panelbar.findItemByText('Sendercombo');  -->this method does not charge when I press . to show
        }
Veselin Vasilev
Telerik team
 answered on 30 Jul 2009
1 answer
103 views
Hi,
I have watched a lot of question regarding my question on Telerik forum, but it wasn't clear for me .
I have implemented filtering and sorting in Radgrid and works perfect.
Now the question  is , Is there a way to get that filtered dataset of the RadGrid?

for eg: 
Starting Datasource : {1,2,3,4,5,6.. 100}

Filtering Contain "0"
Filtered Datasource:{10,20,30,40,50,60,70,80.90,100}   

There reason I need this is because I have to bind the Filtered DataSource to a radComboBox..
I didn't see any thing in RadGrid that give me this result?

thanks,
DIP
Yavor
Telerik team
 answered on 30 Jul 2009
1 answer
207 views
Hi -

I am loading the editor content from an HTML file with the following code:

Private Sub LoadEditor(ByVal File As String)

 

 

Dim sr As System.IO.StreamReader

 

 

Dim fi As New System.IO.FileInfo(File)

 

 

Dim strContents As String = ""

 

 

If System.IO.File.Exists(File) Then

 

sr = System.IO.File.OpenText(File)

strContents += sr.ReadToEnd()

Editor.Content = strContents

sr.Close()

 

Else

 

 

End If

 

 

End Sub



I seem to get a few errors that I can't figure out:

1. In the HTML there is a link with a query string. e.g. 
<A href="http://www.abc.com/Default.aspx?id=118&cost=WR1841" target=_blank>
The Editor converts it to:
<A href="http://www.abc.com/Default.aspx?id=118&amp;cost=WR1841" target=_blank>

2. There are special characters like Â®
The editor just displays a ï¿½

Any help will be appreciated


 



 

 

Rumen
Telerik team
 answered on 30 Jul 2009
3 answers
198 views
Hi,
I have a grid on my web design and set the grid's DataSource during NeedDataSource event by using following syntax:

RadGrid1.MasterTableView.DataSource = myDataSet.Tables(

"a").DefaultView

 


I tried to hide the column after the grid's DataSource is set but having code break by using following syntax:

RadGrid1.Columns(0).Visible =

False

 


After that, I tried to debug it during runtime and found out that the grid having no column even though i have set its DataSource.

Anyway to solve this out?

Thanks in advance and apprciate for the answer.

Regards,
Lim

Lim
Top achievements
Rank 1
 answered on 30 Jul 2009
1 answer
246 views
I have a project that I am in the process of replacing the drop down lists with comboboxes.

In this scenario, the drop down list will show / hide a panel (using an ajax CollapsiblePanelExtender) when a certain value is selected. This is working well (before the replacement of the ddl with the combo box).

I have added and databound the combobox, which shows the required data values.

However, when I attempt to find the combobox, the combobox is not found. The combobox is inside the insert item template of the form view and I am using master / child pages.

Here is my server side code:

 

protected void FormViewSkillDetails_DataBound(object sender, EventArgs e)

 {
    

if (FormViewSkillDetails.CurrentMode == FormViewMode.Insert)
    {
        FormViewSkillDetails.Focus();
//place the cursor on the 1st available field of the form view.
        
        
//DropDownList ddl = (DropDownList)FormViewSkillDetails.FindControl("DropDownListSkillTypeInsertDisplay"); 
        
RadComboBox ddl = (RadComboBox)FormViewSkillDetails.FindControl("RadComboBoxSkillTypeInsertDisplay");
        
Panel p = (Panel)FormViewSkillDetails.FindControl("PanelSkillOwnHeadingInsertItem");
        
RequiredFieldValidator rfv = (RequiredFieldValidator)FormViewSkillDetails.FindControl("RequiredFieldValidatorClientSideSkillOwnHeadingInsert");
        
CustomValidator cvss = (CustomValidator)FormViewSkillDetails.FindControl("CustomValidatorServerSideSkillOwnHeadingInsertItemBlank");
        ddl.Attributes.Add(
"onchange", "JavaScript:selectInputInsertChange('" + ddl.ClientID + "', '" + p.ClientID + "', '" + rfv.ClientID + "', '" + cvss.ClientID + "');");
    }
}

Any suggestions?

 

 

 

 

 

Shinu
Top achievements
Rank 2
 answered on 30 Jul 2009
1 answer
240 views
Hi,
I have a radGrid, 
in RadGrid1_ItemDataBound, i am attaching clientside event  
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem && e.Item.IsInEditMode)
{
GridDataItem item = (GridDataItem)e.Item;
TextBox textBox = item["CompanyName"].Controls[0] as TextBox;    // Get the textbox for column CompanyName      
textBox.Attributes.Add("onFocusout", "OnRadGridCellFocusOut("+ parameters +")");
}

This client event makes an AjaxRequest when the column loose focues

function OnRadGridCellFocusOut(RowIndex, ColumnIndex)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(RowIndex + ":" + ColumnIndex);
}

In AjaxRequest Handler
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
//do some processing to update the next column
}

after the processing, i want to update the value of next column.

for example
if Col1 is updated to IBM i will make Col2 as 'Partener'.

i was thinking if AjaxRequest can return a value to clientside caller, i could update it from there.

What is the best way to do it?

thanks
virendra


Princy
Top achievements
Rank 2
 answered on 30 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?