Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
268 views
Hi,
How to Radgrid open in edit mode at the of page load?
Thanks,
Puru
Princy
Top achievements
Rank 2
 answered on 08 Sep 2008
1 answer
101 views
Hi,
I have a RadGrid with GridDateTimeColumn as below.
<rad:GridDateTimeColumn DataField="EndDate" UniqueName="EndDate" EditFormColumnIndex="0" DataFormatString="{0:d}" meta:resourcekey="GridTemplateColumnResource2">
                    <HeaderStyle Font-Bold="true" />
                </rad:GridDateTimeColumn>   

How can i make the user not to select a date which is behind todays date from the DatePicker or calendar?
The user should not be allowed to insert manually or type in the date also into the dateinput.
Ie: Today is 05/09/2008. And i dont want the user to select any date on or before 04/09/2009.
Can those dates be disabled in the calendar?
Regards
Sujith

Princy
Top achievements
Rank 2
 answered on 08 Sep 2008
1 answer
66 views

HI,

I am trying to place a RadGrid under another RadGrid. But I am nt able to Bind the Data and fine the Ineer Controls of the inner Grid. Indetail

I Had One RadGrid1 & RadGrid3 and Under the RadGrid1 I placed RadGrid3 as follow.

But I am nt able to Bing the Date to the RadGrid3. Please Guide me how to Bind Data and Firing the event for Rad Controls which are under RadGrid3.

<telerik:RadGrid PageSize="3" AllowPaging="true" ID="RadGrid1" runat="server" GridLines="Horizontal" AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid1_NeedDataSource"

>

<PagerStyle Mode="Slider" />

 <MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms" AllowMultiColumnSorting="true" CommandItemDisplay="TopAndBottom">

 <Columns><telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>                            <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" />                            

<telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription" UniqueName="TerritoryDescription" />                            <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" />                            <telerik:GridButtonColumn CommandName="Delete" Text="Delete">                            </telerik:GridButtonColumn>  </Columns>                        <EditFormSettings EditFormType="Template">                            <EditColumn UniqueName="EditCommandColumn1">                            </EditColumn><FormTemplate>

 <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="1" rules="none" style="border-collapse: collapse">                                    <tr><td> <table id="Table3" cellspacing="1" cellpadding="1" width="100%" border="0">  <tr><td>                                                        TerritoryID: </td><td><asp:TextBox ID="txtTerritoryID" MaxLength="5" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>'

runat="server"></asp:TextBox></td></tr><tr><td>TerritoryDescription:                                                    </td><td><asp:TextBox ID="txtTerritoryDescription" runat="server" Text='<%# Eval( "TerritoryDescription" ) %>'></asp:TextBox></td></tr><tr><td>                                                        RegionID: </td><td><td><telerik:RadGrid ID="RadGrid3" PageSize="3" AllowPaging="true" runat="server" GridLines="Horizontal"                                                            AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid3_NeedDataSource"><PagerStyle Mode="Slider" /><MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms"                                                                AllowMultiColumnSorting="true" CommandItemDisplay="TopAndBottom">                                                                <Columns>                                                                    <telerik:GridEditCommandColumn>                                                                    </telerik:GridEditCommandColumn>                                                                    <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" />

<telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription"                                                                        UniqueName="TerritoryDescription" />                                                                    <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" />                                                                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete">                                                                    </telerik:GridButtonColumn> </Columns></MasterTableView>                                                      </telerik:RadGrid>

                                                   

Princy
Top achievements
Rank 2
 answered on 08 Sep 2008
1 answer
177 views
We have implemented the RADEditor in MOSS 2007 just fine for the multi-line text column types. But when we want to use a "full html" column type, the toolbar floats around the screen. This is the default behavior with the standard MOSS toolbar, is there a way to anchor the toolbar to the text area like the multi-line text field does?

See screenshot please:
http://ffcpresents.com/rad_issue.jpg

You can see the content area at the top of the image and the toolbar floating well below.

Thanks,
-Scott
Lini
Telerik team
 answered on 08 Sep 2008
3 answers
91 views
I tried this code to iterate through all the cells in the datagrid to change its property
but it only changes the last row. What I'm I doing wrong?
 
 protected void Page_PreRender(object sender, EventArgs e)
    {
        foreach (GridDataItem item in RadGrid1.Items)
        {
            item.Edit = true;
        }
        RadGrid1.Rebind();
    }


Thanks,
Shinu
Top achievements
Rank 2
 answered on 08 Sep 2008
1 answer
222 views
using radajaxmanager I want to have a submit button as an updated control during ajax postback of another button. However when i add the submit button as an update control, it ajaxifys and will no longer postback.

The reason why i need to submit button as an updated control for another controls postback is because i want to conditionally add confirm attribute to the submit depending on settings of other controls on the form.  Any help appreciated. A test program is included below

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
            OutputCompression="AutoDetect">
        </telerik:RadScriptManager>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button"
            UseSubmitBehavior="False" />
&nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        <br />
        <br />
        <br />
        <asp:Button ID="Button2" runat="server" Text="Form Submit" />
        <br />
        <br />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Button1"
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Label1" />
                        <telerik:AjaxUpdatedControl ControlID="Button2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
            height="75px" width="75px">
            <img alt="Loading..."
                src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border:0px;" />
        </telerik:RadAjaxLoadingPanel>
   
    </div>
    </form>
</body>
</html>


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                Session["bool"] = false;
            }
            Button2.Attributes.Clear();
        }
        public bool BoolVal
        {
            get
            {
                return (bool)Session["bool"];
            }
            set
            {
                Session["bool"] = value;
            }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            BoolVal = !BoolVal;
            if (BoolVal)
            {
                Label1.Text = "Enabled";
                Button2.Attributes.Add("onclick", "return confirm('button enabled. sure you want to continue?')");
            }
            else
                Label1.Text = "Disabled";
           
        }
Konstantin Petkov
Telerik team
 answered on 08 Sep 2008
1 answer
78 views
hi

   i am using telerik grid view in my wep application...using c#
   in my application i have set one option for user can select page size 
   in tht grid view using compo box

protected void DDL_SelectedIndexChanged(object sender, EventArgs e)

{

string PerPage = DDL.SelectedItem.Text;

switch (PerPage)

{

case "3":

{

grdWantList.PageSize = 3;

BindWantedList();

break;

}

case "15":

{

grdWantList.PageSize = 15;

BindWantedList();

break;

}

case "20":

{

grdWantList.PageSize = 20;

BindWantedList();

break;

}

 

}

}

public void BindWantedList()

{

int CategoryId = Convert.ToInt32(Session["CategoryId"]);

BllWanted.GetWantList(CategoryId);

grdWantList.DataSource = BllWanted.WantList;

grdWantList.DataBind();

}

 

combo box having values like 3,15,20...i am using tht code code but grid view 
does not change in page size how to i change page size dynamically

Plz help me
azees


    
  

  

Konstantin Petkov
Telerik team
 answered on 08 Sep 2008
1 answer
75 views
i am using radgrid. this grid displaying data using temple textbox so i want to clear templete text box values at client side.i am using following code

function test()

{

var txtBundlePrice = document.getElementById("tbxdefaultprice");

var gridPrice = $find("<%= grdSFPrice.ClientID %>");

if(document.getElementById("rbtnDefault").checked==true)

{

txtBundlePrice.disabled =

false;

var inputs = gridPrice.get_element().getElementsByTagName("input");

for(var i = 0; i < inputs.length; i++)

{

switch(inputs[i].type)

{

case "text":

inputs[i].value =

'';

break;

default:

break;

}

}

 

}

else

{

txtBundlePrice.value=

'';

txtBundlePrice.disabled =

true;

}

}


above code is working in Inter net explorer but it is not working in mozilla browser. i neeed solution. please give me a solution.


Thanks,
kishore

Princy
Top achievements
Rank 2
 answered on 08 Sep 2008
1 answer
128 views
Like most others, I have run into the issue with <% %> in my pages. Is it "OK" to just enclose almost the entire page with the RadCodeBlock tag to eliminate these errors?

Does this introduce additional overhead? Does it impact AJAX performance?

For instance, can I just add the RadCodeBlock to my master page around the single ContentPlaceHolder?
Konstantin Petkov
Telerik team
 answered on 08 Sep 2008
13 answers
298 views
Okay so I've been through the forums and the tutorials but I must have a hard head this week because I'm still not getting it.  :)

How do I create a custom edit form for a nested grid?   I want to change a couple of the text boxes to combo boxes, but when I tried it in the source code it didn't work, i.e. it didn't look like I did anything.
Yavor
Telerik team
 answered on 08 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?