Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
327 views
Hi,
I am trying to use a Telerik Splitter control without a border around it. I tried to set the splitter border properties, use styles with no border but it did not help. If I view source from browser I see :
 class="pane firstItem" style="border-width:1px

Is there a way to get rid of this border-width:1px ?

The code that I am using is as below:
<telerik:RadSplitter id="radSplitterCommsPortal" runat="server" height="500" liveResize="true" width="100%" Skin="WebBlue" >
        <telerik:RadPane id="rdPnlPrint" runat="server" width="33%"></telerik:RadPane>
</telerik:RadSplitter>

Thank you,
Sarika
Dobromir
Telerik team
 answered on 28 Apr 2010
3 answers
159 views
Hi, I have a RadGrid with a GridDropDownColumn

<

 

telerik:RadGrid

 

 

    ID="referencesForCaseGrid"

 

 

    Skin="MainGrid"

     

EnableEmbeddedSkins="false"

 

     

ShowStatusBar="false"

 

     

runat="server"

 

     

AutoGenerateColumns="False"

 

 

    AllowSorting="True"

 

    AllowMultiRowSelection="False"

 

    GridLines="None"

 

    Style="border: 0; outline: none;" 
    
HeaderStyle-Height="25"

 

    AllowAutomaticInserts="false"

 

    AllowAutomaticDeletes="false"

 

    AllowAutomaticUpdates="false"

 

    EnableViewState="false">

 

 

 

 

<ItemStyle Wrap="true" VerticalAlign="Top" />
<AlternatingItemStyle Wrap="true" VerticalAlign="Top" />

 

<ClientSettings>

 

    <Selecting AllowRowSelect="false" />

 

    <Scrolling AllowScroll="false" />

 

</ClientSettings>

 


<
MasterTableView

 

    AllowPaging="true"

 

    PageSize="10"

 

    PagerStyle-AlwaysVisible="true"

 

    AllowMultiColumnSorting="True"

 

    EnableColumnsViewState="false"

 

    AllowCustomSorting="false"

 

    TableLayout="Fixed"

 

    EditMode="InPlace">

 

 

 

<Columns> 
    
<telerik:GridDropDownColumn

 

        UniqueName="RelationStatus"

 

        HeaderText="Relation Status"

 

        DataField="RelationStatusTypeID"

 

        ListDataMember="RelationStatusTypes"

        

ListTextField="Title"

 

 

        ListValueField="ID"

 

        SortExpression="Title"

 

        DropDownControlType="RadComboBox"

 

        HeaderStyle-Width="150px" />

 

    <telerik:GridEditCommandColumn />

 

</Columns>

 

</MasterTableView>

 

</telerik:RadGrid>

So when i press edit, I can choose a value in the dropdown, press update and the update command -event fires.

void

 

caseGrid_UpdateCommand(object source, GridCommandEventArgs e)

 

{

 

if(e.CommandName.Equals("Update") && e.Item is GridEditableItem)

 

{

 

 

var item = e.Item as GridDataItem;

 

 

int oldRelationTypeID = int.Parse(item.GetDataKeyValue("RelationStatusTypeID").ToString());

 

 

RadComboBox ddl = item["RelationStatus"].Controls[0] as RadComboBox;

 

 

int newRelationTypeID = int.Parse(ddl.SelectedValue);

 

 

GridEditableItem item2 = e.Item as GridEditableItem;

 

 

GridEditManager man = item2.EditManager;

 

 

RadComboBox operCombo = (man.GetColumnEditor("RelationStatus") as GridDropDownListColumnEditor).ComboBoxControl;

 

 

string operId = operCombo.SelectedValue;

 

 

// also returns preselected value

 

 

 

 

}

}

 

 

 

 

The problem here is that the value I get is the preselected one, not the one selected in the dropdown.

 

 

 

Rikard Hultén
Top achievements
Rank 1
 answered on 28 Apr 2010
1 answer
112 views
hi guys
i fill menu dynamical with createing RadMenuItem and add it to menu.
my RadMenuItem contain a Table that contain tow columns that 1st hold image and 2st hold text.
but i have a problem!.
my menu like this! item get wapped!
but i wanna menu width set auto.
http://www.myimgs.net/images/ehlv.jpg
tnx

Yana
Telerik team
 answered on 28 Apr 2010
6 answers
392 views
I have a RadGrid control with a NestedViewTemplate that contains two other RadGrid controls. I want to be able to perform drag and drop within each grid. The records will not be able to be dropped onto another grid, only within the same grid. Drag and drop in the parent grid works fine. When I try to perform drag and drop within one of the two grids in the NestedViewTemplate, I am unable to get a reference to the owning grid of the dragged items using e.DraggedItems[0].OwnerTableView or other various methods. They all return references to the main grid, the one that contains the two nested grids. How can I get a reference to the grid from which the dragged item came? Thanks.

Veli
Telerik team
 answered on 28 Apr 2010
5 answers
189 views
 
I have the following radgrid, when I put the clientevent - OnCommand - "OnGridCommand" the serverevent
 
OnItemDataBound="gridInvLines_ItemDataBound" is not being called - why is that ? How can I modify the code to call the serverevent or move the server code to client event ?
 
Basically I am trying to check if the page is valid or not , if the page is valid only then open the popup and load some preexisting values else do not open the popup. The code works except the values are not being generated i.e. OnItemDataBound="gridInvLines_ItemDataBound is not being called ?
 
 
 
<telerik:RadGrid ID="gridInvLines" AllowPaging="False" Skin="Office2007"

 

runat="server" AutoGenerateColumns="False" DataSourceID="odsInvLines"

 

GridLines="None" OnItemDataBound="gridInvLines_ItemDataBound" ShowFooter="True">

 

<ClientSettings >

 

<ClientEvents OnKeyPress="disableEnterKey" OnCommand="OnGridCommand" OnPopUpShowing="PopUpShowing" />

 

</ClientSettings>

 

<MasterTableView DataKeyNames="LINE_NUMBER" DataSourceID="odsInvLines" EditMode="PopUp" InsertItemDisplay="Top" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New Line">

 

<Columns>

 

<telerik:GridEditCommandColumn ButtonType="LinkButton" InsertText="Save" UniqueName="EditButton">

 

<ItemStyle HorizontalAlign="Center" Width="30px" />

 

</telerik:GridEditCommandColumn>

 

</Columns>

 

 

<EditFormSettings EditColumn-UpdateText="Save" EditColumn-InsertText="Save" CaptionFormatString="Invoice Line Information" ColumnNumber="2">

 

<FormTableItemStyle Wrap="False" Width="100%"></FormTableItemStyle>

 

<FormCaptionStyle CssClass="EditFormHeader" Width="100%"></FormCaptionStyle>

 

<FormMainTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="3" BackColor="White"

 

Width="100%" />

 

<FormTableStyle CellSpacing="0" CellPadding="2" CssClass="module" Height="110px"

 

BackColor="White" />

 

<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>

 

<PopUpSettings Modal="true" Width="600" />

 

</EditFormSettings>

 

</MasterTableView>

 

<ValidationSettings CommandsToValidate="PerformInsert,Update" />
 
//client javascript

function

OnGridCommand(sender, eventArgs)

{

 

if(eventArgs.get_commandName() == "Edit" || eventArgs.get_commandName() == "InitInsert" )

{

 

if (!Page_ClientValidate()) return false;

}

 

 

}

//server event

 

protected void gridInvLines_ItemCommand(object source, GridCommandEventArgs e)

{

 

switch (e.CommandName)

{

 

case RadGrid.InitInsertCommandName:

e.Canceled =

true;

 

//this is for the Calendar Date control

System.Collections.Specialized.

ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

 

if(radBillPeriodStartDate.SelectedDate.HasValue)

newValues[

"BEGIN_BILLING_PERIOD"] = Convert.ToDateTime(radBillPeriodStartDate.SelectedDate);

 

if(radBillPeriodEndDate.SelectedDate.HasValue)

newValues[

"END_BILLING_PERIOD"] = Convert.ToDateTime(radBillPeriodEndDate.SelectedDate);

e.Item.OwnerTableView.InsertItem(newValues);

 

 

 

break;

 

default:

 

break;

}

}

 

 
 
 
Sebastian
Telerik team
 answered on 28 Apr 2010
1 answer
143 views
Hi

I see in severals posts how to configure RadCaptcha in IIS 7.0 adding the next lines to the web.config.

<httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd"type="Telerik.Web.UI.WebResourceSession" verb="*" validate="false" />
</httpHandlers>
    
<handlers>
     <add name="Telerik_Web_UI_WebResource_axd" verb="*"preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd"type="Telerik.Web.UI.WebResourceSession" />
</handlers>

I had IIS 6.0 and the reserved word <handlers> doesn´t exist, so, what lines I need to add to the web.config?

Thanks




Pero
Telerik team
 answered on 28 Apr 2010
1 answer
81 views
I have the Telerik grid with custom rows to appear and disappear using:

    for (int i = 0; i < RadGridMain.MasterTableView.Items.Count; i++)
        {
            if (masterCL.Contains(int.Parse(RadGridMain.MasterTableView.DataKeyValues[i]["MasterChecklistID"].ToString())))
            {
                RadGridMain.MasterTableView.Items[i].Visible = false;
                RadGridMain.MasterTableView.Items[i].Enabled = false;
                RadGridMain0.MasterTableView.Items[i].Visible = true;
                flag = false;

            }
            else
            {
                RadGridMain.MasterTableView.Items[i].Visible = true;
                RadGridMain0.MasterTableView.Items[i].Visible = false;

            }

        }
Some of the columns in RadGridMain will invisble based on the method above. However, when I click on the Add new record to add new item. The invisible columns are visible again... how can I make it still invisible when clicking on Add new record button?

Thanks
Princy
Top achievements
Rank 2
 answered on 28 Apr 2010
1 answer
56 views
inserting image don't work on Internet Explorer 8 bug in page and image insert dialog not functional.
In FireFox is working.
Rumen
Telerik team
 answered on 28 Apr 2010
1 answer
439 views
Hi,

i have two radcombobox on my page..
          <telerik:RadComboBox ID="cboSourceFund" runat="server"
                            DataSourceID="SourceFundDataSource" DataTextField="AFIMSFundCode" DataValueField="AFIMSFundCode" 
                            Width="55px" Skin="Outlook" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1" SelectedValue='<%# Bind("SourceAfimsFund") %>'
                            BorderWidth="1px">
                       </telerik:RadComboBox>                        
                       
                        <telerik:RadComboBox ID="cboSourceFundHidden" runat="server"
                            DataTextField="AFIMSFundCode" DataValueField="BaseCurrencyCode" 
                             style="display:none;">
                       </telerik:RadComboBox> 

i have one javascript function

function GetCurrency(value) {

    var cboSourceFundHidden = document.getElementById("ctl00_messagePanelsContent_contentPlaceHolder_fvAllotmentDetail_cboSourceFundHidden");

    for (index1 = 0; index1 < cboSourceFundHidden.options.length; index1++) {
        alert("22");
        if (cboSourceFundHidden.options[index1].value == value) {
            return value;
            break;
        }

    }    
  
}

and this function is called from here

function OnClientSelectedIndexChanged1(item)
 {
var currency = GetCurrency(item._value);
}

but the above code is not working and i am not getting count in 
alert(cboSourceFundHidden.options.length);
its giving nothing while dropdown object is present
alert(cboSourceFundHidden);

please help.

thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2010
1 answer
107 views
Hi all.
I have a code
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"  
            GridLines="None" onitemdatabound="RadGrid1_ItemDataBound"> 
            <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1"> 
                <Columns> 
                    <telerik:GridTemplateColumn> 
                        <FooterTemplate> 
                            <telerik:RadComboBox ID="RadComboBox1" runat="server"> 
                                <ItemTemplate> 
                                    <telerik:RadGrid ID="RadGrid2" runat="server"> 
                                    </telerik:RadGrid> 
                                </ItemTemplate> 
                            </telerik:RadComboBox> 
                        </FooterTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
            ConnectionString="<%$ ConnectionStrings:XConnectionString %>"  
            SelectCommand="SELECT [Name] FROM [Projects]"></asp:SqlDataSource> 
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridFooterItem) 
        { 
            GridFooterItem footer = (GridFooterItem)e.Item; 
            RadComboBox combo = ((RadComboBox)footer.FindControl("RadComboBox1")); 
            RadGrid grid = ((RadGrid)combo.Items[0].FindControl("RadGrid2")); //result is null
            //RadGrid grid = ((RadGrid)combo.FindControl("RadGrid2")); //result is null

            string r = "fF"; 
        } 
    } 

The question is how can I get reference to RadGrid2?

Shinu
Top achievements
Rank 2
 answered on 28 Apr 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?